ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_re450.dtsi
index 3841a4c8fd7c4a708c1ed5d48b49043eff348c93..2e9ef99cd0d9f723737519c31cbf4ce147d4cad5 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        aliases {
@@ -18,7 +19,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wps_blue {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
                };
 
                wps_red {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
                };
        };