ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_oraybox_x1.dts
index 9f43e46fac0cc09fe46889232a4ab69edf7a1544..77a9a78d14e16051dd3826da3173eae7f6922f90 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 = "oraybox,x1", "mediatek,mt7628an-soc";
                compatible = "gpio-leds";
 
                led_status_blue: status-blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_red: status-red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_white: status-white {
-                       label = "white:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
                };
        };