ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3662_engenius_esr600h.dts
index e142fe53474396c3510907bcf3c8ce9b136fcecc..2356aa93f900cfa2aeb03780210dd0cb3ba841e0 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 = "engenius,esr600h", "ralink,rt3662-soc", "ralink,rt3883-soc";
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
        };