ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9557_araknis_an-500-ap-i-ac.dts
index 941d87657fc854bee1ec2dc23f3a888a5f1d4d89..8cf1f00255edb6a6cdb854dc963f290e63902a9d 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 = "araknis,an-500-ap-i-ac", "qca,qca9557";
@@ -30,7 +31,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 = "off";
                };
@@ -48,7 +50,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };