Gemtek WVRTM-127ACN

Follow the git-commit.

Optionally enable the use of gmac1 to achieve better performances as described in the commit ramips: mt7621-dts: mux phy0/4 to gmac1 https://git.openwrt.org/openwrt/openwrt/commit/?id=f1c9afd801380a05a91d979b475c76cc0a67caae

Beware that doing this will make unusable the following functionalities:

  • PoE+ 802.3af/at located at the WAN port (gpio 25)
  • The reset button (gpio 22)
  • Only on the gemtek_wvrtm-130acn: the gpio controlled power button (gpio 27)

The following patch - works as is with openwrt snapshot r36406-c618c6a353 - could be applied to modify the dts whether you're building with Buildroot or ImageBuilder

The following patch - works as is with openwrt snapshot r36406-c618c6a353 - could be applied to modify the dts whether you're building with Buildroot or ImageBuilder

diff --git a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-127acn.dts b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-127acn.dts
index 5cc287f6cc..b6523de6b1 100644
--- a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-127acn.dts
+++ b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-127acn.dts
@@ -43,14 +43,16 @@
 	};
 };
 
-&ports {
-	port@2 {
-		status = "okay";
-		label = "lan2";
-	};
+&switch0 {
+	ports {
+		port@2 {
+			status = "okay";
+			label = "lan2";
+		};
 
-	port@3 {
-		status = "okay";
-		label = "lan1";
+		port@3 {
+			status = "okay";
+			label = "lan1";
+		};
 	};
 };
diff --git a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-130acn.dts b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-130acn.dts
index dd33e37de2..af58a80fd5 100644
--- a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-130acn.dts
+++ b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-130acn.dts
@@ -64,24 +64,26 @@
 	};
 };
 
-&ports {
-	port@0 {
-		status = "okay";
-		label = "lan1";
-	};
+&switch0 {
+	ports {
+		port@0 {
+			status = "okay";
+			label = "lan1";
+		};
 
-	port@1 {
-		status = "okay";
-		label = "lan2";
-	};
+		port@1 {
+			status = "okay";
+			label = "lan2";
+		};
 
-	port@2 {
-		status = "okay";
-		label = "lan3";
-	};
+		port@2 {
+			status = "okay";
+			label = "lan3";
+		};
 
-	port@3 {
-		status = "okay";
-		label = "lan4";
+		port@3 {
+			status = "okay";
+			label = "lan4";
+		};
 	};
 };
diff --git a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi
index e6b7f8c204..0fe2ef28f9 100644
--- a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi
+++ b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi
@@ -136,15 +136,24 @@
 	};
 };
 
-&ethernet {
-	pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+&gmac0 {
+	nvmem-cells = <&macaddr_factory_e000>;
+	nvmem-cell-names = "mac-address";
 };
 
-&gmac0 {
+&gmac1 {
+	status = "okay";
+	label = "wan";
+	phy-handle = <&ethphy4>;
+
 	nvmem-cells = <&macaddr_factory_e000>;
 	nvmem-cell-names = "mac-address";
 };
 
+&ethphy4 {
+	/delete-property/ interrupts;
+};
+
 &nand {
 	status = "okay";
 
@@ -247,18 +256,7 @@
 
 &state_default {
 	gpio {
-		groups = "rgmii2", "uart3";
+		groups = "uart3";
 		function = "gpio";
 	};
 };
-
-&switch0 {
-	ports: ports {
-		port@4 {
-			status = "okay";
-			label = "wan";
-			nvmem-cells = <&macaddr_factory_e000>;
-			nvmem-cell-names = "mac-address";
-		};
-	};
-};
  • Last modified: 2026/09/24 12:20
  • by a-gave