From patchwork Tue Oct 9 14:05:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 148494 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4947526lji; Tue, 9 Oct 2018 07:05:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV625tsVzRDRkSmoOfv+aP+JIq/x2RTUYEO98mq7QDQPSvHOZDM03p1wk57OA4xrDpz5CX5Vi X-Received: by 2002:a62:3995:: with SMTP id u21-v6mr30462046pfj.116.1539093955859; Tue, 09 Oct 2018 07:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539093955; cv=none; d=google.com; s=arc-20160816; b=bmtFSOOYs0mTttPd3PCJVPnzcZsQAl5DZa7++B2DyHAuS4RGtjiRSJgtdGjZUzMGBm 58KW5HB/P9v+KJpwr4veJS3U0r5TFV/utP/6bDaIF0ZsJzAr8m/rBknLK2bB2cp4xBxj pYTVeHXLdJ77cOi0pc0L3UkcF+euBp1Y/unzZ8CsI0wPar8rP8ZGqIHinAHvN+lR18vY 3zC2b76SZBv6R6tc5RgT+uY5FeF38VLTExbokHSufWyW4md39V2YJ/P/p7fiaAm9wYIJ xKiRA2xUuLeJ942Y75bi8+Jw+GyD1NVTKVaAy4or2rFkrQ7g9XYVT2dJCdtGZEfU22Of R3+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=jNMZduWvpDA30ITMoX26ELjye5ItNmE367b4X3cPoAI=; b=XM112FUXRwhXCCftnZleGHNITPftlnfgBGweOxM9168HjitlpS2+1WQXh/1d8yD72F I6XVxYIcSIeBVF1K0u/jAW8akh+jrKznVSIPE30Glsznx8E+dYYI9vYK39hvXljEhzHb xfD24d69bhM2x7+sLlQFnGzlpvpe8976+QHIVeTwIe7GW11F0JPnIRyoh/nlU8jL+988 PgUw3wgmgjSksfne+kweFVZdariWKuwuanyCP7RabuajwOXOFPmFJxNetDQK4rFFzz9j W1I4yodVen0/YtXRSjSlArMbmidSTdcdqRYEUTEtAh6s+a4tVImdrVGGbyecyNiovyCR 0Rhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VjdD95Wg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 185-v6si18569034pge.516.2018.10.09.07.05.54; Tue, 09 Oct 2018 07:05:55 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=VjdD95Wg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726932AbeJIVXA (ORCPT + 32 others); Tue, 9 Oct 2018 17:23:00 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39058 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726882AbeJIVW7 (ORCPT ); Tue, 9 Oct 2018 17:22:59 -0400 Received: by mail-pf1-f193.google.com with SMTP id c25-v6so903029pfe.6 for ; Tue, 09 Oct 2018 07:05:52 -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=jNMZduWvpDA30ITMoX26ELjye5ItNmE367b4X3cPoAI=; b=VjdD95Wg5yg2kR9uYf9fWdxZVHn0/FpQXvwNgsebmm5Y0/KHDE8zcHK3USJ2jES/L4 SA4/xM1egl/FdrWOenHA+IUpYfUevoVrYHG0sX5lv5FYscMajp+2dAkNltkNU0XDLjw/ I/YIMB/uprrFFp+e9ZNLv9Oj/UyPIyH1jTvXM= 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=jNMZduWvpDA30ITMoX26ELjye5ItNmE367b4X3cPoAI=; b=errkqnFklQZKo1Qg4wGtepcglgqVrYDyJWL86dIJsw7OYXg21yWk+fxqb4o9boQ305 ltbgSrltLWINhYlaKLoMurvkoGy8/P+Xgdyw+wVpMlEOjhYTj98frAZUjpofh0CU9wwz wNLuzXw2hGaIH9GVRnEENZi3+JRShXUkBhpmWw7f44nIoMzdiCqR1oaaaujSv+AxiunE W1pFnfFQMbEnfwTiMBwIQcpr70Xt9WA357qWJvrzxBPjeOYwyqM6yfgztmOOVTmU6q34 2eFUczpBvvf1VI3wprzBW9GiiSfV3t1iZnRzGUrwmQDieHir5oBuZWeABhea6xj/g9AM 3wBw== X-Gm-Message-State: ABuFfogUBbMouq/zwz5gi8+lx3NCnmuX6vWU8foirNX6AA/VEbN6gVNx y6k/mwsWF/Ojq4jUYIrWxvBM X-Received: by 2002:a65:5a89:: with SMTP id c9-v6mr25099230pgt.216.1539093952165; Tue, 09 Oct 2018 07:05:52 -0700 (PDT) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id e64-v6sm28947722pfe.55.2018.10.09.07.05.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 07:05:51 -0700 (PDT) From: Manivannan Sadhasivam To: robh+dt@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, Manivannan Sadhasivam Subject: [PATCH 1/6] arm64: dts: rockchip: ficus: Add on-board LED support Date: Tue, 9 Oct 2018 19:35:17 +0530 Message-Id: <20181009140522.6492-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181009140522.6492-1-manivannan.sadhasivam@linaro.org> References: <20181009140522.6492-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add on-board LED support for Ficus board based on the following standard used by other 96Boards: device-name:green:user1 default-trigger: heartbeat device-name:green:user2 default-trigger: mmc0/disk-activity (onboard-storage) device-name:green:user3 default-trigger: mmc1 (SD-card) device-name:green:user4 default-trigger: none, panic-indicator device-name:yellow:wlan default-trigger: phy0tx device-name:blue:bt default-trigger: hci0-power Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/rockchip/rk3399-ficus.dts | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts b/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts index cce266da28cd..10a4d3882dd8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts @@ -23,6 +23,52 @@ clock-output-names = "clkin_gmac"; #clock-cells = <0>; }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>, + <&user_led4>, <&wlan_led>, <&bt_led>; + + user_led1 { + label = "rk3399-ficus:green:user1"; + gpios = <&gpio4 RK_PD1 0>; + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "rk3399-ficus:green:user2"; + gpios = <&gpio4 RK_PD2 0>; + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "rk3399-ficus:green:user3"; + gpios = <&gpio4 RK_PD6 0>; + linux,default-trigger = "mmc1"; + }; + + user_led4 { + label = "rk3399-ficus:green:user4"; + gpios = <&gpio1 RK_PA0 0>; + panic-indicator; + linux,default-trigger = "none"; + }; + + wlan_active_led { + label = "rk3399-ficus:yellow:wlan"; + gpios = <&gpio1 RK_PA1 0>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "rk3399-ficus:blue:bt"; + gpios = <&gpio1 RK_PA4 0>; + linux,default-trigger = "hci0-power"; + default-state = "off"; + }; + }; }; &gmac { @@ -53,6 +99,38 @@ }; }; + leds { + user_led1: user_led1 { + rockchip,pins = + <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led2: user_led2 { + rockchip,pins = + <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led3: user_led3 { + rockchip,pins = + <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led4: user_led4 { + rockchip,pins = + <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + wlan_led: wlan_led { + rockchip,pins = + <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_led: bt_led { + rockchip,pins = + <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pcie { pcie_drv: pcie-drv { rockchip,pins = From patchwork Tue Oct 9 14:05:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 148495 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4947620lji; Tue, 9 Oct 2018 07:06:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV62xGJ7M+lRmnaRJ94sSZIfYgdJo4IZdNzCDa3+EyJG3KEMa1qnYlo7rpZsjuXWGwHRULD1v X-Received: by 2002:a17:902:7109:: with SMTP id a9-v6mr28774261pll.310.1539093960069; Tue, 09 Oct 2018 07:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539093960; cv=none; d=google.com; s=arc-20160816; b=llM+VTUXjrJMa5IMA92f0xrdf4+VdHihNEYrz4811RZzYzUnrIBdUrYkcVBmIAuD7Q dURIlJcyhwl88prJBTCBwQPJQtkh6gKzdzKwotR5ruXna2sy6+bG2BHV/1FwPSyELBHp 47UggKzwvizNBi0y3BZapc9ERnsmXAeu1qdPLmJkR9M8FPnY6QOxFiYd6vZiJ1hBJ43z 5iHrvws/4Ar2RE8oLN8JOhcUMV6QbKg+D+0ZIhtmWdHqkN4vGL75RyMOl0zUhOi5m9Me 6LkfXcUu50/UC+XaW+E4QnEiiWPWL1j93uLo/FNfHcBFbWSr1r5RfW/+J2c/5RM56ykJ qWlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2v0A8Sy+mBXs6qKDANV08GTdJ7Hi+gaENxNk1633qzo=; b=xsmhyslEmrzc/EcybAvQmibxubddHmldvJI4lUwaMM//JwvbXlTr8XBGVTocdvtnXv vZG2R114SOGFG3pzExbIXbtNmwAF/4LsEmkaOz70J1Ek/325kNKyNy+sUOa6FERo9Jmb 4d8CAXgj7eqzAcHufomyzq2yGNiulYLK36XWu1qsiOgyHZxFRIC6en3b3JJ1bLhPYw8i kvXZ4MIkXw7LT2QuxrKZldoBrgHQ1oIqhlmhhtMAkvn5v/twCmwa/zI7TZOBWqVVOtCG 2XqaclIkcGae08uglkRhJWDx5XAUoch1vOlyCIVef6TRKLnpMdlLavahEUI+Wtu62Lbw vGpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dqilUWZ8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 185-v6si18569034pge.516.2018.10.09.07.05.58; Tue, 09 Oct 2018 07:06:00 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=dqilUWZ8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726977AbeJIVXE (ORCPT + 32 others); Tue, 9 Oct 2018 17:23:04 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34738 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726882AbeJIVXD (ORCPT ); Tue, 9 Oct 2018 17:23:03 -0400 Received: by mail-pl1-f195.google.com with SMTP id f18-v6so904741plr.1 for ; Tue, 09 Oct 2018 07:05:56 -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=2v0A8Sy+mBXs6qKDANV08GTdJ7Hi+gaENxNk1633qzo=; b=dqilUWZ8k3+3dB7GdgNnSUnkxsyfzIAB2n7vFWTR7EifJcr7Bmj5t4tqKkwTEyL3RU FbHIzGnB16JAVEfwRklSjwmklgn8O3ncDy0wQLEBlA+EJqAD3vSlCqT7FnRlBdqz1cjm sI9CZqmmJyDIGcfGNywthy0hiKeP22SkQRuQo= 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=2v0A8Sy+mBXs6qKDANV08GTdJ7Hi+gaENxNk1633qzo=; b=QGA795A/Qr8THMxZkg/LBIFMiB2OSiI1upWGgb5QPXCgW4bEqBqhQRV5rjlIE6mz9U PNw1TkZYoWivUKFDhkjXdoXFC4ES1lpbU8v4dgqjEEyY0UpiZC5tfQ1Ib3SQohp0Efm+ do/65h6Zoiayk3l6bJvEjp1XjhwpiMSEIoUCy7jhmTB16VcbBq+w23bFQ4uxt00395Z6 RJJRrXCsvOz+Y5p9VyTUZUxKHM4S43aG194ypNdoFr9xE7LiNDncSQIhK4PyCFyIWJi/ z5mOjpb34ibvB3qphENOmzTfwJmZn8YX+lw6/4P5SJCs53PKvD+ymFXWuASoAJcYq2+l mZ0Q== X-Gm-Message-State: ABuFfoj+uWrbA/lEAWs4wPfDsVE9mvMx/DOQnHCKXpTbEPhh1Iw+dDWq CK/VD3SuZBIJ2EQa8KIwJzaS X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11-v6mr28500234plb.219.1539093956191; Tue, 09 Oct 2018 07:05:56 -0700 (PDT) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id e64-v6sm28947722pfe.55.2018.10.09.07.05.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 07:05:55 -0700 (PDT) From: Manivannan Sadhasivam To: robh+dt@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, Manivannan Sadhasivam Subject: [PATCH 2/6] arm64: dts: rockchip: rock960: Add on-board LED support Date: Tue, 9 Oct 2018 19:35:18 +0530 Message-Id: <20181009140522.6492-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181009140522.6492-1-manivannan.sadhasivam@linaro.org> References: <20181009140522.6492-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add on-board LED support for Rock960 board based on the following standard used by rest of the 96Boards: device-name:green:user1 default-trigger: heartbeat device-name:green:user2 default-trigger: mmc0/disk-activity (onboard-storage) device-name:green:user3 default-trigger: mmc1 (SD-card) device-name:green:user4 default-trigger: none, panic-indicator device-name:yellow:wlan default-trigger: phy0tx device-name:blue:bt default-trigger: hci0-power Signed-off-by: Manivannan Sadhasivam --- .../boot/dts/rockchip/rk3399-rock960.dts | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts index 3c3308daec98..7d0d1c69c3a8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts @@ -13,6 +13,53 @@ chosen { stdout-path = "serial2:1500000n8"; }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>, + <&user_led4>, <&wlan_led>, <&bt_led>; + + user_led1 { + label = "rk3399-rock960:green:user1"; + gpios = <&gpio4 RK_PC2 0>; + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "rk3399-rock960:green:user2"; + gpios = <&gpio4 RK_PC6 0>; + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "rk3399-rock960:green:user3"; + gpios = <&gpio4 RK_PD0 0>; + linux,default-trigger = "mmc1"; + }; + + user_led4 { + label = "rk3399-rock960:green:user4"; + gpios = <&gpio4 RK_PD4 0>; + panic-indicator; + linux,default-trigger = "none"; + }; + + wlan_active_led { + label = "rk3399-rock960:yellow:wlan"; + gpios = <&gpio4 RK_PD5 0>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "rk3399-rock960:blue:bt"; + gpios = <&gpio4 RK_PD6 0>; + linux,default-trigger = "hci0-power"; + default-state = "off"; + }; + }; + }; &pcie0 { @@ -20,6 +67,38 @@ }; &pinctrl { + leds { + user_led1: user_led1 { + rockchip,pins = + <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led2: user_led2 { + rockchip,pins = + <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led3: user_led3 { + rockchip,pins = + <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + user_led4: user_led4 { + rockchip,pins = + <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + wlan_led: wlan_led { + rockchip,pins = + <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_led: bt_led { + rockchip,pins = + <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pcie { pcie_drv: pcie-drv { rockchip,pins = From patchwork Tue Oct 9 14:05:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 148498 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4947884lji; Tue, 9 Oct 2018 07:06:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV60yXWsXODHJZ14We4JhHlwgx/PEYS6yddqRhfpFXgYK89uL0OeOvYfbTp2F8229eYBs58GW X-Received: by 2002:a63:680a:: with SMTP id d10-v6mr13021905pgc.7.1539093972278; Tue, 09 Oct 2018 07:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539093972; cv=none; d=google.com; s=arc-20160816; b=yzuPkDPKrsytQzMAkS4c0pd8i+ttSIFddK5h6lB5iYxd8eGq1ZVHbI0OTDoyhjjDLP OmB58iJDWEg1uUojnd8kk31MNR31t4coXjq+odH6BMJ5eQmIvHxxYCCbj8dTBhI0lWtb TjsCTg/QVAy7hu2K/t9LC5DaWavNSMDIjBye53O9vakAo9aWNXpiuUMWOPiOrBHkwi+Q 7SXVDz+yHMgmYUq9ZOblNhFK8s5X0FKuFCSABB8q9hi8SBmCGDHiiFKeJ0AZ4SOH4ubM opYq1zJtL7U0Pe2wkYtMiSVP9hTunaz7LnPqNz+mY50US73k7w10M+VodxtuIO+W5/o1 +RxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Mjns9AO833DdTLlO/vGxzhXmWWgQNDuIJY3ha9Rxc70=; b=JfNOwZdh4qVORhGSBEB3u+KjbTWCD7WI22cucDKGvnz0ejxszRppI7MLJXXuHz8Ttl 1A1t6YU7o1+zCJHrLkjA4Vr69m1Y/R6avo7uI3CaBjhARCo+zizSQm0Y+PFEj9qOScLc FhYAPfM/rzzyMJ4JHI2KUq5PdwDAVECKad/BjrZaD4VGZzN6x0CgWDSkQr+7wYQ2A6wp Zhb9BZSiVwoaR3zHYd+DHe5it+ZsEDF0mPteP4ZE0Y40mBCjfKdyunMDt4vdMkmgKZqx X7BjfybAN6vYkv16WRQlrJ7F//qer8lsjHBQXeBVFA3/jRHUX7RxHUwYYHi0PYIgIm+y 1OXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R+UTf16z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f63-v6si892037pfb.0.2018.10.09.07.06.10; Tue, 09 Oct 2018 07:06:12 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=R+UTf16z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727160AbeJIVXQ (ORCPT + 32 others); Tue, 9 Oct 2018 17:23:16 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39086 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbeJIVXP (ORCPT ); Tue, 9 Oct 2018 17:23:15 -0400 Received: by mail-pf1-f194.google.com with SMTP id c25-v6so903402pfe.6 for ; Tue, 09 Oct 2018 07:06:08 -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=Mjns9AO833DdTLlO/vGxzhXmWWgQNDuIJY3ha9Rxc70=; b=R+UTf16zmaJc7ZMBbNHwtbXPuEUJ/r0zyjbirplJ0qwSRSkepl+UXCqxKWAF/JbBl1 gX3Ha2zMfEriX1CsQIOnFTX7g8lvRiDEbl+wcI4fl60156xF3nwMV6mg52DGJ77bvOQx /EWNvn4wzKm8echOtZNCPGKaxcacC5F74bYOw= 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=Mjns9AO833DdTLlO/vGxzhXmWWgQNDuIJY3ha9Rxc70=; b=MwPEdD2+JTKbRXRGLc9wIZTTIVA2T5AmfsNwfPvo6JPhhKLcorRt6UTt/Yt3uOFb1C 2I5chT3G3qydLD/gEbsiV2G1zEQc+YL4OthuQVhPEpN5CIlBvUQnMlHT1fzKVmZkcsfM g7R2XwX6qnNqOLCR1VuCxm6snkwuBx7CBaj1SW3thF5jJCS7JM1xuXfs9wJ9aZ/wElsV csXpotHYLM5VzbfjLnScFKz0+4e1HQ+PfjrsUT502XRt/m/9v2H57vtHVoNF+51SQtDJ Vzl0nZojtDf6GlCtOOTkq2nRjVsrMs77QN8zI5prND8fJe6jIM/wZC5RWQZCy/7wDONW b5NA== X-Gm-Message-State: ABuFfohQ6/mrCu7bO5Na9+oSbM2sTFhL/t8CZmvZRrrm7GYGY+eoAap4 rPvzJKPZmGS3WWcAUIbizKR8 X-Received: by 2002:a63:bf46:: with SMTP id i6-v6mr17390656pgo.378.1539093968247; Tue, 09 Oct 2018 07:06:08 -0700 (PDT) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id e64-v6sm28947722pfe.55.2018.10.09.07.06.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 07:06:07 -0700 (PDT) From: Manivannan Sadhasivam To: robh+dt@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, Manivannan Sadhasivam Subject: [PATCH 5/6] arm64: dts: hisilicon: poplar: Standardize LED labels and triggers Date: Tue, 9 Oct 2018 19:35:21 +0530 Message-Id: <20181009140522.6492-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181009140522.6492-1-manivannan.sadhasivam@linaro.org> References: <20181009140522.6492-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For all 96Boards, the following standard is used for onboard LEDs. device-name:green:user1 default-trigger: heartbeat device-name:green:user2 default-trigger: mmc0/disk-activity (onboard-storage) device-name:green:user3 default-trigger: mmc1 (SD-card) device-name:green:user4 default-trigger: none, panic-indicator device-name:yellow:wlan default-trigger: phy0tx device-name:blue:bt default-trigger: hci0-power So lets adopt the same for Poplar, which is one of the 96Boards Enterprise edition platform. Due to absence of WLAN and BT support, corresponding LED nodes are not considered. Signed-off-by: Manivannan Sadhasivam --- .../arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts index d30f6eb8a5ee..f6f3e928a54e 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3798cv200-poplar.dts @@ -35,30 +35,31 @@ compatible = "gpio-leds"; user-led0 { - label = "USER-LED0"; + label = "hi3798cv200-poplar:green:user1"; gpios = <&gpio6 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; default-state = "off"; }; user-led1 { - label = "USER-LED1"; + label = "hi3798cv200-poplar:green:user2"; gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; linux,default-trigger = "mmc0"; default-state = "off"; }; user-led2 { - label = "USER-LED2"; + label = "hi3798cv200-poplar:green:user3"; gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "none"; + linux,default-trigger = "mmc1"; default-state = "off"; }; user-led3 { - label = "USER-LED3"; + label = "hi3798cv200-poplar:green:user4"; gpios = <&gpio10 6 GPIO_ACTIVE_LOW>; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; + panic-indicator; default-state = "off"; }; };