[openwrt/openwrt] ramips: mt7621-dts: fix phy-mode of external phy on GB-PC2

LEDE Commits lede-commits at lists.infradead.org
Fri Feb 3 05:18:06 PST 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5155200f97adaeaaac7b752b5a6a5e41cba3db6a

commit 5155200f97adaeaaac7b752b5a6a5e41cba3db6a
Author: Arınç ÜNAL <arinc.unal at arinc9.com>
AuthorDate: Tue Nov 29 00:33:37 2022 +0300

    ramips: mt7621-dts: fix phy-mode of external phy on GB-PC2
    
    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 at outlook.cz>
    Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
---
 target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 at 5 {
 		reg = <5>;
-		phy-mode = "rgmii-rxid";
 	};
 };
 




More information about the lede-commits mailing list