ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_arduino_yun.dts
index bf3a46f96261caa9cdaed270cb16a195f6028b06..c866889ce4b6cad462fbc2415ebe2325352ce107 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Arduino Yun";
                compatible = "gpio-leds";
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "phy0tpt";
                };
 
                usb {
-                       label = "white:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";