From patchwork Thu Jun 15 03:04:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9787929 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8670160384 for ; Thu, 15 Jun 2017 03:07:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C136283A6 for ; Thu, 15 Jun 2017 03:07:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 706D3283DA; Thu, 15 Jun 2017 03:07:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F3AC8283A6 for ; Thu, 15 Jun 2017 03:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=tNgd0tCDxQR7HJN7GjxNsQXK3Aj1NSeqoDjywbyAbRQ=; b=H9khItU8yOM67b3YH2IUe1spUo yslAoAvehCrXcvcqpJFPdybg7WVSVrgj6Rjh8ZPzeNnHP5E199EHhYMge98MZugMxm9VaCC+3i4wr p9zny6wEpjK3khEKdrCzYEbfKhZTZ4/Z/cyFvnQSFJjgupvyvx9qmxtk/y278bvuFLMo43xqkA7L9 HCBrHZ3998XUqj0g3LWjpH6iD6uH4XDmLY0rJH7M5u0vS3wk5GjqyP7sDiXy2wrOGkHPcdAi9DQV/ LRb8Mc5nHK8Y8KF0MUH2TDgdr1JVOC3y55m/VC8sboDpjL4lnwf8D/5haVginl4qYja/Dgjlsbmnv 2Kag3R3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dLL8V-0003Pp-U6; Thu, 15 Jun 2017 03:07:55 +0000 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLL7U-0001zW-Nu for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2017 03:06:59 +0000 Received: by mail-pg0-x22a.google.com with SMTP id v18so1271156pgb.1 for ; Wed, 14 Jun 2017 20:06:32 -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=CEk6ak4alSfIGm/cBrYd0NkRqFdpaNL+qzPQmngGnUA=; b=VZ9MK2J3mEpAx4BrJPbr0U+WbTmhh0+P3ybe/4oCgyfVfrushP4zLJGuinZiAWus0V +dCt7sRBst8XfTxLZ7V0+vLtLSK88yo/rs/qlMnqj7RgprQIKeT3TQWCv2aRpFw68912 Gi1+P8v0p5kKoEnBaEVM1SUd5pX5pra3IQNL0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CEk6ak4alSfIGm/cBrYd0NkRqFdpaNL+qzPQmngGnUA=; b=PlSR2d5kPDCRqlDcpoHOsiBZJo9Oa7Y0w4gyCZq/+yud67s8sVH1gbuVuo7MvTjmt/ zpvSdqd0P0kMqvksJK+1ROmp/FpxaoPPVBSZvt9amXb2dm0saCiuWyt0tRRyj0e3L3Nf V3BRgRr9QF3Ryjh2rHQptUlXLQGhwQCM10VCHX0p3/m/csAwq96dDw3YBq7R6F/Gz1XJ LB5oLA/c/p/g4E89eqvqJUO567YyNI6FztTIQI26g+Yw8tkbUrXuyYd9CUk7NlmZ6+hJ gWpZ6KJkgx7Cv/ZkTgLNzYmLVzrkrmE+TC7bST8PEG2uhUkWVdYyN0HO6Tqpt6qmDvWc B1Bw== X-Gm-Message-State: AKS2vOz1GYHPSysgMGCn5VWWuzBXKkb+mFC3S4qC83ea/O0zwV23gMp3 Ap1eukPF3CxHn0ad X-Received: by 10.99.125.9 with SMTP id y9mr20862pgc.76.1497495991881; Wed, 14 Jun 2017 20:06:31 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.17]) by smtp.gmail.com with ESMTPSA id y65sm2156656pgd.33.2017.06.14.20.06.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 20:06:31 -0700 (PDT) From: Guodong Xu To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, lgirdwood@gmail.com, broonie@kernel.org, khilman@baylibre.com, arnd@arndb.de, gregory.clement@free-electrons.com, horms+renesas@verge.net.au, olof@lixom.net, thomas.petazzoni@free-electrons.com, yamada.masahiro@socionext.com, riku.voipio@linaro.org, treding@nvidia.com, krzk@kernel.org, eric@anholt.net, damm+renesas@opensource.se, ard.biesheuvel@linaro.org, linus.walleij@linaro.org, geert+renesas@glider.be Subject: [PATCH v4 11/20] arm64: dts: hikey960: add LED nodes Date: Thu, 15 Jun 2017 11:04:08 +0800 Message-Id: <20170615030417.14059-12-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170615030417.14059-1-guodong.xu@linaro.org> References: <20170615030417.14059-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170614_200653_216574_33E4A682 X-CRM114-Status: UNSURE ( 7.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Guodong Xu , hw.wangxiaoyin@hisilicon.com, 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-Virus-Scanned: ClamAV using ClamSMTP HiKey960 has four user LEDs, and two special purpose LEDs: WiFi and BT respectively. All of them are implemented as GPIO. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 7aac35b..9ecf6c6 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -49,6 +49,54 @@ linux,code = ; }; }; + + leds { + compatible = "gpio-leds"; + + user_led1 { + label = "user_led1"; + /* gpio_150_user_led1 */ + gpios = <&gpio18 6 0>; + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "user_led2"; + /* gpio_151_user_led2 */ + gpios = <&gpio18 7 0>; + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "user_led3"; + /* gpio_189_user_led3 */ + gpios = <&gpio23 5 0>; + default-state = "off"; + }; + + user_led4 { + label = "user_led4"; + /* gpio_190_user_led4 */ + gpios = <&gpio23 6 0>; + linux,default-trigger = "cpu0"; + }; + + wlan_active_led { + label = "wifi_active"; + /* gpio_205_wifi_active */ + gpios = <&gpio25 5 0>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "bt_active"; + gpios = <&gpio25 7 0>; + /* gpio_207_user_led1 */ + linux,default-trigger = "hci0-power"; + default-state = "off"; + }; + }; }; &i2c0 {