ramips: mt7621: update dts/defconfig for DSA
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_adslr_g7.dts
index 91a6ab26abd030bbd76ae436806ddcf943448ae7..2448248c3101a8e5ff77ccf1db1f410c4cc98e2a 100644 (file)
@@ -15,7 +15,7 @@
                led-failsafe = &led_sys;
                led-running = &led_sys;
                led-upgrade = &led_sys;
-               label-mac-device = &ethernet;
+               label-mac-device = &gmac0;
        };
 
        chosen {
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0xe00c>;
 };
 
+&switch0 {
+       ports {
+               port@0 {
+                       status = "okay";
+                       label = "lan1";
+               };
+
+               port@1 {
+                       status = "okay";
+                       label = "lan2";
+               };
+
+               port@2 {
+                       status = "okay";
+                       label = "lan3";
+               };
+
+               port@3 {
+                       status = "okay";
+                       label = "lan4";
+               };
+
+               port@4 {
+                       status = "okay";
+                       label = "wan";
+                       mtd-mac-address = <&factory 0xe00c>;
+                       mtd-mac-address-increment = <1>;
+               };
+       };
+};
+
 &state_default {
        gpio {
                groups = "i2c", "wdt";