ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3050_netcore_nw718.dts
index beceb3f35d69205ce608bfcb8c702ee7c9357011..2c2e302ec68f30d85f4560b31c3ac2fe8c137e05 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 = "netcore,nw718", "ralink,rt3050-soc";
                compatible = "gpio-leds";
 
                led_cpu: cpu {
-                       label = "amber:cpu";
+                       function = LED_FUNCTION_CPU;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "amber:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&otg_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wps {
-                       label = "amber:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };