ath79: convert to new LED color/function format where possible
[openwrt/staging/robimarko.git] / target / linux / ath79 / dts / qca9531_glinet_gl-xe300.dts
index 37830c4f7d048446fb03ec450f5121c8b9c0df7d..2e7137bc3a9273d79f3150bec346027caf665115 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 = "glinet,gl-xe300", "qca,qca9531";
 
                lan {
                        gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                };
 
                wan {
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                };
 
                wlan {
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        linux,default-trigger = "phy0tpt";
                };