From patchwork Fri Feb 19 05:19:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 8356251 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CAB3B9F38B for ; Fri, 19 Feb 2016 05:21:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1808202E6 for ; Fri, 19 Feb 2016 05:21:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1D7FE20148 for ; Fri, 19 Feb 2016 05:21:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aWdUA-0004Df-0c; Fri, 19 Feb 2016 05:20:10 +0000 Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aWdTr-0003q5-9c for linux-arm-kernel@lists.infradead.org; Fri, 19 Feb 2016 05:19:52 +0000 Received: by mail-pf0-x22c.google.com with SMTP id c10so46046702pfc.2 for ; Thu, 18 Feb 2016 21:19:30 -0800 (PST) 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=5gfu5wOXODR4K+PtecmNrey8VLbk/ZcmXRMs5dW8p+E=; b=Z1stxhbHM6Q3CQetitAA/NO7k2qzvSJJYqSepCiEuHRqdb5msnWkN1m5832Zit8VD7 4Qe4GtAj9p6IIbhko6xy12f7d7xztpAHTh16LyIjHTLSpiEI8jr/hXUlWbJ7Obvx/1Y3 70sEhsIX4xDUYTF65dlNhNExqEjLCu3oyu61g= 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=5gfu5wOXODR4K+PtecmNrey8VLbk/ZcmXRMs5dW8p+E=; b=b5AI6pECwscq4gAokps2JVbqk4oxiXTlz7nJvTwNqY2+Rz+KwfeQnJZXOy3tRjrtJP krGeUj6vbJIQF+AwMGMT1/ocS7fHvi5/mSFadEvSjbW0mUGI8pxk8G5/4ED3blTuCQE9 sfqI/FvCTpEKK3LTqT9m1iaGC/s7IskR0Cs5/zlNWu7DQO3WkxTis/i2JxH+28p/PnA/ GWxyNww1l9C/8aOp89DsqS976EKy5vuGs9zjGmMO7iG01daaBKhzR2xmLNntElGSCFFa xZetNF6J29f+5gIMUYSlciWMV0002/bS5zEzJeaD9OmjaMdTxXl2Kmo2/tjYeBfpP6T8 q7fg== X-Gm-Message-State: AG10YORVTNPpy1SFMI5cjNflnzB2rZSbPVnU4XkHHgdoArjpARpaXutH7QsWjT/kJRMXyTM/ X-Received: by 10.98.44.73 with SMTP id s70mr15551203pfs.2.1455859170301; Thu, 18 Feb 2016 21:19:30 -0800 (PST) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([111.161.114.233]) by smtp.gmail.com with ESMTPSA id l62sm14215507pfj.7.2016.02.18.21.19.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Feb 2016 21:19:29 -0800 (PST) From: Guodong Xu To: xuwei5@hisilicon.com, mark.rutland@arm.com, robh@kernel.org, grant.likely@secretlab.ca Subject: [PATCH 2/5] arm64: dts: add LED nodes for hi6220-hikey Date: Fri, 19 Feb 2016 13:19:05 +0800 Message-Id: <1455859148-29098-3-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455859148-29098-1-git-send-email-guodong.xu@linaro.org> References: <1455859148-29098-1-git-send-email-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160218_211951_460037_38C3F0B5 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, kong.kongxinwei@hisilicon.com, Guodong Xu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index c4f560a..5a004b4 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_led1 { + label = "user_led4"; + gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "user_led3"; + gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "user_led2"; + gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ + linux,default-trigger = "mmc1"; + }; + + user_led4 { + 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 {