realtek: convert to new LED color/function format where possible
[openwrt/staging/robimarko.git] / target / linux / realtek / dts-5.15 / rtl8380_tplink_sg2xxx.dtsi
index 0706c55524bb97f44939c23d791375d102a1c384..d30d7b374e72711e0117bbb039c9e59461558ade 100644 (file)
@@ -3,6 +3,7 @@
 #include "rtl838x.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/gpio.h>
 
 / {
@@ -38,7 +39,8 @@
                compatible = "gpio-leds";
 
                led_power: led-0 {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };