ath79: convert to new LED color/function format where possible
[openwrt/staging/robimarko.git] / target / linux / ath79 / dts / qca9558_openmesh_om5p-ac-v1.dts
index d8b6b5d98f8a54d725433bc29866017321aa5630..f7c51578ba9aa69d1965e225fe7bcadb4a22b3b0 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 = "openmesh,om5p-ac-v1", "qca,qca9558";
                compatible = "gpio-leds";
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };