bmips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6368-actiontec-r1000h.dts
index fec67d0db98eb9499e36cbe83c237b399098fe67..8dc37d492f5306546bb7b9f3b5b3e1e70721f74c 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 
+#include <dt-bindings/leds/common.h>
+
 #include "bcm6368.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led@5 {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
                };
 
                led@21 {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
                };
 
                led_power_green: led@22 {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
                };
 
                led@23 {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
                };
 
                led_power_red: led@24 {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
 
                led@30 {
-                       label = "red:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
                };
 
                led@31 {
-                       label = "red:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
                };
        };