ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_ralink_v22rw-2x2.dts
index 1b5ba03feb8dcaa85e7c93ec8e22daafda172eb6..4d51839db7f942f5d57356d93654e954d084a70b 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 = "ralink,v22rw-2x2", "ralink,rt3052-soc";
@@ -70,7 +71,8 @@
                };
 
                wps {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };