ramips: mt7621: update dts/defconfig for DSA
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_alfa-network_quad-e4g.dts
index 266e765d7bc7be84e006f4c03b5c844b88e9c9b9..6ac9e337fcbe7ab60fb38a305f9d95ff17f7e63d 100644 (file)
@@ -11,7 +11,7 @@
        model = "ALFA Network Quad-E4G";
 
        aliases {
-               label-mac-device = &ethernet;
+               label-mac-device = &gmac0;
                led-boot = &led_system;
                led-failsafe = &led_system;
                led-running = &led_system;
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0xe000>;
 };
 
+&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 0xe006>;
+               };
+       };
+};
+
 &i2c {
        status = "okay";