ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_zbtlink_zbt-we1226.dts
index 64f3d6d83f3f154cfb0c064e83d95209a95dc31b..976994f5389379de0d1768db2d6c5ea0d6b1109f 100644 (file)
@@ -1,6 +1,7 @@
 #include "mt7628an.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/gpio.h>
 
 / {
@@ -32,7 +33,8 @@
                compatible = "gpio-leds";
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
                };
 
@@ -47,7 +49,8 @@
                };
 
                led_wlan: wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
        };