ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_bzv.dtsi
index 1ae7fd0f57215bf46088e7c78b1ce23aabe16191..15e9fa1c45bc4a29ce8156f4ec822b387c36d738 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 = "mediatek,mt7621-soc";
 
                led_power_orange: power_orange {
                        gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>;
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                };
 
                led_power_white: power_white {
                        gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>;
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                };
 
                wan_orange {
                        gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>;
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                };
 
                wan_white {
                        gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>;
-                       label = "white:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_WHITE>;
                };
 
                wlan2g {
 
                wps {
                        gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
-                       label = "white:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_WHITE>;
                };
 
                wlan {
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
-                       label = "white:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_WHITE>;
                };
        };
 };