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