lantiq: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_arcadyan_arv7519rw22.dts
index 935aa08cb906056805ce8b2dfeaa30c583027023..9107624eb17cf3633cf27182c313e178fcfadc89 100644 (file)
@@ -1,6 +1,7 @@
 #include "vr9.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
 
 / {
@@ -50,7 +51,8 @@
                compatible = "gpio-leds";
 
                lan_green {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
                internet_red {
                        gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
                };
                power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
                alarm_blue {
-                       label = "blue:alarm";
+                       function = LED_FUNCTION_ALARM;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
                internet_orange {