From patchwork Wed Jun 14 08:23:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9785679 X-Patchwork-Delegate: bhelgaas@google.com 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 9F7726038E for ; Wed, 14 Jun 2017 08:25:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 877921FF61 for ; Wed, 14 Jun 2017 08:25:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C01D205AB; Wed, 14 Jun 2017 08:25:15 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22C07205D1 for ; Wed, 14 Jun 2017 08:25:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754248AbdFNIZF (ORCPT ); Wed, 14 Jun 2017 04:25:05 -0400 Received: from mail-pg0-f50.google.com ([74.125.83.50]:36433 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754664AbdFNIZB (ORCPT ); Wed, 14 Jun 2017 04:25:01 -0400 Received: by mail-pg0-f50.google.com with SMTP id a70so72552124pge.3 for ; Wed, 14 Jun 2017 01:25:01 -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=LEFpAON/OPh4lm2tBi8IXn4Ski49P8q7MiWeFZQtQTzYaFhE9UsqXJ+TvaDTNLwq4+ R6lV9ifrIeP5sTAmNes2oewdGjAeA+riVLAtcMkCHVCHWm+THOMntER25qgLRAqynfxK /kE9EnmmDLKFU4uLZm1QTkxs20HdaJHygzRy0= 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=oAT75L8ThaTgGUn2TyMjbQsv9guRj6EhCmcjvdM6IFAQR+BTO/8ggt9XRnMYUCs+FN LFiAH6KKe7qpO4pq9otseDYgCFjpCrvtFyiprvdDIjRknE4GaKPmr9/RyQw8fzI7W6Nf pYBUo++vAExehBQZC0urWPyS8LgYZsskeabmUl2Q90oV5Pjg4vgBF5BFi/X3YvgzM30V UlWFhgu8gxwYC6gafxmRkuWotNf7DYmD1rwnOIZyGqOlMv4ir3aX6N2ONn0u/nSPfD5s 7ytEBxtXmYFAls1jkQHVXyeHzDOP6A9ytIPP0FKH9hqjN7iaf0Vm2XbfuEMkQ7Xtb5M1 6e6Q== X-Gm-Message-State: AKS2vOwjLWK4uhPqo48d0xeycueEDRNvAPLbrhAeOHO2bOiZvVaivb9D Z0vDFAQQNKnMLiTp X-Received: by 10.84.217.141 with SMTP id p13mr3660452pli.271.1497428700831; Wed, 14 Jun 2017 01:25:00 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id h14sm766802pfh.71.2017.06.14.01.24.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 01:25:00 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, xuejiancheng@hisilicon.com, peter.griffin@linaro.org, puck.chen@hisilicon.com, lee.jones@linaro.org, ulf.hansson@linaro.org, bhelgaas@google.com, arnd@arndb.de Cc: zhangfei.gao@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-pci@vger.kernel.org, Guodong Xu Subject: [PATCH v3 11/21] arm64: dts: hikey960: add LED nodes Date: Wed, 14 Jun 2017 16:23:28 +0800 Message-Id: <20170614082338.15673-12-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170614082338.15673-1-guodong.xu@linaro.org> References: <20170614082338.15673-1-guodong.xu@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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 {