ramips: mt7621: update dts/defconfig for DSA
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_iodata_wn-xx-xr.dtsi
index c771eb20afc8c8415affccfb98204185c8f286a1..acef4d22a0938f4ef201b8c7761bfeb865007da9 100644 (file)
@@ -11,6 +11,7 @@
                led-failsafe = &led_power;
                led-running = &led_power;
                led-upgrade = &led_power;
+               label-mac-device = &wan;
        };
 
        chosen {
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0xe000>;
 };
 
+&switch0 {
+       ports {
+               wan: port@0 {
+                       status = "okay";
+                       label = "wan";
+                       mtd-mac-address = <&factory 0xe006>;
+               };
+
+               port@1 {
+                       status = "okay";
+                       label = "lan4";
+               };
+
+               port@2 {
+                       status = "okay";
+                       label = "lan3";
+               };
+
+               port@3 {
+                       status = "okay";
+                       label = "lan2";
+               };
+
+               port@4 {
+                       status = "okay";
+                       label = "lan1";
+               };
+       };
+};
+
 &pcie {
        status = "okay";
 };