ath79: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_watchguard_ap100.dts
index e09d539c5644e4bd920c1b736aa9ef9b2bb0a76b..6f560166965c3878962bf9cb04aaaa8e0c2b061a 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar9344_senao_ap-dual.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_power_amber: power_amber {
-                       label = "amber:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };