lantiq: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_arcadyan_vgv7519.dtsi
index 71046cfd58c68af90aef3e4c7ef6c1b4c27886c7..e0bcaa951b31e735593aecfeeda823cf27a03d7b 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>
 
 / {
                        gpios = <&stp 2 GPIO_ACTIVE_LOW>;
                };
                wps_red {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&stp 3 GPIO_ACTIVE_LOW>;
                };
                wps_green {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&stp 4 GPIO_ACTIVE_LOW>;
                };
                upgrade {
                        gpios = <&stp 13 GPIO_ACTIVE_LOW>;
                };
                power_green: power2 {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&stp 14 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
                power_red: power {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&stp 15 GPIO_ACTIVE_LOW>;
                };
        };