ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wa1201-v2.dts
index 0629a639550cef04d83d558fbb6ba3e2d73fd49a..b1d564be155692a394efedac628d3369b1e344e7 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 = "tplink,tl-wa1201-v2", "qca,qca9563";
@@ -22,7 +23,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -40,7 +42,8 @@
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
        };