ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_tplink_re350-v1.dts
index be23abf4c83edf7160cc97f7e06f0713a7d8320b..7f4ae256bf90cbedfac402b5d4515392cb1e8f6c 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 = "tplink,re350-v1", "mediatek,mt7621-soc";
@@ -18,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps_r {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
                };
 
                wps_b {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
                };