[openwrt/openwrt] apm821xx: MBL: correct phy-mode delay settings

LEDE Commits lede-commits at lists.infradead.org
Sat May 1 11:25:29 BST 2021


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/df07bafcd2c79e67a09a724b3d88cea394df8677

commit df07bafcd2c79e67a09a724b3d88cea394df8677
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Sat May 1 11:36:10 2021 +0200

    apm821xx: MBL: correct phy-mode delay settings
    
    This came up in an upstream commit: "
    b1dd9bf688b0 "net: phy: broadcom: Fix RGMII delays for BCM50160 and BCM50610M"
    
    The PHY driver entry for BCM50160 and BCM50610M calls
    bcm54xx_config_init() but does not call bcm54xx_config_clock_delay() in
    order to configuration appropriate clock delays on the PHY, fix that."
    
    So the "rgmii" phy-mode has always been wrong, but went unnoticed since
    the broadcom phy driver didn't push the delay settings to the chip.
    
    Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
 target/linux/apm821xx/dts/wd-mybooklive.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/apm821xx/dts/wd-mybooklive.dts b/target/linux/apm821xx/dts/wd-mybooklive.dts
index 3fd636cb23..dcb8078050 100644
--- a/target/linux/apm821xx/dts/wd-mybooklive.dts
+++ b/target/linux/apm821xx/dts/wd-mybooklive.dts
@@ -149,6 +149,7 @@
 	phy-map = <0x2>;
 	phy-address = <0x1>;
 	phy-handle = <&phy>;
+	phy-mode = "rgmii-id";
 
 	mdio {
 		#address-cells = <1>;



More information about the lede-commits mailing list