ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_araknis_an-300-ap-i-n.dts
index c2c7cbb960c797aeed4a9b8c83064be391388777..86e990ffc7deb6975b9de0b78f6b204ad0e375fa 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "araknis,an-300-ap-i-n", "qca,ar9344";
@@ -31,7 +32,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
@@ -43,7 +45,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
        };