ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_planex_mzk-ex750np.dts
index de4df5d277d4b72f8e3aac0e88c293ee4cb651e0..ba8c9a4737fe688ecf1d6c167761bcf6ba7cdd36 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "planex,mzk-ex750np", "ralink,mt7620a-soc";
@@ -18,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
@@ -28,7 +30,8 @@
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };