]> www.infradead.org Git - users/hch/misc.git/commitdiff
arm64: dts: rockchip: Add green power LED to rk3588s-rock-5a
authorKyle Petryszak <kylepzak@projectinitiative.io>
Wed, 20 Aug 2025 02:30:12 +0000 (21:30 -0500)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 24 Aug 2025 07:04:02 +0000 (09:04 +0200)
The Radxa ROCK 5A board includes a green power LED that is defined in
the vendor device tree but is missing from the upstream kernel DTS file.

This causes the LED to be uncontrollable from the operating system, as no
entry is created for it under /sys/class/leds.

This patch adds the missing node to the leds block, creating a
"green:power" device and allowing the LED to be controlled by the kernel.

Signed-off-by: Kyle Petryszak <kylepzak@projectinitiative.io>
Link: https://lore.kernel.org/r/175565703702.6.15498212790604388615.862782045@projectinitiative.io
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts

index f894742b1ebef15e943e7f0894f7ae95ac03e40b..19a08f7794e675ab7a7a8a5bf8e4073f47ec11ac 100644 (file)
                        gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
+
+               power-led {
+                       color = <LED_COLOR_ID_GREEN>;
+                       function = LED_FUNCTION_POWER;
+                       gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "default-on";
+               };
        };
 
        fan: pwm-fan {