]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: add additional LED for XS1930-12HP
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 18 May 2026 09:06:38 +0000 (09:06 +0000)
committerRobert Marko <robimarko@gmail.com>
Thu, 21 May 2026 10:08:42 +0000 (12:08 +0200)
The -12HP variant has a dedicated red LED on GPIO 3 that lights up
when the PoE budget is exhausted. Add it as led_poe_max with
function = "poe-usage" so userspace can drive it from the PoE stack.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23428
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/dts/rtl9313_zyxel_xs1930-12hp.dts

index 86faa74d4c98c3a224830b6d57d21b19dd31557a..007ef377d95c1c6e652ecef94bdf2a2c5076e73d 100644 (file)
 / {
        compatible = "zyxel,xs1930-12hp", "realtek,rtl9313-soc";
        model = "Zyxel XS1930-12HP";
+
+       leds {
+               led_poe_max: led-7 {
+                       color = <LED_COLOR_ID_RED>;
+                       function = "poe-usage";
+                       gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &led_set {