ramips: mt7621: update dts/defconfig for DSA
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_chj.dtsi
index c7dcfae87032f0f57136c0730cffe988e1535e30..b781edf6beaebe89f5cac5042a628156e4d40a35 100644 (file)
@@ -13,7 +13,7 @@
                led-failsafe = &led_power;
                led-running = &led_power;
                led-upgrade = &led_power;
-               label-mac-device = &ethernet;
+               label-mac-device = &gmac0;
        };
 
        chosen {
        };
 };
 
-&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 = <2>;
+               };
+       };
+};
+
 &state_default {
        gpio {
                groups = "uart3", "uart2", "jtag", "wdt";