realtek: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / realtek / dts-5.15 / rtl8380_engenius_ews2910p.dts
index 9b5ddb5ed4110f3c1d67a2c9506f4ba74d2c9eab..289ec8627407e362980146bc049499ca9ea8f207 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>
 
 / {
@@ -79,7 +80,8 @@
                compatible = "gpio-leds";
 
                led_power: led-0 {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
                };
 
@@ -89,7 +91,8 @@
                };
 
                led_fault: led-2 {
-                       label = "amber:fault";
+                       function = LED_FUNCTION_FAULT;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                };