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>
/ {
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 {