ramips: mt7621: update dts/defconfig for DSA
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_xiaomi_mir3g-v2.dts
index a8125d355edc2d12d2ada4058c485c67561c0723..41e11216d2f2e1a9c7640c625d6bddd715627492 100644 (file)
@@ -15,6 +15,7 @@
                led-failsafe = &led_status_yellow;
                led-running = &led_status_blue;
                led-upgrade = &led_status_yellow;
+               label-mac-device = &wan;
        };
 
        chosen {
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0xe000>;
-       mediatek,portmap = "llllw";
+};
+
+&switch0 {
+       ports {
+               port@2 {
+                       status = "okay";
+                       label = "lan2";
+               };
+
+               port@3 {
+                       status = "okay";
+                       label = "lan1";
+               };
+               wan: port@4 {
+                       status = "okay";
+                       label = "wan";
+                       mtd-mac-address = <&factory 0xe006>;
+               };
+       };
 };
 
 &state_default {