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: 62262 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp965898lbl; Thu, 18 Feb 2016 21:19:47 -0800 (PST) X-Received: by 10.66.254.168 with SMTP id aj8mr15700932pad.18.1455859187294; Thu, 18 Feb 2016 21:19:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fl10si3853316pab.55.2016.02.18.21.19.46; Thu, 18 Feb 2016 21:19:47 -0800 (PST) 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; 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; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757536AbcBSFTh (ORCPT + 30 others); Fri, 19 Feb 2016 00:19:37 -0500 Received: from mail-pf0-f176.google.com ([209.85.192.176]:36560 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753780AbcBSFTa (ORCPT ); Fri, 19 Feb 2016 00:19:30 -0500 Received: by mail-pf0-f176.google.com with SMTP id e127so44738285pfe.3 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=dZGBoWuv+JGdaNDYlemdxMMjFsPNPBpYE3cHJ626Kw8ejptySKAGWtFQCTBofoav3P XD706i55elYnoP++/4Ha5x29QRVhpfcn1TU5ADxioVR+fez262y5bCt6SS+RwatKYDLW 6iLDG29FacOA0HAJ2LWJP0NDcqBB+i9v3Av1dbRQ/vxbZomOsDJsptt1+ZUFk2Va+xhC N1HQuHWvrOgtiDzUIf6M6EbM/+kyCES39S4agbBWZwycUOwbpD1zkFxfkJWBD/aviAVk r8oBoFrPLgnYkY1+tt/ctWruaqyXwCkP62Nkoivj6Slk20GYRbDtDJCr/kGft+Vmi/uC 0aew== X-Gm-Message-State: AG10YORPqktYy+Dg5mm27uDci9UyTdXChzkAP8DtmBiHUtrijoWFrGMZtNNKXFZcAykgYs4I 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kong.kongxinwei@hisilicon.com, Guodong Xu 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> 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..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 {