[PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2

Arınç ÜNAL arinc.unal at arinc9.com
Fri Jan 20 12:53:17 PST 2023


Mux the MT7530 switch's phy0 to gmac5 which is wired to the SoC's gmac1.
This achieves 2 Gbps total bandwidth to the CPU using the second RGMII.

Tested-by: Arınç ÜNAL <arinc.unal at arinc9.com>
Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
---
 arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
index 94174cb2b7e1..28051136c4e2 100644
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
@@ -184,10 +184,19 @@ fixed-link {
 		};
 	};
 
+	gmac1: mac at 1 {
+		status = "okay";
+		phy-handle = <&ethphy0>;
+	};
+
 	mdio: mdio-bus {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		ethphy0: ethernet-phy at 0 {
+			reg = <0>;
+		};
+
 		switch at 1f {
 			compatible = "mediatek,mt7530";
 			reg = <0x1f>;
@@ -199,11 +208,6 @@ ports {
 				#address-cells = <1>;
 				#size-cells = <0>;
 
-				port at 0 {
-					reg = <0>;
-					label = "wan";
-				};
-
 				port at 1 {
 					reg = <1>;
 					label = "lan0";
-- 
2.37.2




More information about the Linux-mediatek mailing list