ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_fortinet_fap-220-b.dts
index e0aa5704cddc3d6e799fc45fbd362460c062efe3..b98239915edbfe5e3185345f76972e89a24318e1 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 = "fortinet,fap-220-b", "qca,ar7161";
                compatible = "gpio-leds";
 
                led_power: power-green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                status-green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                status-yellow {
-                       label = "yellow:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };