[PATCH 2/2] ramips: enable TRGMII on Ubiquiti ER-X{,-SFP}

Ilya Lipnitskiy ilya.lipnitskiy at gmail.com
Tue Mar 16 05:29:56 GMT 2021


TRGMII allows to run the CPU switch port 6 and GMAC0 at 1.2 Gb. This
change should improve performance. Both ER-X and ER-X-SFP have DDR3 RAM,
allowing them to take advantage of TRGMII:

https://dl.ubnt.com/datasheets/edgemax/EdgeRouter_X_DS.pdf

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy at gmail.com>
---
 target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
index 04eb49bfa359..abda97807e3e 100644
--- a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
+++ b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
@@ -22,6 +22,7 @@
 &gmac0 {
 	mtd-mac-address = <&factory 0x22>;
 	label = "dsa";
+	phy-mode = "trgmii";
 };
 
 &switch0 {
@@ -58,6 +59,10 @@
 			mtd-mac-address = <&factory 0x22>;
 			mtd-mac-address-increment = <4>;
 		};
+
+		port at 6 {
+			phy-mode = "trgmii";
+		};
 	};
 };
 
-- 
2.30.2




More information about the openwrt-devel mailing list