bcm63xx: convert to new LED color/function format where possible
[openwrt/staging/stintel.git] / target / linux / bcm63xx / dts / bcm6369-netgear-evg2000.dts
index 6b6e6673b98a95e6e515fdc7cc8ea2772e1f944c..3e9d9e873cab0fdabbe114baa5cd49a3807b23ec 100644 (file)
@@ -1,8 +1,7 @@
-/dts-v1/;
-
 #include "bcm6368.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Netgear EVG2000";
                        gpios = <&pinctrl 5 1>;
                };
                usb_green {
-                       label = "green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pinctrl 15 1>;
                };
                led_power_green: power_green {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pinctrl 22 1>;
                        default-state = "on";
                };
                power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&pinctrl 23 1>;
                };
                lan_green {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pinctrl 24 1>;
                };
                wireless_green {
@@ -82,7 +85,8 @@
                        gpios = <&pinctrl 26 1>;
                };
                wan_green {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pinctrl 27 1>;
                };
        };