From patchwork Mon Oct 29 09:00:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149634 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3868951ljp; Mon, 29 Oct 2018 02:00:56 -0700 (PDT) X-Google-Smtp-Source: AJdET5e2jhbVsW/dMjmb87fyDGt6i27NjRQMmMgQ/NW9fs2UvN2pmzKfEbfTo9PokYwbbnfuVWG4 X-Received: by 2002:a63:ee43:: with SMTP id n3-v6mr12325480pgk.234.1540803656308; Mon, 29 Oct 2018 02:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540803656; cv=none; d=google.com; s=arc-20160816; b=RhPskrSGId5eNCvtUwI00CNHC4fxvPAE67UwWJVr1OrtV4DiSEvMEYAJhaa4R4h3VH 7C/nI1UtgZTUID9/T6hyuj9AT+x7iWoxxf//sQQ8qWBS3WNypUcDBgVETbjeyFnTVEmj 2jQLj7KcHbbz2lIoJV/syQFvsf2dRzf36Q9F8N+QTubiw7k4dVz1ZcZGLpjYduBYwXhg 81Dq8dUD35Eul92Xize6nqshVlUozCiP3mB9buP5GI4qwVu97cmI90Yj2LA5+Nza05fq KDkYj8az8GtIjZIP+ceHgV1zX7fTiUhDC6dlg1enzU9dwNHa8mq84yyDAGUIISwGxiQr wHNg== 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=r8Mp329hWat2WvqzqaX5lEpNBs0iY0IA5gtpBwjpI1RbTTMlC2jqvoe3yE9rcgDeVU OPBzzCdiszTVpCk0ZtKaKmycrI4b6/0ybddveOEoQMENEobLZkdTTCsZsH/V02ZoOs2d cdYmV8kjtImJidrYkkyGu4gaAw4R3pVoxMdbCnTlue5WZ580CKwvXhz9RX9Oq4ZAqDO+ mCZKypOyhyDutXCfEJTGCmIqVt42hsnbJZvvee3AxfQUBquhDwO/O/CsCVaZqnSe8Iit N5lxu1SUY3J5ILEKERWZv4aTVgERu7ibhlmRvqEeypGRqV+q4rrrfxkmhAt7lGNcKAjm svXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Eojx8vHs; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 v69si5078778pgd.284.2018.10.29.02.00.56; Mon, 29 Oct 2018 02:00:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=Eojx8vHs; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1729612AbeJ2Rsi (ORCPT + 6 others); Mon, 29 Oct 2018 13:48:38 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39197 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729597AbeJ2Rsi (ORCPT ); Mon, 29 Oct 2018 13:48:38 -0400 Received: by mail-pf1-f196.google.com with SMTP id c25-v6so3670319pfe.6 for ; Mon, 29 Oct 2018 02:00:55 -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=Eojx8vHsmBS5mnFqb6X3/ycGgyVwyHU6+FHo16QyQgDddknzVYY2SInRI91PsXWqeT r7Z4KvvogstHZvTgaE2+cjZCL76kiyVUZ3u9QuV8AH/1EfqER+41fPNuhh+yKUxybPcl lbCN4JF/VPXBNQJAGgyp01X4mBJZtR/ake2b0= 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=Fx4ihZfx19dIR8YDdd3aP2ScitrsGz2kmeyFMzxewz86/9EhxtROUbiMOzPn2BZMZp borgmv0LO1cp+DcoJtNnr57ayOGDd8hC7j0jTBwD1oh2+TIu5bUoxEEoBPZcZ1y/X3W/ 6EkKbSOPmfueGARPiCFb6O6Y5RRxF+MgyzzQ3BQ2mQB7o2cjrr1b9QvYHibpx0AP8WDy Ng4H/USQpz8qXUoYG/iI0VjhBJ3L9kWb/lOH4HjQRlVgWAFhSXI2o36R8dg0DB7Vk0Eh v2EYzF10XoZZe5+GLUP+F5wGVCenaXmDeQxUMWK7w2IcXrkOkxe6bxyfmpO6MoGQXFSN CXow== X-Gm-Message-State: AGRZ1gISHlL58Ks8dO3kVxeCukonQcZj47M2EzRLLkKDIbWfABNba8DC iH4PRJUAaQ8VtxG6J5o/XYgd X-Received: by 2002:a62:d2c7:: with SMTP id c190-v6mr157684pfg.26.1540803654681; Mon, 29 Oct 2018 02:00:54 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id m11-v6sm28265245pfi.102.2018.10.29.02.00.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:00:54 -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 v2 2/7] arm64: dts: rockchip: rock960: Add on-board LED support Date: Mon, 29 Oct 2018 14:30:01 +0530 Message-Id: <20181029090006.4353-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029090006.4353-1-manivannan.sadhasivam@linaro.org> References: <20181029090006.4353-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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:00:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 149635 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3869144ljp; Mon, 29 Oct 2018 02:01:06 -0700 (PDT) X-Google-Smtp-Source: AJdET5eO7aO20d74I64kJbInLmUzjYDZpXPTqnwN8M0DFnVFI87uT8DYIEUPuFw+4EpgQMIltGhs X-Received: by 2002:a17:902:f209:: with SMTP id gn9mr13013983plb.6.1540803666417; Mon, 29 Oct 2018 02:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540803666; cv=none; d=google.com; s=arc-20160816; b=RgrGQCU49GnaQsi6T171aY2AtZWat7dnPPmsA6uCtWdd0L9VGJJJl8DCl3Oj2IeeHl k6Q9UTZVijYCLevt4HMsHDjtxJAVx/CdIpP3DlivuKh7Y4Gjx/6C9ZHlf65hUr/C4VcN C2++nIBpLpkFKFyBquhV6raC60JWEkgTOWTRxJta6tnzpg6x1+t+K0cCbOCeqIn3G4I6 cPwQ/XJ/Abwf6mHSPqOSUrrq45JFptM9TjRDd9SII0s+N+R1i62XV94jIVMwmYJe/KeX ZE62rCYtJRnUaSHy39JL5R0jxpymy2Q0T2AO3ZK3wdc5tKIQg/CFFn5Sl0m42C53XJ5h 6DJg== 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=j2cyl7pk/6O0Vid/aGybHYEdGtKHVLDUxG+HI9FVaoA=; b=Y9Q9jNIsOgPsrPXELpHSBtx++gldqoH8pck3at4wmjNY+LAvkGuP6iwHeOQF2qYOCz c056CXEAvImRdgjz43K5DReY2oLA0cP+iyq8cLJj2gxU8ETfvqMMjvzGfYdFnB6P1/w0 Q4PVVCiJfxx9zdzAINbRb0QmWbjprXSIN0DFbTLnyQEZF599arL0xfvRIf1S4XDhpK6D 8cnp6mzTV9710RQgdAb1b1TYY7E5218o5CeDIqXM1Ku7qcirorlVVBIzESLAlMH/gHWV lB+jUMSf+pj6JsgSxrO+ElWwNH/YE4jIvsblh+KpCr95WUTZ1cUBKAeCwXoqH92kyqqZ 9pIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WXYEBIOS; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 v69si5078778pgd.284.2018.10.29.02.01.06; Mon, 29 Oct 2018 02:01:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=WXYEBIOS; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1729664AbeJ2Rss (ORCPT + 6 others); Mon, 29 Oct 2018 13:48:48 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33871 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729610AbeJ2Rss (ORCPT ); Mon, 29 Oct 2018 13:48:48 -0400 Received: by mail-pf1-f195.google.com with SMTP id f78-v6so3681411pfe.1 for ; Mon, 29 Oct 2018 02:01:05 -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=j2cyl7pk/6O0Vid/aGybHYEdGtKHVLDUxG+HI9FVaoA=; b=WXYEBIOSHhZvGe/6kt/SgeSbslSJXkqbZ0fRzs5jy48Ai3Gc5kXSPFxH5AG+BZjr6C B8f0LxSrx+RoBc/wlrR8K3+o3ubakn5wC9RYOi0OH6DXdqpa4AqjNR/8PSzd70NoaSxV ckPCguDAiO4rZ6yBzcYnXf2ULxRM/JwZTjQYo= 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=j2cyl7pk/6O0Vid/aGybHYEdGtKHVLDUxG+HI9FVaoA=; b=sXLWlvyP948lYcWc68ffy9dhc9P3SHp9cA1nLl1TJdhCt5BfXzd+ndFgL/C9U4PI4U X6e7L0gROm91n62EO9XxiyQEL950t/XzLI2Ubtvo/uBjYHPRYSbgL190ckbRwh36lw1u l33WSvA48rJGiTv1dw2e0QbQQR6De1s4LSnbXViefb3czv1q5Tl5D7qJ5EvEajmbbGhS Fjarj8lnXlpqtT5J0f8Degz3QyPI4fxjosNc5tS6RqHOhcTpHm4XeForPr9hSYsKKI+V g/C8fHApSzU1uLFmN8m0W640p8/Qu59Rtaj1LfyIVaoBAlmiZaiDd3zMihrjuYP8LTgX hhGg== X-Gm-Message-State: AGRZ1gLkBnxsTvoMht4AXmu+UuJ5d6N/qHPjPGc4E5bjFRnEp+dGBZGb fjBW52yeakBJ6UqTH0fs7cYS X-Received: by 2002:a62:764e:: with SMTP id r75-v6mr14316497pfc.230.1540803664889; Mon, 29 Oct 2018 02:01:04 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6091:9d4b:9d82:66b9:3ee6:ffac]) by smtp.gmail.com with ESMTPSA id m11-v6sm28265245pfi.102.2018.10.29.02.00.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 02:01:04 -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 v2 3/7] arm64: dts: hisilicon: hikey: Standardize LED labels and triggers Date: Mon, 29 Oct 2018 14:30:02 +0530 Message-Id: <20181029090006.4353-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029090006.4353-1-manivannan.sadhasivam@linaro.org> References: <20181029090006.4353-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 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..d2bb5912dee7 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"; + label = "green:user1"; gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ linux,default-trigger = "heartbeat"; }; user_led3 { - label = "user_led3"; + label = "green:user2"; gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ linux,default-trigger = "mmc0"; }; user_led2 { - label = "user_led2"; + label = "green:user3"; gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ linux,default-trigger = "mmc1"; }; user_led1 { - label = "user_led1"; + 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"; }; };