From patchwork Mon Jul 10 16:52:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13307429 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E88EC001B0 for ; Mon, 10 Jul 2023 16:53:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X66uTLbwTnP3u0ruzPtqTe7NjVHwXXrt9VyLx4DLyZ0=; b=WTJZJnvQOruJfb Rc3+siOafDKXrR6gO+FyG9zrdJXR2xoL84H092GcGd+qTH5VWR3lYmoWeH94EHJifpO5pbnb9pKZ6 A3rvfZmXp1rFSqYAW9KQVEQKlcmWoIeb9UX/9oPP8BHtC1xil/PZWSpuRFiolQ0+j0kXSwKfWqcJh p54C5xybFUk0GmU5zobzoEktbEQs4yDWsounIuKBpGdHA97YW63fICxab7tM3fT6vCXXdMtWYGUOH ePoARAKK6CqABr9b+I5qwUI3/GR7LWGAigYArd87eMdjA8Klnl35bJH6tfug8KCHXpFOIjn8dKk/9 SVybC1DqQ1BVh+bYNy8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIu87-00CF3Q-1b; Mon, 10 Jul 2023 16:52:55 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIu7q-00CEos-2T; Mon, 10 Jul 2023 16:52:40 +0000 Received: from jupiter.universe (dyndsl-091-248-189-246.ewe-ip-backbone.de [91.248.189.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 84DC7660700E; Mon, 10 Jul 2023 17:52:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689007952; bh=a3k0dUHM06lGftFzGtEKHmme9qpS0zkKxKK5gJ/bpRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SVTfT1svB+qYKJ+YUQytUF8S9Lnsy70JJGuv/LJhLfj7r9xyr4JQ0t/QdtciRcB4S 4yoJjwSY2GRdSACfpmwFxMT9MaqINvtxYu/9Hh00Ysqsu2V8gal9FbvEtI5MHtGr0v NFychpI+1eowvyeSsJuKMLH8MmLtipn7oRKOy5WbTyG6WxfCMJKnwVal/knP/GBhP7 /OKtsYR+a/WFH17KtPf6iBOSrPLP+7CJy/XH1s9qVf9b94iNZ+66zdAUKqFFp3L6VN racEdGJtU3JATOwCVSXKLv66ELPYL3oDUyf9JvAl/QocF1xWrgQkhKGtHEGy+fLnk1 SrawxKGOM71tQ== Received: by jupiter.universe (Postfix, from userid 1000) id 239F64807E0; Mon, 10 Jul 2023 18:52:28 +0200 (CEST) From: Sebastian Reichel To: linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 07/13] arm64: dts: rockchip: rock-5a: add status LED Date: Mon, 10 Jul 2023 18:52:22 +0200 Message-Id: <20230710165228.105983-8-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710165228.105983-1-sebastian.reichel@collabora.com> References: <20230710165228.105983-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_095238_937528_78178889 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Describe the Rock 5A status LED in its device tree. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588s-rock-5a.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 19e05dba2794..5bad81c5b09d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -3,6 +3,7 @@ /dts-v1/; #include +#include #include #include "rk3588s.dtsi" @@ -19,6 +20,19 @@ chosen { stdout-path = "serial2:1500000n8"; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&io_led>; + + io-led { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; + vcc12v_dcin: vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -164,6 +178,12 @@ rgmii_phy1: ethernet-phy@1 { }; &pinctrl { + leds { + io_led: io-led { + rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + power { vcc_5v0_en: vcc-5v0-en { rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;