summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
diff options
context:
space:
mode:
authorArınç ÜNAL <arinc.unal@arinc9.com>2022-07-06 01:20:32 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2022-08-20 22:56:12 +0200
commitf1c9afd801380a05a91d979b475c76cc0a67caae (patch)
treea6032afc3b214645a87cdb4f517901a433692fb9 /target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
parent81bd10e4a2f49f8351779a4b464d331f79f6a15c (diff)
downloadopenwrt-f1c9afd801380a05a91d979b475c76cc0a67caae.tar.gz
openwrt-f1c9afd801380a05a91d979b475c76cc0a67caae.tar.bz2
openwrt-f1c9afd801380a05a91d979b475c76cc0a67caae.zip
ramips: mt7621-dts: mux phy0/4 to gmac1
Mux the MT7530 switch's phy0/4 to the SoC's gmac1 on devices where RGMII2 pins are available. This achieves 2 Gbps total bandwidth to the CPU using the second RGMII. The ports called "wan" are muxed where possible. On a minority of devices, this is not possible. Those cases: mt7621_ampedwireless_ally-r1900k.dts: lan3 mt7621_ubnt_edgerouter-x.dts: eth0 mt7621_gnubee_gb-pc1.dts: ethblue mt7621_linksys_re6500.dts: lan1 mt7621_netgear_wac104.dts: lan4 mt7621_tplink_eap235-wall-v1.dts: lan0 mt7621_tplink_eap615-wall-v1.dts: lan0 mt7621_ubnt_usw-flex.dts: lan1 The "wan" port is just what the vendor designated on the board/plastic chasis of the device. On a technical level, there is no difference between a lan and wan port on MT7621AT, MT7621DAT and MT7621ST SoCs. Prefer connecting to WAN via the port described above for these devices to benefit the feature brought with this patch. mt7621_d-team_newifi-d2.dts cannot benefit this feature, although it looks like it should, because the rgmii2 pins are wired to unused components. Tested on a range of devices documented on the GitHub PR. Link: https://github.com/openwrt/openwrt/pull/10238 Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts24
1 files changed, 16 insertions, 8 deletions
diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
index cc6446b75c..69c79d7dc7 100644
--- a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
+++ b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
@@ -132,16 +132,24 @@
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <&ethphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
-
port@1 {
status = "okay";
label = "lan4";