ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_mtc_wr1201.dts
index fb3efe6d72bdd5f91941baacccb6a339bc599e81..8a79d9ca9a6cb73da34495c2abc4e50d16cd23fd 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "mt7621.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                led-failsafe = &led_power;
                led-running = &led_power;
                led-upgrade = &led_power;
-               label-mac-device = &ethernet;
-       };
-
-       chosen {
-               bootargs = "console=ttyS0,57600";
+               label-mac-device = &gmac0;
        };
 
        leds {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "wr1201:green:power";
-                       gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
+                       label = "green:power";
+                       gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "wr1201:green:usb";
-                       gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
+                       label = "green:usb";
+                       gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
                        linux,default-trigger = "usbport";
                };
 
                eth_link {
-                       label = "wr1201:green:eth_link";
-                       gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
+                       label = "green:eth_link";
+                       gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "wr1201:green:wps";
-                       gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
+                       label = "green:wps";
+                       gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -52,7 +46,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0x4>;
 };
 
+&switch0 {
+       ports {
+               port@0 {
+                       status = "okay";
+                       label = "lan4";
+               };
+
+               port@1 {
+                       status = "okay";
+                       label = "lan3";
+               };
+
+               port@2 {
+                       status = "okay";
+                       label = "lan2";
+               };
+
+               port@3 {
+                       status = "okay";
+                       label = "lan1";
+               };
+
+               port@4 {
+                       status = "okay";
+                       label = "wan";
+                       mtd-mac-address = <&factory 0x4>;
+                       mtd-mac-address-increment = <1>;
+               };
+       };
+};
+
 &sdhci {
        status = "okay";
 };
        };
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "rgmii2";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               groups = "rgmii2";
+               function = "gpio";
        };
 };