lantiq: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / danube_arcadyan_arv452cqw.dts
index 4825eb2952eae9465cb0a596ce841e5248cc26de..34bb167b6a1dc70fa4b6fbb2b7fa7a8e1528674b 100644 (file)
@@ -1,6 +1,7 @@
 #include "danube.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "arcadyan,arv452cqw", "lantiq,xway", "lantiq,danube";
@@ -57,7 +58,8 @@
        leds {
                compatible = "gpio-leds";
                power_blue: power0 {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                };
                power_red: power1 {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                };
                wps1 {
-                       label = "yellow:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
                fxs1 {
@@ -90,7 +95,8 @@
                        gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
                };
                wps2 {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
                };
                fxo {
                        gpios = <&gpiomm 4 1>;
                };
                led_usb: usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
                };
                wifi: wifi {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
                };
                /*