From patchwork Tue Apr 5 13:27:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 65080 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp466983lbc; Tue, 5 Apr 2016 06:31:33 -0700 (PDT) X-Received: by 10.67.8.100 with SMTP id dj4mr62313427pad.88.1459863093524; Tue, 05 Apr 2016 06:31:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ah8si7863401pad.148.2016.04.05.06.31.33; Tue, 05 Apr 2016 06:31:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933277AbcDENbU (ORCPT + 29 others); Tue, 5 Apr 2016 09:31:20 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:35390 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933252AbcDENbN (ORCPT ); Tue, 5 Apr 2016 09:31:13 -0400 Received: by mail-pf0-f177.google.com with SMTP id n1so11023263pfn.2 for ; Tue, 05 Apr 2016 06:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tGp1xeoFI4H7ydTs8UDQyYn6SzS/rJUjyTrERt8ShUE=; b=TaGDYEiATLYgQSidHjshVO14QzjgCmfQrOg/kX9t8Hp1tAg2JyeOdrQEwyWMnVO+iv Hj9IdeiFAC0g+zdJhXIY/Pmv1FXISORRZEHT4kS9MxZzyFo65cr8MHBRyliurxBctmu/ vUtIAaVfVzOfvbiyJ8ACzdpdK2wPEwcc+RRes= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tGp1xeoFI4H7ydTs8UDQyYn6SzS/rJUjyTrERt8ShUE=; b=WJcJM3sIXRiwXZo6BX96SEtQSlOv9VkNMTUApQ+L3yYpDeaWT2xCzo96TCtv/YqinQ ztGOq6Bmi2vJioWyxPGMOVBnWRT75J44V5+Wk+H//Ew8+v75UXkLmFfd2+/E2ST3KkVX 1V9MdD4A18Qf6fQFDHbTeB17O4ZMzkQq5/ABFn50r7Rn3+XfIjlYm7uxqyeexIdXm6+5 fy/cKd8dbEBi5+mBc9gX2Ji0dGVj9t0YOPjvHfc7N8n2NGr71sA4fAALwtMGdgFH7RKC 8Gg51A8e3Plf6wG4wL92ykbxFDreOz6UkodQDJpCJb6BDy7VWWA1ij1/ZfcWrmYIu8l9 +Xuw== X-Gm-Message-State: AD7BkJITclZogTC9j7hfCY1aPjyeoul9ifg1CqmBQ5jJmwBSfWHIX1Fg6hBX39O0/GiOgvLO X-Received: by 10.98.74.209 with SMTP id c78mr29342339pfj.90.1459863072904; Tue, 05 Apr 2016 06:31:12 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.49]) by smtp.gmail.com with ESMTPSA id wh9sm8060481pab.8.2016.04.05.06.31.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Apr 2016 06:31:12 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, mark.rutland@arm.com, robh@kernel.org, grant.likely@secretlab.ca, linus.walleij@linaro.org, arnd.bergmann@linaro.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kong.kongxinwei@hisilicon.com, Guodong Xu Subject: [PATCH v3 13/16] arm64: dts: add LED nodes for hi6220-hikey Date: Tue, 5 Apr 2016 21:27:37 +0800 Message-Id: <1459862860-9775-14-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459862860-9775-1-git-send-email-guodong.xu@linaro.org> References: <1459862860-9775-1-git-send-email-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index c4f560a..28bc646 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -63,6 +63,47 @@ status = "ok"; }; }; + + leds { + compatible = "gpio-leds"; + user_led4 { + label = "user_led4"; + gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ + linux,default-trigger = "heartbeat"; + }; + + user_led3 { + label = "user_led3"; + gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ + linux,default-trigger = "mmc0"; + }; + + user_led2 { + label = "user_led2"; + gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ + linux,default-trigger = "mmc1"; + }; + + user_led1 { + label = "user_led1"; + gpios = <&gpio4 3 0>; /* <&gpio_user_led_4>; */ + linux,default-trigger = "cpu0"; + }; + + wlan_active_led { + label = "wifi_active"; + gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */ + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "bt_active"; + gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */ + linux,default-trigger = "hci0rx"; + default-state = "off"; + }; + }; }; &uart2 {