ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_ruckus_gd11.dtsi
index 54a15c49c1bd3c6e5ce48762698e8406ad77db85..a80b6045b4ef3ee34405d547815e3e01a3157147 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 = "ruckus,gd11", "qca,ar7161";
                };
 
                led_power_green: power-green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                led_power_red: power-red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };