ramips: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3050_trendnet_tew-638apb-v2.dts
index 2accb51c3f9b35227b266f197c405be93e143487..36e7706b0213cf2bc59e282f23361337c6629866 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-638apb-v2", "ralink,rt3050-soc";
                compatible = "gpio-leds";
 
                wps {
-                       label = "orange:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                led_wps_green: wps2 {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };