ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3883_trendnet_tew-692gr.dts
index ee2ca91af7ff5d7b4d3a2e94aeb58a1202b5ea00..93a5aac758faae333f973563d6ca496f3f677150 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "trendnet,tew-692gr", "ralink,rt3883-soc";
                compatible = "gpio-leds";
 
                wps {
-                       label = "orange:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                led_wps_green: wps2 {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
        };