ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_winstars_ws-wn583a6.dts
index 78f81314fc1274b6ede246ac8a076f221010c92d..18e5b7361d89c5022185031876528a776c739695 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "winstars,ws-wn583a6", "mediatek,mt7621-soc";
                };
 
                led_status_blue: status_blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                status_amber {
-                       label = "amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
                };
 
                led_status_red: status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
                };
        };