diff mbox series

ramips: mt7621-dts: fix phy-mode of external phy on GB-PC2

Message ID 20221128213337.298115-1-arinc.unal@arinc9.com
State Accepted
Delegated to: Hauke Mehrtens
Headers show
Series ramips: mt7621-dts: fix phy-mode of external phy on GB-PC2 | expand

Commit Message

Arınç ÜNAL Nov. 28, 2022, 9:33 p.m. UTC
The phy-mode property must be defined on the MAC instead of the PHY. Define
phy-mode under gmac1 which the external phy is connected to.

Tested-by: Petr Louda <petr.louda@outlook.cz>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
---
 target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Arınç ÜNAL Nov. 28, 2022, 9:46 p.m. UTC | #1
Also, please cherry-pick to 22.03.

Thanks a bunch Hauke!

Arınç
diff mbox series

Patch

diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
index 6199511cff..c18f102502 100644
--- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
+++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
@@ -118,6 +118,7 @@ 
 &gmac1 {
 	status = "okay";
 	label = "ethyellow";
+	phy-mode = "rgmii-rxid";
 	phy-handle = <&ethphy5>;
 
 	nvmem-cells = <&macaddr_factory_e000>;
@@ -127,7 +128,6 @@ 
 &mdio {
 	ethphy5: ethernet-phy@5 {
 		reg = <5>;
-		phy-mode = "rgmii-rxid";
 	};
 };