lantiq: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_avm_fritz3370-rev2.dtsi
index 664327a861204c67f8f0ca45bb4833e9e70dae87..4c9b073b70de77559db038a8a94922cc3b9ff363 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>
 
 / {
                compatible = "gpio-leds";
 
                power_green: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                power_red: power2 {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
                };
 
@@ -69,7 +72,8 @@
                };
 
                wifi: wifi {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
                };
 
@@ -79,7 +83,8 @@
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
                };