From patchwork Thu May 25 08:18:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9747963 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 1BAAD60246 for ; Thu, 25 May 2017 08:23:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D7211FFAE for ; Thu, 25 May 2017 08:23:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 011662785D; Thu, 25 May 2017 08:23:23 +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 82A5F2656B for ; Thu, 25 May 2017 08:23:23 +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=AP21KgcvRoix6/6QciBY2jLZUg xTvGCG+WYtWvdvD+zTbPGg8uRaxrOa9wr3PX5iZ/dnAUCP6FBQow3zNAWV07LMPVnO69iPCbOo8RZ RtNNBLpczghu0IovKbyxEa6gUcu6UKGt3o7/ywTDu9nFE9WDttfgCKQIhGvDza8LPuQUkPZTKxoIO Df/cTdTmyQz2C5azyttQr8uD/9jlgJsuZ6mogZR5Iij6U3470i5AuxBt0MPIgzHQgC8Y+vV8pyaon AIispp8ICGjDtuw4R8VF4MEeYT4KkqrmjO9SV0zcR6rs6l/5SmqnuIDfjICWqgp6zKxsTxzwYUWxj 0ApbKnrA==; 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 1dDo3G-0001gi-FP; Thu, 25 May 2017 08:23:22 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDo0N-0005ul-IT for linux-arm-kernel@lists.infradead.org; Thu, 25 May 2017 08:20:32 +0000 Received: by mail-pf0-x22b.google.com with SMTP id m17so160500745pfg.3 for ; Thu, 25 May 2017 01:20:03 -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=VysoN4LR7Ar+vcufLGinyeS5j46dZGP0useI/j0IEYdkkB/Xiu6S2S8/g3+eML5ahG MT2SfMNTBY7VIwSiwVx+E+LnSrBu4DdV3N/yuPjOz6eY0vRTL62TyiZ0+SNip+CsY3Lz +zFI4UPSyg1iek18Rz5P6FvRwOV2RjLwP9g78= 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=BDCz7zMsu2aC6jlqDFYh7GOhqQplR6d3Wqxloj/cgtpmTUw/lUxe0bZMpmZbwSRznG rhwh22f+hMyBiWNnSvJOnQub5Jz+jBVpV5L8WOz81MZC6dTVWWACf6ha5GrnLhXkHOBn NC0vG4583Jnh5a4uWMwiO55CJWO+xZUstJmVy31vXbwcYzXrVJdC5OAQDuFwDznF2/kC YmjVcrCU2dAtJzND7gjVK73+d6nd6VIcVbwn+hPe8xe+urDEHZS994lsutoNwQU24uwh HwKVP1MtHaFFS8urzDqXi3XPnE05snIf0HoOAlCmR8P8CBe+bAS/GswejhPn9q+8HFLr Llng== X-Gm-Message-State: AODbwcCHkO1/UFVOAixuWeBhJ/pSPXpNoDWcyfML81+/ZN+xkLpGqHAK Ig4kA2qqiJU6W4mM X-Received: by 10.84.194.37 with SMTP id g34mr49394882pld.182.1495700402731; Thu, 25 May 2017 01:20:02 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.222]) by smtp.gmail.com with ESMTPSA id b72sm11574470pfd.118.2017.05.25.01.19.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 01:20:02 -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 Subject: [PATCH v2 11/12] arm64: dts: hikey960: add LED nodes Date: Thu, 25 May 2017 16:18:53 +0800 Message-Id: <20170525081854.4701-12-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170525081854.4701-1-guodong.xu@linaro.org> References: <20170525081854.4701-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170525_012024_419810_A1549428 X-CRM114-Status: UNSURE ( 8.27 ) 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: zhangfei.gao@linaro.org, Guodong Xu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.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 {