ramips: mt7621: update dts/defconfig for DSA
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-wg2626.dts
index f3f06dd69ba6623b8a36073f695dadadafcd83a7..6461302154f900736e371216c35ac7b66e51f29e 100644 (file)
@@ -31,7 +31,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -41,7 +41,7 @@
 
                led_status: status {
                        label = "zbt-wg2626:green:status";
-                       gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
                };
        };
 };
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0xe000>;
 };
 
+&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 0xe000>;
+                       mtd-mac-address-increment = <1>;
+               };
+       };
+};
+
 &state_default {
        gpio {
-               ralink,group = "wdt", "rgmii2", "jtag", "mdio";
-               ralink,function = "gpio";
+               groups = "wdt", "rgmii2", "jtag", "mdio";
+               function = "gpio";
        };
 };