ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_tplink_archer-d7.dtsi
index 35532f42c8b630d12106c22e234e12c41e594103..b4f32b9fc7c9ceb8641d30fb0db900fe1126671e 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
                };
 
                wlan {
-                       label = "white:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "white:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "white:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&hub_port1>, <&hub_port0>;
                        linux,default-trigger = "usbport";