ramips: TP-Link Archer C5 v4: license and file formatting fixes
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_alfa-network_r36m-e4g.dts
index 2325d53153daa76811309a9500bf8649a48a186f..1eefd4d396bb975b14590d3895deb25f2381b286 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,r36m-e4g", "ralink,mt7620a-soc";
@@ -86,7 +87,8 @@
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "orange:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0radio";
                };
                                read-only;
                        };
 
-                       factory: partition@40000 {
+                       partition@40000 {
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;