ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7240_openmesh_om2p-v1.dts
index 17a57446618712256639308e7a770702b466bf8a..673e9b740b6f06ba8b284e0dfd756638db62b0f0 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,om2p-v1", "qca,ar7240";
@@ -38,7 +39,8 @@
                pinctrl-0 = <&switch_led_disable_pins>;
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
                };
 
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                wan_blue {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };