ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_engenius_eap1750h.dts
index 56c08621a7465b87baf6fcfaffe7cf868853eb2d..ea43eb0e6754ae9773c7fff66ea592a47897c58b 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "engenius,eap1750h", "qca,qca9558";
@@ -32,7 +33,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
@@ -50,7 +52,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };