lantiq: convert to new LED color/function format where possible
[openwrt/staging/robimarko.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_lantiq_easy80920.dtsi
index 8df81111fa2db45256c68229a81374e56203166f..a8b5f25810f1ad351ee3b0d299f0208641a36eb9 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>
 
 / {
@@ -41,7 +42,8 @@
                compatible = "gpio-leds";
 
                power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&stp 9 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                };
                        linux,default-trigger = "usbport";
                };
                sd {
-                       label = "green:sd";
+                       function = LED_FUNCTION_SD;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&stp 14 GPIO_ACTIVE_HIGH>;
                };
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
                };
        };