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_arv8539pw22.dts
index d6a917057d71e5004f1731ba2e7948c7db678b1e..1a8b29a4773d7196354f09691cfb4664cfa8180f 100644 (file)
@@ -1,6 +1,7 @@
 #include "danube.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "arcadyan,arv8539pw22", "lantiq,xway", "lantiq,danube";
                compatible = "gpio-leds";
 
                power_green: power-green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
                power_red: power-red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
@@ -67,7 +70,8 @@
                };
 
                wireless_green: wireless-green {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
                /*