ramips: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_huasifei_ws1208v2.dts
index 9b9a98310877317ece3d0ce5469e40f6553530da..ee1679110105361eeb78f3900f1e88861a3e5cb3 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "huasifei,ws1208v2", "mediatek,mt7621-soc";
@@ -33,7 +34,8 @@
                compatible = "gpio-leds";
 
                led_status: led-status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
@@ -55,7 +57,8 @@
                };
 
                led-usb {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                        trigger-sources = <&xhci_ehci_port1>;
                        linux,default-trigger = "usbport";