ath79: convert to new LED color/function format where possible
[openwrt/staging/robimarko.git] / target / linux / ath79 / dts / qca9531_comfast_cf-ew72.dts
index 88a3eccb2b3cc0ad9b84daae2f40914cf5cc14e8..5f9240d6c1fea6d0351ac3bf18ef9602e501d970 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 = "comfast,cf-ew72", "qca,qca9531";
                pinctrl-0 = <&jtag_disable_pins>;
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                led_wan: wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };