From patchwork Mon Oct 29 09:42:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149643 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3905986ljp; Mon, 29 Oct 2018 02:43:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5ct2e4HfMpaQIsqRNUAmXiGeoOvqJjE6lXh3FZJEZpplg/R6pIZgIYD+4Qg0XKzNVNOVQrA X-Received: by 2002:a62:89d7:: with SMTP id n84-v6mr7896333pfk.255.1540806203531; Mon, 29 Oct 2018 02:43:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806203; cv=none; d=google.com; s=arc-20160816; b=zTDfR7e4HFs+zIPgujKaJ6KV8CwfoMx+XiwzbdVHPAw1S+RL4CqHyJ+ehmZrAg8KWD DzNHFCgw8dsIdo80i5Hv0LFfVZYSL6XoUCaEGshNPYdUHO76hMWkAfveKqz5mfJuzPNK Xr0ObHOd1ErqA/equDQkmPUSKg1nA4FuOwjjHi6OV+7lJxQsBDzkf7rLtAvuif2aHNpM VGWzzPZjn/uUpuY6jQHqmC1j1QIOw63DvCrv2MZF9QAKBA7z6eCRLrrnpj2PIY+rswaN wS4Eq5LaZyGuWQ6wjQBxm4Kh8D8JMdshRGU1cgddyRrH1CI4T52zNd6Z9pvoYsTsPlo8 XFaQ== 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=pCPQcI73UddaBWggkh570wXZTWiaCyv6lTgOSiLnbCM=; b=QlUHF66H+O0bnNL1mJBCxP99gjmKdUgczkfq07W9OYYnJvyb/hvePteZVN5juB6S6f ZXvY3f3edcyerDujpnwiuTQngSJoynwFP6ZUQljOsc/O7rpd5zozQjdn1W0XCuXViWq9 m54hdFR5ndcoSvO7XsB+SSReZqUwfm3xs6bdROk6Nm5QKM6W+pICmXN/rXO2oexSKThu ICM6L0TnozA/eIAeG6yHNMjSE0bdyZYTBlDOBGjk0zEqJmUGp8eRVwKtt00LL+JNTefF mMUnDxzm8plKIYHIZRnj5nLO7mLzxQqYWUWOt8bEEC69Xhvi4zGDLzVPkRJEU0RSP+Vl qH2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TjAIwcBs; 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 f38-v6si19649863pgf.153.2018.10.29.02.43.23; Mon, 29 Oct 2018 02:43:23 -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=TjAIwcBs; 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 S1729755AbeJ2SbO (ORCPT + 32 others); Mon, 29 Oct 2018 14:31:14 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37470 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729739AbeJ2SbN (ORCPT ); Mon, 29 Oct 2018 14:31:13 -0400 Received: by mail-pg1-f196.google.com with SMTP id c10-v6so3617776pgq.4 for ; Mon, 29 Oct 2018 02:43:20 -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=pCPQcI73UddaBWggkh570wXZTWiaCyv6lTgOSiLnbCM=; b=TjAIwcBs595dTO4lawKU3u/xjBCzwU4vXj8rbWfbQ0EXBtVEaWjDjHH4NUoYIeO2Qn xMAjv9np6GTwAZ7UBXV/AQi/EUrY56ku4NcQS+7JqKSbKLTWcKRBGd4bqPFL859LXBV/ sbM0+UuKCihmKH+ky7DeUQ6H1VHcIY1wm/j94= 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=pCPQcI73UddaBWggkh570wXZTWiaCyv6lTgOSiLnbCM=; b=ruJcnBviLD/iaB9SAjFLA7NU/VhzetO8xEE8qanSckjvDiT9Ibvbr6oFgbn3sSIbY0 8DSP68CE8M06lex6+bvcsgd+3AF5neYE9thjIg13sMtvHBTIQde/7+T93QL7wjVupHkz MvpU4srM9Y2erN3OID4FUguG+wy1yiypSzn8ccqktRbILPp7PmuHt8AHJJVmi9M5RAR+ qjgKiop8GD5BfQf32mtm5YoVfgBOaJYZsHZDfoiiL0Vart5aWYZhe48dwA7I8coacVJV XH7NoxDUdo8FbNEg0ou2C/rw6mQPiJIXCc4wb9QyXR7AfozJQ2Iuhun4tS6x7qdGrE+C PoSQ== X-Gm-Message-State: AGRZ1gLTPKqoIEYhAzpP7bqjb2ezf33iAc+WOv8328VCCmGDHFRN1ooA gPBpbVR1oBf/IZuWjimSiLix X-Received: by 2002:a63:4343:: with SMTP id q64-v6mr13582181pga.276.1540806199372; Mon, 29 Oct 2018 02:43:19 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id b62-v6sm21162056pfa.159.2018.10.29.02.43.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:43:18 -0700 (PDT) From: Manivannan Sadhasivam To: robh@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com, pavel@ucw.cz, andy.gross@linaro.org Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, nicolas.dechesne@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 2/7] arm64: dts: rockchip: rock960: Add on-board LED support Date: Mon, 29 Oct 2018 15:12:40 +0530 Message-Id: <20181029094245.7886-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> References: <20181029094245.7886-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: green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx 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..12285c51cceb 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 = "green:user1"; + gpios = <&gpio4 RK_PC2 0>; + linux,default-trigger = "heartbeat"; + }; + + user_led2 { + label = "green:user2"; + gpios = <&gpio4 RK_PC6 0>; + linux,default-trigger = "mmc0"; + }; + + user_led3 { + label = "green:user3"; + gpios = <&gpio4 RK_PD0 0>; + linux,default-trigger = "mmc1"; + }; + + user_led4 { + label = "green:user4"; + gpios = <&gpio4 RK_PD4 0>; + panic-indicator; + linux,default-trigger = "none"; + }; + + wlan_active_led { + label = "yellow:wlan"; + gpios = <&gpio4 RK_PD5 0>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt_active_led { + label = "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 Mon Oct 29 09:42:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149644 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3906111ljp; Mon, 29 Oct 2018 02:43:31 -0700 (PDT) X-Google-Smtp-Source: AJdET5e4TFwJHdycy/UhK4tpjoNK5C/VCVscAjqQxqcxcYJmUcsdSU+ZkroMbgypVmPwWHtUyT+/ X-Received: by 2002:a17:902:703:: with SMTP id 3-v6mr13692347pli.38.1540806211485; Mon, 29 Oct 2018 02:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806211; cv=none; d=google.com; s=arc-20160816; b=ywBq7kr9/5wVVIFS4cxOAmwht15OJvbWGqe6+D/KNSMRYXqnddRsDkDm5hgBmxZKDE ACSU0jd5hL7ZJH0KpPwKlBxLcsuabeuqeR7KPXkLT43u+q4ZxsmJnGpqQmzL0xRnH1dy AU6aAYLA9u+v5M6D7xo5TK1DL4UT9PAoMaUGJPUV+qiI3b0/3YOhXln33TSYyATPwRby EEASgb/wmIZp6QA1IUhJhAO4anOZhAzhSCOyip6q09/dD9A2e5X21ilbSeg1Ym8ASWT1 pnhdpJuAO+sqyoiMZttlevvSqBMrlr/TGzsocJpNzFsjoBSz7GVBBdSi/4mbFV3WcaMZ EgGA== 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=eF7R+wV5XvQwulmXcDJVVSDaYAoMfcK0EngVpIC/pTQ=; b=B21TeE/5r6U4pNXhq4Fs10N0+qw5wjaFqsKgS0WhqzZgAtUd9Id2eTuooE0CVONlqg A+DzUWxUORoLaDsqVajysacYuz3DdSnueAT09ZNvbJiqcbYgphF9fhT2/hwBSrkSZ3Sr GD6ne2GE78tuisU3qIEhVY3hQwLYNPfOD2OqAMZU20R/JDiK0uF/2Z5qqOceu1AipTCy ixjXZnP4hVVkk2GC+lsb0BdVNBuyt8XgxW0C/O39eporE1ogxPd4lFkYP0vxi2MZ3fd1 CZVpXxXrn7Gxv80hnI8diXIUMhHxkM81Fn7JqfDKv6cbWsMbtPzzLdivGEWNt5dAbr3j QPZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T1oqIA+W; 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 202-v6si20111511pgb.63.2018.10.29.02.43.31; Mon, 29 Oct 2018 02:43:31 -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=T1oqIA+W; 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 S1729769AbeJ2SbV (ORCPT + 32 others); Mon, 29 Oct 2018 14:31:21 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44205 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729757AbeJ2SbV (ORCPT ); Mon, 29 Oct 2018 14:31:21 -0400 Received: by mail-pg1-f196.google.com with SMTP id w3-v6so3596843pgs.11 for ; Mon, 29 Oct 2018 02:43:28 -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=eF7R+wV5XvQwulmXcDJVVSDaYAoMfcK0EngVpIC/pTQ=; b=T1oqIA+WZ4VaD4gwcVt/EeAQUL4LV9w5Bh7g8yYjkzfIfCAFcLVAnsA19+mO3LBBP0 PpkpGcOSbeMuVukpajaZrAZ0Pyau3UPtBCe5qq54srP8RuB1aBuHiv4te2jgNa24fiLE 5WRKUPHFDvMM5lqLKbVjQMkuvf0f40dJKoX0o= 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=eF7R+wV5XvQwulmXcDJVVSDaYAoMfcK0EngVpIC/pTQ=; b=jKXbW1jl3E8Q2SrtLpFXcD7KsZpdEAUH30fQL2PsKylKPV2Zfbc6Er+uaneEy4vH0D Qe0xtZORrPgQdNdpWN6wxHSpT99BamJGieXb5SgKG42CoMxkASb5Oc2m15imh0KjRNKG cGHIeHGWYukH0s9+FoWr8bErLW0J1oO0dNtiWjwouRtR4UZaG9C5Md801xe1tFr4enac sc06fSBBe8B/nOMvb86DBDpO5iVDEL3w3SNzamHWAHf9Sf6hK37aJylbcOVPb03sSnWA BWH+rhxsEqNfluEImo2KK+dfAuFoutq6UK2VEEWIxVzEJJtwTRkMOOhecGAPwRtPEDEI GhLA== X-Gm-Message-State: AGRZ1gKr9wRmtMynL9iIAaZpiP4nYNZ6VWdC3aP0auI1QB5WZDsm9nFG rWkPO2d1Y7mXQd465kk/6Da4 X-Received: by 2002:a63:2e47:: with SMTP id u68-v6mr13188980pgu.294.1540806208288; Mon, 29 Oct 2018 02:43:28 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id b62-v6sm21162056pfa.159.2018.10.29.02.43.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:43:27 -0700 (PDT) From: Manivannan Sadhasivam To: robh@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com, pavel@ucw.cz, andy.gross@linaro.org Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, nicolas.dechesne@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 3/7] arm64: dts: hisilicon: hikey: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 15:12:41 +0530 Message-Id: <20181029094245.7886-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> References: <20181029094245.7886-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. green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx blue:bt default-trigger: hci0-power So lets adopt the same for HiKey, which is one of the 96Boards CE platform. Signed-off-by: Manivannan Sadhasivam --- .../arm64/boot/dts/hisilicon/hi6220-hikey.dts | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index f4964bee6a1a..610235028cc7 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -340,42 +340,43 @@ leds { compatible = "gpio-leds"; - user_led4 { - label = "user_led4"; + + user_led1 { + label = "green:user1"; gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ linux,default-trigger = "heartbeat"; }; - user_led3 { - label = "user_led3"; + user_led2 { + label = "green:user2"; gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ linux,default-trigger = "mmc0"; }; - user_led2 { - label = "user_led2"; + user_led3 { + label = "green:user3"; gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ linux,default-trigger = "mmc1"; }; - user_led1 { - label = "user_led1"; + user_led4 { + label = "green:user4"; gpios = <&gpio4 3 0>; /* <&gpio_user_led_4>; */ panic-indicator; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; }; wlan_active_led { - label = "wifi_active"; + label = "yellow:wlan"; gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */ linux,default-trigger = "phy0tx"; default-state = "off"; }; bt_active_led { - label = "bt_active"; + label = "blue:bt"; gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */ - linux,default-trigger = "hci0rx"; + linux,default-trigger = "hci0-power"; default-state = "off"; }; }; From patchwork Mon Oct 29 09:42:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149645 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3906254ljp; Mon, 29 Oct 2018 02:43:41 -0700 (PDT) X-Google-Smtp-Source: AJdET5fapbC53eVZBGhDMYMsmObX6kd+FPxLrqnmoGdDvqUfV95jX6bmvh7at+9aaiqi+gNUs4Sz X-Received: by 2002:a17:902:14e:: with SMTP id 72-v6mr13282753plb.299.1540806221043; Mon, 29 Oct 2018 02:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806221; cv=none; d=google.com; s=arc-20160816; b=xlIKB3H4pEBvrIYzkkcDKxcc+ojNxMMtmnROklWrxu8SG4bM5KW1GFBiHmQudP0jEd 0tbLxfkn0W85bwugROp+njCXkd5oCbKTRHafC66dD/AueP/3I1p0WhRo95WGf7PZOJqN nC+oZGgV9hrTquFkXFmsA+Wn3ccXElj0yXYJQ7vFC5oZvbWmk9GA+f1LbI53Uv2zkhqn CcXNxt/mfP630UDJv4cZ8jxJYykbRmrF0DO93//8Xf5CjtFOxM8wzVlz6un3RG/eOvX+ 31bfei7PPXF8FP2sv6HTL/KAMBqQjV2VjmOKW9/EffwvcKzqHx43V/q+X4G12E4JGB4Q D/JA== 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=qiPc7+pFvXoljKcM3oPGvfYWKPi0YXvGMfaOhIYBWYY=; b=kSTOrirRDImUepivmpZuKA7hGMbwlli1F32hQqjbSJQGn6VkWWV5jtENXCzg8RWhpV aPwGMtFcqKIRFIj+dNP+x/N8kfrUX8o2QMCfNigGaBFuWQpCa/aKV6/bmVZ3yM5WQUsr 4KPUuKJcq3toMJD3V7GoRIdBbVRZRLWGKMizrM9rpLuPaC3DLQMeNs51yWLi7+kxRslY 9PWuWmxiaFPJtezgWnRTBpE2dlSvxiG3inPAF7j0NgKNd1yDk+6G3t66BSn56z0u4Alq 7W/XpgAKltOymsLV/C4t73OpDt4zlrhCkgjsvw6oXfvpN7AE7kQKfFVIlvVJn9Um2ShX WX3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OB1Eooes; 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 ay8-v6si18822448plb.235.2018.10.29.02.43.40; Mon, 29 Oct 2018 02:43:41 -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=OB1Eooes; 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 S1729782AbeJ2Sbb (ORCPT + 32 others); Mon, 29 Oct 2018 14:31:31 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38950 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729770AbeJ2Sbb (ORCPT ); Mon, 29 Oct 2018 14:31:31 -0400 Received: by mail-pf1-f193.google.com with SMTP id c25-v6so3725520pfe.6 for ; Mon, 29 Oct 2018 02:43:38 -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=qiPc7+pFvXoljKcM3oPGvfYWKPi0YXvGMfaOhIYBWYY=; b=OB1EooesqrBOElL1r+qtAJKzfKREBosKFIkMyzQv+2UMDOiOpARouqCWScAJu1QTGE Btl0EVNcWJdcBwWAegdJFiTIqnFnKI5HgK00hhBrDeffmE1G/tmtXTfkZihKYhGwiNNN eybhqnvb0vdCW/3v7xf4OyxOhrcr/IiOBRTT4= 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=qiPc7+pFvXoljKcM3oPGvfYWKPi0YXvGMfaOhIYBWYY=; b=lOv0tNDgcMatWwOlt18slM5OJqdIj+i+OFIKkPJUIRPSEXtZtjf790u8X+P5pyKfiS p2zlOFfZVIG7id06P0XNxb5pn4FmcNv8YOdwkGPe5fp8BpnrWEZ4DneQCUxicOtQ/b6t JGY2ql5GiPKkpSKIffI0yAnPYHU/cG3rfcBI6YZfQMDG67o6i3bF0ICZ/JjKgzSIgqgg rstqVI+2u4tbcB0jmyEK9z7+mByX3VR5hahJ1TSLiw6m6aJBAKxmTqgbXOwVDDZpmBYD keSNfGp0KikEc6I0xwuucXP80bIx0NdV/jewHCOJENaqESjzY+ohwQzNuRhdFi2f1TV5 WejQ== X-Gm-Message-State: AGRZ1gKhxd4A47LUP2UiPCxk0uWtWrCVvaoA+HNvvs+GTcZjvhQYGFjN 38dYnQZWzlYzksG9KFNKWWzr X-Received: by 2002:a63:1b1f:: with SMTP id b31mr12984602pgb.66.1540806218119; Mon, 29 Oct 2018 02:43:38 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id b62-v6sm21162056pfa.159.2018.10.29.02.43.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:43:37 -0700 (PDT) From: Manivannan Sadhasivam To: robh@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com, pavel@ucw.cz, andy.gross@linaro.org Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, koen.kooi@linaro.org, nicolas.dechesne@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 4/7] arm64: dts: hisilicon: hikey960: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 15:12:42 +0530 Message-Id: <20181029094245.7886-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029094245.7886-1-manivannan.sadhasivam@linaro.org> References: <20181029094245.7886-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. green:user1 default-trigger: heartbeat green:user2 default-trigger: mmc0/disk-activity(onboard-storage) green:user3 default-trigger: mmc1 (SD-card) green:user4 default-trigger: none, panic-indicator yellow:wlan default-trigger: phy0tx blue:bt default-trigger: hci0-power So lets adopt the same for HiKey960 which is one of the 96Boards CE platform. Since there is no trigger available for onboard-storage UFS now, user2 trigger is set to none. Signed-off-by: Manivannan Sadhasivam --- .../boot/dts/hisilicon/hi3660-hikey960.dts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index c98bcbc8dfba..46435466f1ab 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -85,36 +85,36 @@ compatible = "gpio-leds"; user_led1 { - label = "user_led1"; + label = "green:user1"; /* gpio_150_user_led1 */ gpios = <&gpio18 6 0>; linux,default-trigger = "heartbeat"; }; user_led2 { - label = "user_led2"; + label = "green:user2"; /* gpio_151_user_led2 */ gpios = <&gpio18 7 0>; - linux,default-trigger = "mmc0"; + linux,default-trigger = "none"; }; user_led3 { - label = "user_led3"; + label = "green:user3"; /* gpio_189_user_led3 */ gpios = <&gpio23 5 0>; - default-state = "off"; + linux,default-trigger = "mmc0"; }; user_led4 { - label = "user_led4"; + label = "green:user4"; /* gpio_190_user_led4 */ gpios = <&gpio23 6 0>; panic-indicator; - linux,default-trigger = "cpu0"; + linux,default-trigger = "none"; }; wlan_active_led { - label = "wifi_active"; + label = "yellow:wlan"; /* gpio_205_wifi_active */ gpios = <&gpio25 5 0>; linux,default-trigger = "phy0tx"; @@ -122,7 +122,7 @@ }; bt_active_led { - label = "bt_active"; + label = "blue:bt"; gpios = <&gpio25 7 0>; /* gpio_207_user_led1 */ linux,default-trigger = "hci0-power";