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: 10632849 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2EDCB15E2 for ; Tue, 9 Oct 2018 15:01:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AFA128FDD for ; Tue, 9 Oct 2018 15:01:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F38E228FE5; Tue, 9 Oct 2018 15:01:17 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 917A028FDD for ; Tue, 9 Oct 2018 15:01:17 +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=GeNmiL+3ly8moIJT5uFUrkC5qRCAhBnvAOLh+zeP6bc=; b=UhQ9EuFldv8kIwRQnAEeIwlB2Y u5s/nJFe1PvGSvf1NI1CkAUqJL8VAJvY2w3LN2wZpPvQe3KHjkrYaGJoWjuP0osvs2xMFkGbCiKSv fVLCi/0xd2wAJLkgP4Monrsif6616O/3sNPL+XaXFJhGGWekdvtF9XOfi8CXTaZ+4Szpe54UrxtBQ UFp0kNaOLdTlAFjtjEFb3DjN7bAOh8s0fHwofe2Su91SKZ5pDhz8ybbYVG2foNSe8B3GkczkGsXIT cCuao3sisBt6PgmbkhbBaKGHgrbMhRQ1xr/vVXmA0mvuYn06u0lINBSUg9x956t7upaQby5eaBiTV HL+mCIVg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9tVa-0003oO-7o; Tue, 09 Oct 2018 15:01:14 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9tGz-0005SQ-7b for linux-rockchip@bombadil.infradead.org; Tue, 09 Oct 2018 14:46:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jNMZduWvpDA30ITMoX26ELjye5ItNmE367b4X3cPoAI=; b=HPpTnnlQIa52Y1tYdWozMG4q1 HPLY4JsVbS6jJIcymqXDKlDbQ9JwtHu2HOtXmhgb/O+FLUzTQWyxdkpLOaiv/8Kr0WZX6KuDV9Wqs D/Fx1g76fUz5RWh7H1UihKMgc6a3ibw6H/HrP6TwVZXx112VcXUZjtEckDld+STdN6hiAp5TgEFA4 oTi+Jl24lbU8vP5YTpCfdEMht4yKJkU1Uv51Of9KEJKWZfzO/khtr0sDM+Wq/ExC1ZaW2CHp+oE3K cwN52t3iKijT3BSqk0uykQonJ3VFKP+qT5kT3KD7YkuNus7JKUIBGXE/nng886tCCDAuQM2in2o/j aZszX7Fpw==; Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9seC-0005Hi-Li for linux-rockchip@lists.infradead.org; Tue, 09 Oct 2018 14:06:06 +0000 Received: by mail-pf1-x444.google.com with SMTP id d4-v6so915075pfn.0 for ; Tue, 09 Oct 2018 07:05:54 -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=f10PhBEz+fSIbEHwyQ/8DiVlo8g3H0BKAu1Of2bMXow/2uz7JbHS8di71Co0EqBu82 J+q/QHn1SDAKkPMOBo/T1oAp1qOHnmn+BYaYKOC9EDB1/jKH5De50X0zv8rznMKLNWWK juAT0lVTkaSlTBTCb0yvxQpjxRvMYJ4XxvCdLOOAroR3aEL3hHva5Z6N1leMx51otdh8 EIlsbKLgIE5afYYBsIOZqNHYRi3ICgT4wkcg98AOa2v0yxvwGkV+WOF2iSttKaLdCV0A YOA/vdRG2iNpd3ErJEorMbzZ/GmekXlLcnu/cCAn/pLDFdF0/h4xEkYkDWgEjoBELALJ q5Uw== X-Gm-Message-State: ABuFfogmVJTHjEfysaWLPVeDoHAABUhODTLmv1xv7HegqGhBbuHExBhs gdddVWDx3zfFTIfHkJHK5H9a X-Google-Smtp-Source: ACcGV62HmEnEsHawxfCbbKxyrpd66UinCZEIhrZxjVbV6SbcOPcBHPCTfj7esG4g1fWHnfDwdf9kVg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_100604_756819_3BA5A1DB X-CRM114-Status: GOOD ( 11.69 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, daniel.thompson@linaro.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-rockchip@lists.infradead.org, koen.kooi@linaro.org, Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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: 10632847 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A0C213AA for ; Tue, 9 Oct 2018 15:01:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5675528F84 for ; Tue, 9 Oct 2018 15:01:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A27A28FD2; Tue, 9 Oct 2018 15:01:16 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 A705428F84 for ; Tue, 9 Oct 2018 15:01:15 +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=tbZASqs5sxGKF2WQS0q5SFVJwXaDSbPs8xWNJaH+PRk=; b=BxsM04gTOeksLc85nma8ELWE+3 hEG0NDY1ikGaU6uBua56qSYADJd5KXYKLtME79jlfctbGseDxQn+75n+N5qmatlpHa5B758b98/ID S4cViosXEohJOvqCErO3K1YlM/ji/ZQgPdVwIqO779V81TftVmee78S4SuG+KbJv06GwPeK9Qbend XUAarTAAsUv8kwweMHFOmz/13qBnPdmayYDNOlJUHqenw8/peTklCynukbugJoy3kKVegx6ftT2RN qnMLS2YjAPBWyJ6bndzq4oZYyioA/XiG3pVwsVzOKX01n2xEKj/D8eO3iy06Lzy3ZMsEl8OyeEzKr Av6cnTZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9tVY-0003nv-UA; Tue, 09 Oct 2018 15:01:13 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9tGx-0005SQ-PK for linux-rockchip@bombadil.infradead.org; Tue, 09 Oct 2018 14:46:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2v0A8Sy+mBXs6qKDANV08GTdJ7Hi+gaENxNk1633qzo=; b=Pb0sLC9oliw7JgEeLSXv2WW8C cpb0oIQjACnlYaRbbZjfaqnfLWAIKyH71OOO6gEWDDzTdW0jQJksrcq4thjEUj+Bnc7mAMEMwJC5k aFajmKAPfFATMz3YZJOK3Li7w7Tj0JHAQZnAlRvAuZXU/BYsr8pr9tdq5LuoKu28uqriqNTyv1t+8 mqYLlUnzkEs0CJt+OWXbcyeWrJirRMbVPvdvEyrJYxYZgQ7uVj0X1WPkiBhuVmfxj2QkfW8fGgbmD KMhZmW6CR3dMUmRyo2w0a1QtTBjGLKEgVA2SNea+CzLq3JE5JYLO9n1IBjAF5t8MKrxM0nf4tsjwr lW6VdIGqw==; Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9seG-0005Hu-Nz for linux-rockchip@lists.infradead.org; Tue, 09 Oct 2018 14:06:11 +0000 Received: by mail-pl1-x643.google.com with SMTP id s4-v6so903201plp.0 for ; Tue, 09 Oct 2018 07:05:58 -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=RW1pjey9JPcHUuy/whl+d81Tcab4h8JvA8VljLYKgQ+LccH7IJzVTujD36kedZYENe rjx/AzWzKRo5UH+houW0mSXR7+S5/vpu6Ee1U2pW5YiU/MCr7wsVXOh9bzA4vi/C9hw7 RPGB67YS6XE+oS9SRYGvq0nlTzgiWLrLIGQrXkQd+Qiy+FpWDEVT6MWLA3itIT/+8GFi x3C4q1WjH4KxX+tk/8tKzZfgoGzY9bNLan3Jiq1xOSRKlPFgCpQsaBv02roXWkrOiEsL +jEj19BFQls8GMSpDpRT462zQy3h4HWtti1B56tnO1JjQj81Gnn184VqRLxJfq2gbNV0 blzA== X-Gm-Message-State: ABuFfogaVcUny+MVxsZm3uD18nyML3A6Yh67lceCDRb4eFMfXsSn3mQ5 4ECCnwaN2FnUv3QxxGp10uFY X-Google-Smtp-Source: ACcGV63ZyRn69n6sXb9QCqwtRgHqSpbeQk+5cLve33dgfW6Q+i44vYFrJsV9+EdMVjBb9kYvVtq0JQ== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_100608_877387_5984DCF9 X-CRM114-Status: GOOD ( 11.90 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, daniel.thompson@linaro.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-rockchip@lists.infradead.org, koen.kooi@linaro.org, Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10632851 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 85B9815E2 for ; Tue, 9 Oct 2018 15:01:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A30328F49 for ; Tue, 9 Oct 2018 15:01:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56E6628FEF; Tue, 9 Oct 2018 15:01:20 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 0E47828FBF for ; Tue, 9 Oct 2018 15:01:14 +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=3vIBVUWrAAxVTc+y8AeF2NgH3np0iCjC4yqrx6xTRIs=; b=paU9NzrtOyv82eAeyUzcrQ8J7x 7f1AmJuRa4etY+FhedVEL+4BgoMAKvVRk+UwIzDeEkb35tyYsD1YOrb2DRKsXWuCNKTfdkOh6YjXF FwXqtWT31R8ZxuautyxfzeincCUW+pwe60qIrLGfUPLgQg9i5ta5aI5zZOO6EIK6FHbDiVcH2QqIg h/gydtu5A37/P8xNMvyrASnlK7RVYEWyEOp7uJBDzlm0khrtZYV3Sg9P5+Vhp0/dYhgSaxO1pkPY9 tkOXrqr2S3ejGTP4pmJlvkg+NmLPRYgq6pug1WtACeV+TgLOJqjKXJ6b1cJ2U2sEKiJtSWXOlAo34 d2RJZkLg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9tVW-0003n5-Hh; Tue, 09 Oct 2018 15:01:10 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9tGu-0005SQ-OP for linux-rockchip@bombadil.infradead.org; Tue, 09 Oct 2018 14:46:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dqiYckb7Q3F8kaPDDVtcaj9+/KOyQnhiQ9kyaN/rDMk=; b=v5DC4kVx9gCi5tlynxscd3S7U rbInFZdHLoLHRIl8cHbvAmzzx8XkN6DU3Ph6PjgpF9S5ifimKmxyMBEOHIybtwbALP08TuV8bxpSa v1wNxf7F4PN0fGtlAoedPIr8lA2o3tyb41ODcGc7V1+H81JPWTlaQPIiYY4hvYs1aWKdAZgqsrXh0 impe2GzZKLb2w8prm22pPMsmaQHC8bulbxUriEATRTXY6ouH9YH5kldfjdKy+acG88Qp007wb0EfL Xllijonvo9/XNJB8jmQx8kyZ0jkTStX8obp/EmYlA4bRp81bP+oiKA/6wDfF1lUVeAAsUqHKIF4pb dxH3PXnOA==; Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9seK-0005IB-Sb for linux-rockchip@lists.infradead.org; Tue, 09 Oct 2018 14:06:18 +0000 Received: by mail-pg1-x543.google.com with SMTP id y18-v6so881787pge.0 for ; Tue, 09 Oct 2018 07:06:02 -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=dqiYckb7Q3F8kaPDDVtcaj9+/KOyQnhiQ9kyaN/rDMk=; b=cIj4DW1SfQaNlFJdhnGgnF4jb/XGXIwnEgEEcFf1Tp7iWKUMxnWNdiMDh1qM6uybzM PqwWmbQyWCCz5HsqZd4uxFqDxNhvoJUgTesCNu6bgQ1c/r9Wpn9zeRAns+7MwEGjrVOe WBIb3z5JExOkgna6KkUfKqnmnLX8Y2mol9hvE= 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=dqiYckb7Q3F8kaPDDVtcaj9+/KOyQnhiQ9kyaN/rDMk=; b=hzsl1+nB9hLdb9P8o38ltQ+7yO3T6bqqq+BUckou3OFll9Topmu8lnD2i7FDYYtnE9 D4PlLZjUz6ULr7yEJHryX2UMXuW0gWl7yzW1M/T3Gc3Q9G0R4JoBNDecVdEJrD7IJdbh DLvWydPKj75HNcDvHCaWzZCdDvctc2/UnCgsUWDrQALcW8ow9UZNcwBZfR2kYi9MKeF0 R5wP8Ao22nxJK/Xu+iCNuzjmazKKH0rPXAgYqXasq+21/SZMAzVOwDqYzFVIxzrVzwFx KVYjFKQSQy79vMZRz79zjJEA7EsPwO2e+0frs31ElAm+OHhj2/DLaziIE93hODq1ehUA tPdw== X-Gm-Message-State: ABuFfohrrypunGmLlHQXbJRk4MeIQxDvcSjU2baG305OobyMAcT/jfN6 pwHXJdgsNqi+bNhcOe4JrgAl X-Google-Smtp-Source: ACcGV62jKg4lFYLo2Ygo+ApTeJ0uXrtpznjGYeRaxyuqrh8dKL4zEGk9n9FwsmdnzY2xvsQGzhcrHA== X-Received: by 2002:a63:cc51:: with SMTP id q17-v6mr25509145pgi.291.1539093960346; Tue, 09 Oct 2018 07:06:00 -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.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 07:05:59 -0700 (PDT) From: Manivannan Sadhasivam To: robh+dt@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com Subject: [PATCH 3/6] arm64: dts: hisilicon: hikey: Standardize LED labels and triggers Date: Tue, 9 Oct 2018 19:35:19 +0530 Message-Id: <20181009140522.6492-4-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_100612_951437_885B7845 X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, daniel.thompson@linaro.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-rockchip@lists.infradead.org, koen.kooi@linaro.org, Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index f4964bee6a1a..3dd9543da0b6 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 = "hi6220-hikey:green:user1"; gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ linux,default-trigger = "heartbeat"; }; user_led3 { - label = "user_led3"; + label = "hi6220-hikey:green:user2"; gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ linux,default-trigger = "mmc0"; }; user_led2 { - label = "user_led2"; + label = "hi6220-hikey:green:user3"; gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ linux,default-trigger = "mmc1"; }; user_led1 { - label = "user_led1"; + label = "hi6220-hikey: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 = "hi6220-hikey:yellow:wlan"; gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */ linux,default-trigger = "phy0tx"; default-state = "off"; }; bt_active_led { - label = "bt_active"; + label = "hi6220-hikey:blue:bt"; gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */ - linux,default-trigger = "hci0rx"; + linux,default-trigger = "hci0-power"; default-state = "off"; }; }; From patchwork Tue Oct 9 14:05:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10632823 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D9BA174A for ; Tue, 9 Oct 2018 14:31:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 682A328E4E for ; Tue, 9 Oct 2018 14:31:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A5A728E64; Tue, 9 Oct 2018 14:31:13 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 D922A28E4E for ; Tue, 9 Oct 2018 14:31:12 +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=L7voOinb3K9OvtKYVCPt3ANqQKeyoMPcO5xEzGYSRbo=; b=S22hm1jGayHroW2vPHfoEcg+FF LtYeTe0BH2bkV7Io5h1RoujT3EosdBnXgENVUw3Ycmpbf2gVLBF23bjx1KHGnWDMsExczlwULHOUF 60Zea/Q5sNuiHz8euotQ5XkV/BhYuydY8jTh/+xK/eb7pE6F6iErBaYD0F+7YGdBlaiciEx8uoveJ E2zC4uO8976G9gI6z04Wa0ZC3JhOknLVMao5RFbiiKArZxtsoqID79BaKFk7igngeUmjA/NR68Hax r7nwiQNxkmBI0uvST43reE4w4AAmH0kGiphRrQd/dRG1QOc3J7rTVlzQEaF0m7EHiiUBhwR41+6Nb M5jKVOTQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9t2U-0000kp-Fv; Tue, 09 Oct 2018 14:31:10 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9ss5-0003CX-BY for linux-rockchip@bombadil.infradead.org; Tue, 09 Oct 2018 14:20:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ramjEGzY4YO96nqd2/8xdohTx62cvWs5MAFFc07+hXE=; b=KpjhywohWKtJGKzNP0cy2xOB5 GjFppNoTMpxvFZSLBBakeEam3S529xofKDpePykjb8XglOZoUm23KDVFAoXMgSKfQTrko/xcejaZM IV+ezeVH6QhAtJjX7SKbDfKGGHJnEuaGKLuERrh/uMi8M8dUa+/B6o9qwfT35UotuNTX/coSesiPY YodbcFgVRILyXFdO/XFnunYWijX0HRwOAxfu5J1OaBevdDMJdFvItPNYmyBGSmmFTU/Yu43KfZLNO 6nnq3BESDwHZu48SDyZZ86brNBUy9Icyy4sGMLQ2+j2pPqtigBWlsME+M1hYpiyhfnA8KFBpve9/6 8TCCj5X/g==; Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9seO-0001Nn-1w for linux-rockchip@lists.infradead.org; Tue, 09 Oct 2018 14:06:19 +0000 Received: by mail-pg1-x541.google.com with SMTP id c10-v6so873450pgq.4 for ; Tue, 09 Oct 2018 07:06: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=ramjEGzY4YO96nqd2/8xdohTx62cvWs5MAFFc07+hXE=; b=DTQ8iaakVTc77iQV8PrO6XrTZoRuyIRf0JxOtp+oj43zEivtEOJE7r4188RevoYNGz lrk2ywKFsq63WbpuDfB/0Klbna8kYlqH0k4m1x8O5v3RzT6Cp+aoJJwzizRdWd5hAeuh Ns/fF7AhoXunIG9qesHtm2pzIUFgDHosvIBI4= 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=ramjEGzY4YO96nqd2/8xdohTx62cvWs5MAFFc07+hXE=; b=Y4GZNOTJ8uhJB8L79bN3e9s8cI1P2B1EbdOSSvfcOBHauTM5lH+vdclfJSCctULYLH z35Wo0OQikUr9CWR1wbdD8T8cryz8TYdRlZcMg8vo+s6SVxval++ANV6t5hcXNPdSdnK xI7iqgC7mE7IKL/FnA+jziFgR75zWY3SeEw8v3ifViIfKDGg2YsVjyudqeu82l9LiTyL 89VOddNGgeHIBOSWlLOz2Z4H0d0az5SPfflAra/VU2bfi4HunIdNJlFXpQ+BEVJQuVB2 HHWlDiOu0xFvqUzN5VxSjC6Y0Eb9QXIx++WDfLxIWos9VNm4wn/x5MBlHIDNi4mAo2yc 4euQ== X-Gm-Message-State: ABuFfoi9yFDpTKhr8+8EgP+cUmRu7ZVTslBhbDeQ/3fX4LayhoMVTqqm n4XGxBQJDct665cBswfCVdPQ X-Google-Smtp-Source: ACcGV60TGLESIeG2G19goPR7a0QeB+Oam6R+kYUq7sm17wCFmRAXmhTyA9GNYcq9BTeqg6vC00g+cA== X-Received: by 2002:a62:8a91:: with SMTP id o17-v6mr30582200pfk.184.1539093964274; Tue, 09 Oct 2018 07:06:04 -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.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 07:06:03 -0700 (PDT) From: Manivannan Sadhasivam To: robh+dt@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com Subject: [PATCH 4/6] arm64: dts: hisilicon: hikey960: Standardize LED labels and triggers Date: Tue, 9 Oct 2018 19:35:20 +0530 Message-Id: <20181009140522.6492-5-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_150616_114309_F99280EE X-CRM114-Status: GOOD ( 12.55 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, daniel.thompson@linaro.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-rockchip@lists.infradead.org, koen.kooi@linaro.org, Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index c98bcbc8dfba..35ce460b3ed4 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 = "hi3660-hikey960:green:user1"; /* gpio_150_user_led1 */ gpios = <&gpio18 6 0>; linux,default-trigger = "heartbeat"; }; user_led2 { - label = "user_led2"; + label = "hi3660-hikey960:green:user2"; /* gpio_151_user_led2 */ gpios = <&gpio18 7 0>; - linux,default-trigger = "mmc0"; + linux,default-trigger = "none"; }; user_led3 { - label = "user_led3"; + label = "hi3660-hikey960:green:user3"; /* gpio_189_user_led3 */ gpios = <&gpio23 5 0>; - default-state = "off"; + linux,default-trigger = "mmc0"; }; user_led4 { - label = "user_led4"; + label = "hi3660-hikey960: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 = "hi3660-hikey960: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 = "hi3660-hikey960:blue:bt"; gpios = <&gpio25 7 0>; /* gpio_207_user_led1 */ linux,default-trigger = "hci0-power"; 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: 10632839 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA80A13AA for ; Tue, 9 Oct 2018 14:46:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F22D28DB8 for ; Tue, 9 Oct 2018 14:46:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92FB928EB1; Tue, 9 Oct 2018 14:46:46 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 24A0028DB8 for ; Tue, 9 Oct 2018 14:46:46 +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=o9KD+899x++/WBF7n9B/aplSuKrlxXq+zAzYayBicDw=; b=l2EMKsmFS5YiteCJP9P0TH3WGN Uv+SFYH6l1vN9fKEBF0UKI3Rw041QWx8dz2dHRrC2MAphcypXrAZjGukz++eRgCc/qv3rx9veHORS 3z+ENcT0qGPZHx8d7fGDYisj71Q3x/x1m81+y5k1YPp9N8NoHMlkbGyBUndgJt6hZmji+D5qesv7o 1y1MgoOhlnH2SnIEj7k9uy5RprmXkHex3zLCuam5LHe4diMx38cVFk295N8klxUqqV8t0SkQ5wUZF Qw9LD0ErVINlClG0KMXCx7NaXIJPj5TLvC/MHm3CM/8E+iBFYVNz4iyiT5yHe928hRybM+1m6fbRA vySl3tlw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9tHR-0005hC-P9; Tue, 09 Oct 2018 14:46:37 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9tGt-0005SQ-7K for linux-rockchip@bombadil.infradead.org; Tue, 09 Oct 2018 14:46:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Mjns9AO833DdTLlO/vGxzhXmWWgQNDuIJY3ha9Rxc70=; b=DCZNV+Z1fuTRYVcF1cZ+cPJ5K vtCnD7Rv7fRW/CnBmHCTctp4mO7zs4dU9ErL/toS+KtSlRjTArQajwmn9zWm2Yte2z7IzOO3d0SGZ 5xyDWL+qNMV3zKK4xGjjd0unEbtEvPdR547Y+IzI9+JhlTnm8mmZBAIg6kTSxjzM1gxUJ/HIwg063 vKwsqbWOO1wyXbdptY7WHALrdccIH+66yV1vDRjBe3cwAP1bxoNkH+PsN75sk4cPNkNHmVbTaJRfV Wx3oCboyrJGXG2JEBFyg1thKSBJC6N1jyuz42o1uUpPMs+JajeOi7neeRRqucXzqZf5OCch/A/OJq cfP1Nx92w==; Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9seS-0005J3-GU for linux-rockchip@lists.infradead.org; Tue, 09 Oct 2018 14:06:22 +0000 Received: by mail-pf1-x444.google.com with SMTP id m77-v6so898533pfi.8 for ; Tue, 09 Oct 2018 07:06:10 -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=egSskRUeNUPzhRXPYrwl8KHq6OObZ/v4MGLcLRQAv8UghMYmoJM2IDC64KrsEtF5wx JLH5hz31UobeiA6IhqA1LJ907QAgOhd3+iUxFtCz2JxXQuFbdzvb3efjVn+gdcgi7RHi c4pgagcpWQH2UmH5jbD6Z1gKHlXlLb6FX8U1AiF/6dXdlWwuPysnGhqgA2R2pJRGHzUm ltbpWQ7SNnMZbMPuVDOJ7WQ17Gfw/QrSb48IMd8U/WEkd1qmMQxqaANimOHDegv4ukHO fROal06CjFUmOmLCLWyp/PcXejPlKYKfLeRKikLs9xmcM5At9EpFltdWWdAUoxDm1iwf dvbw== X-Gm-Message-State: ABuFfojDZ2InoafkVhrdY6fiV8Ii+eILUw+cyzGvmMHb+4qPg/1JdnWf eRKV2Se4bmVN5jtggtlZOJTf X-Google-Smtp-Source: ACcGV633CsOIak7VEAeH4jTt7NE2mZQPI6Ve4IekmecaD0HiGsuS+YsQJgrMuEm2gIIyQRpESwaXCg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_100620_562722_555E2425 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, daniel.thompson@linaro.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-rockchip@lists.infradead.org, koen.kooi@linaro.org, Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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"; }; }; From patchwork Tue Oct 9 14:05:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10632825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B828713AD for ; Tue, 9 Oct 2018 14:31:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7A3C28E4E for ; Tue, 9 Oct 2018 14:31:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B92028E58; Tue, 9 Oct 2018 14:31:13 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 EBE1228E57 for ; Tue, 9 Oct 2018 14:31:12 +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=shw64nGn4024lnVLacy+hfBRHb2es//U96aPaFSAIyc=; b=YdkARwJT1NBCYPZpA0XBTZdfDd bLnUXFv1T0+GdOTTwVaZgPFAks3f/xQRyQQ0EnSOmbq+VBFr4wPFcQ/KQVC+OdGfUi5OlprjoqsKp jYV58KIEELNnoyc35iyu/q46/ZeFL4YhhiguIhpyoBoE3m0SDVWaUOAStEJ7iDDikUTH3mYHbdG0D Jz3ot191kYjVcwI1zR+N0fCZ5i4kMHrntd2gVAGKiJi25U7+bTJfhOnqlWOqfXXA0gPPGJCBhBmPs KaxM/FS4YzE+EFZQdt2nayjWFBveamu7rXQebPeoY4smhh5ec8oyFJhjCXoX+H8ct5Qt9xzlcjnnj 7Lo70BXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9t2T-0000kY-K5; Tue, 09 Oct 2018 14:31:09 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9ss3-0002nE-Td for linux-rockchip@bombadil.infradead.org; Tue, 09 Oct 2018 14:20:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hChhdla9rTd0uwo6Xihafa/FlHoPiHoTl0N1PS2CtQE=; b=GMAkQfSIo/VLodRZmynkTsU4g yZmVeAOBcR+mrbNqxd8o9paPPwjftlmOcstqgDHVfz8d2TtDAniVL2hUiOW6ij9x3AnjQ998kntw+ eC5NPVohUD87YKJZPRwCFL48zVd+hTKIKqZ2pux2dF7zVv1sJdWvVDfesgvJ5rFLUTzne0gaQoqZF Hf2phBn3nd4i0oBWOSWR54Ch5iBhxtGP1LERvdQZ/5cj0oXfwvZGdgYTitTK2Vt+/6KPdBQLaoo+F b1DpQCWbUTvtRybfYDJ6o9WM/0CfzrsF8cZiYL2rRDhojp1l3x/CM1SBnnbcJeJaDiYmKjzZ8/Z8v SgoZvpZDg==; Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9seW-0001Oz-0x for linux-rockchip@lists.infradead.org; Tue, 09 Oct 2018 14:06:30 +0000 Received: by mail-pg1-x542.google.com with SMTP id y18-v6so882064pge.0 for ; Tue, 09 Oct 2018 07:06:13 -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=hChhdla9rTd0uwo6Xihafa/FlHoPiHoTl0N1PS2CtQE=; b=P9fYlfKW1jr/ywASq1XVvFTGvIGUZaPBqHtk0jZzHS/lrYNP1fhXkUBV22XPzVGZG3 rmuOU2KgdV8OdoBwKrqeyPANe/JX+371cK5tScZSXir6PPjqdWRs+YT99pglU3w2pNAv P41ReJ8m+GEtbRFAmEhk/SMIiFnqtCGfD6jUs= 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=hChhdla9rTd0uwo6Xihafa/FlHoPiHoTl0N1PS2CtQE=; b=Dt0YBCh5DdnnWNUVvgjF/zq7hMyKf6CJPqfCK7PGhfQ2nAb+eorzFIfUjsBqP6Ac53 TkpRU0PRuQnnV8v1xUndw55Det4nbNTvxOJHrtpFv4dFThd8DoTOJlBdRF8/L5/xN+jO l4KHkVElOmR9plwv+X3uErTxIcwjtU8EVakfiip8fE41FDKSdQuvlhlxq0hpuiPx0QJ0 zh2wJYK3jQgX3uPS7G4DxqRGMNfGw767sFfTNQpt/MzkatIO1B4GMq/UnrNMuZhMtPWB 2pAtsVejmVBYqFj1J65gCs9el9vFYjiFP7PIzKDj/c/Njl2NAQd7VDgZwbIQTuVADw/q pk9w== X-Gm-Message-State: ABuFfoj8UxV5yWO+0feHbkMUHfYRMUOzm31K1X3vvI9ycj2ee0849Y/J z9ieyyUtjaVsMo6yqFQkwaHF X-Google-Smtp-Source: ACcGV60C4nL+hZxUvfN473ZY8NZH44WwbS4hA1oiMsF3EIuvct1ryAzvcMyNYFMhNh+EqDz3XgiHuA== X-Received: by 2002:a62:aa17:: with SMTP id e23-v6mr30276853pff.211.1539093972325; Tue, 09 Oct 2018 07:06:12 -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.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 07:06:11 -0700 (PDT) From: Manivannan Sadhasivam To: robh+dt@kernel.org, heiko@sntech.de, ezequiel@collabora.com, xuwei5@hisilicon.com, michal.simek@xilinx.com Subject: [PATCH 6/6] arm64: dts: xilinx: ultra96: Standardize LED labels and triggers Date: Tue, 9 Oct 2018 19:35:22 +0530 Message-Id: <20181009140522.6492-7-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_150624_065651_86D292F7 X-CRM114-Status: GOOD ( 11.80 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, daniel.thompson@linaro.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-rockchip@lists.infradead.org, koen.kooi@linaro.org, Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Ultra96, which is one of the 96Boards CE and AI platform. Since the WLAN and BT LEDs are hardwired onboard, consolidate only User LEDs. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts index eb5e8bddb610..565ceb390f99 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts @@ -57,29 +57,30 @@ leds { compatible = "gpio-leds"; ds2 { - label = "ds2"; + label = "zynqmp-zcu100-revC:green:user1"; gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; }; ds3 { - label = "ds3"; + label = "zynqmp-zcu100-revC:green:user2"; gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0tx"; /* WLAN tx */ + linux,default-trigger = "mmc0"; default-state = "off"; }; ds4 { - label = "ds4"; + label = "zynqmp-zcu100-revC:green:user3"; gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "phy0rx"; /* WLAN rx */ + linux,default-trigger = "mmc1"; default-state = "off"; }; ds5 { - label = "ds5"; + label = "zynqmp-zcu100-revC:green:user4"; gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "bluetooth-power"; + linux,default-trigger = "none"; + panic-indicator; }; vbus_det { /* U5 USB5744 VBUS detection via MIO25 */