From: Sebastian Reichel Date: Mon, 10 Jul 2023 16:52:22 +0000 (+0200) Subject: arm64: dts: rockchip: add status LED to rock-5a X-Git-Tag: v6.6.17~4066^2~9^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db02f866b140dc04eb13da8bc8d9b1e36232102c;p=platform%2Fkernel%2Flinux-rpi.git arm64: dts: rockchip: add status LED to rock-5a Describe the Rock 5A status LED in its device tree. Signed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20230710165228.105983-8-sebastian.reichel@collabora.com Signed-off-by: Heiko Stuebner --- diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index d33ddf1..ea11e75 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 @@ stdout-path = "serial2:1500000n8"; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&io_led>; + + io-led { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -164,6 +178,12 @@ }; &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>;