ramips: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_tplink_deco-m4r-v4.dts
index 087910233e28c1590a490adc1c82663d1d117c63..13ff83ee9431f18fc668392a406d58e9e875acba 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 = "tplink,deco-m4r-v4", "mediatek,mt7621-soc";
@@ -55,7 +56,8 @@
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };