ramips: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_alfa-network_tube-e4g.dts
index f5fa410090890e959ffaada78b6fce4680183416..aa109d428c680f11e4a6110ae6f819f87e93ddd2 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 = "alfa-network,tube-e4g", "ralink,mt7620a-soc";
                };
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
 
                power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };