aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorVolodymyr Puiul <volodymyr.puiul@gmail.com>2023-06-10 18:23:17 +0400
committerHauke Mehrtens <hauke@hauke-m.de>2023-06-11 18:19:23 +0200
commit8b20b8fe2ab2b67463c9a725627ac6951da6750c (patch)
treef0151d9c65d4eb6046b9eed70439b9899fb70de7 /target
parent0880d5d194d9e509b1f8a6163d6cdc89a9bcba61 (diff)
downloadupstream-8b20b8fe2ab2b67463c9a725627ac6951da6750c.tar.gz
upstream-8b20b8fe2ab2b67463c9a725627ac6951da6750c.tar.bz2
upstream-8b20b8fe2ab2b67463c9a725627ac6951da6750c.zip
ramips: mt7621-dts: move wan port to gmac1 YunCore FAP-640
move wan port to gmac1 to achieve 2Gbps CPU bandwidth between wan and lan on YunCore FAP-640 Signed-off-by: Volodymyr Puiul <volodymyr.puiul@gmail.com> (cherry picked from commit 47c2d50c0312412582fff7950b843d619400da9f)
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7621_yuncore_fap640.dts27
1 files changed, 20 insertions, 7 deletions
diff --git a/target/linux/ramips/dts/mt7621_yuncore_fap640.dts b/target/linux/ramips/dts/mt7621_yuncore_fap640.dts
index a0c32a0211..d525dde385 100644
--- a/target/linux/ramips/dts/mt7621_yuncore_fap640.dts
+++ b/target/linux/ramips/dts/mt7621_yuncore_fap640.dts
@@ -148,10 +148,26 @@
};
&gmac0 {
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <&ethphy4>;
+
nvmem-cells = <&macaddr_factory_0004>;
nvmem-cell-names = "mac-address";
};
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
+
&switch0 {
gpio-controller;
#gpio-cells = <2>;
@@ -176,13 +192,6 @@
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_0004>;
- nvmem-cell-names = "mac-address";
- };
};
};
@@ -201,5 +210,9 @@
macaddr_factory_0004: macaddr@0004 {
reg = <0x0004 0x6>;
};
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
};