Message ID | 20241105215202.1491441-11-jonas@kwiboo.se |
---|---|
State | Accepted |
Commit | 61f4e5f9cfa77d0b4f8fd69f6e7c3fd4cc5b519c |
Delegated to: | Kever Yang |
Headers | show |
Series | rockchip: rk3288-miqi: Migrate to OF_UPSTREAM | expand |
On 2024/11/6 05:51, Jonas Karlman wrote: > For some reason the Ethernet PHY reset delay is set to 1 second, this > cause an unneccecery long boot delay. > > MiQi use RTL8211 Ethernet PHY, datasheet list an initial 10ms delay and > then a 30-76ms delay before accessing registers. > > Change to use 80ms delay instead of a full second to speed up Ethernet > initializion in U-Boot. > > Also enable PHY_REALTEK, DM_ETH_PHY and PHY_GIGE to improve Ethernet PHY > support in U-Boot. > > Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Thanks, - Kever > --- > arch/arm/dts/rk3288-miqi-u-boot.dtsi | 4 ++++ > configs/miqi-rk3288_defconfig | 3 +++ > 2 files changed, 7 insertions(+) > > diff --git a/arch/arm/dts/rk3288-miqi-u-boot.dtsi b/arch/arm/dts/rk3288-miqi-u-boot.dtsi > index 4361b35d6c8f..e5c7e761c46f 100644 > --- a/arch/arm/dts/rk3288-miqi-u-boot.dtsi > +++ b/arch/arm/dts/rk3288-miqi-u-boot.dtsi > @@ -41,6 +41,10 @@ > bootph-some-ram; > }; > > +&gmac { > + snps,reset-delays-us = <0 10000 80000>; > +}; > + > &gpio7 { > /delete-property/ bootph-all; > bootph-pre-ram; > diff --git a/configs/miqi-rk3288_defconfig b/configs/miqi-rk3288_defconfig > index ee9917149734..55e8d30f675f 100644 > --- a/configs/miqi-rk3288_defconfig > +++ b/configs/miqi-rk3288_defconfig > @@ -55,6 +55,9 @@ CONFIG_MISC=y > CONFIG_ROCKCHIP_EFUSE=y > CONFIG_MMC_DW=y > CONFIG_MMC_DW_ROCKCHIP=y > +CONFIG_PHY_REALTEK=y > +CONFIG_DM_ETH_PHY=y > +CONFIG_PHY_GIGE=y > CONFIG_ETH_DESIGNWARE=y > CONFIG_GMAC_ROCKCHIP=y > CONFIG_PINCTRL=y
diff --git a/arch/arm/dts/rk3288-miqi-u-boot.dtsi b/arch/arm/dts/rk3288-miqi-u-boot.dtsi index 4361b35d6c8f..e5c7e761c46f 100644 --- a/arch/arm/dts/rk3288-miqi-u-boot.dtsi +++ b/arch/arm/dts/rk3288-miqi-u-boot.dtsi @@ -41,6 +41,10 @@ bootph-some-ram; }; +&gmac { + snps,reset-delays-us = <0 10000 80000>; +}; + &gpio7 { /delete-property/ bootph-all; bootph-pre-ram; diff --git a/configs/miqi-rk3288_defconfig b/configs/miqi-rk3288_defconfig index ee9917149734..55e8d30f675f 100644 --- a/configs/miqi-rk3288_defconfig +++ b/configs/miqi-rk3288_defconfig @@ -55,6 +55,9 @@ CONFIG_MISC=y CONFIG_ROCKCHIP_EFUSE=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y +CONFIG_PHY_REALTEK=y +CONFIG_DM_ETH_PHY=y +CONFIG_PHY_GIGE=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y CONFIG_PINCTRL=y
For some reason the Ethernet PHY reset delay is set to 1 second, this cause an unneccecery long boot delay. MiQi use RTL8211 Ethernet PHY, datasheet list an initial 10ms delay and then a 30-76ms delay before accessing registers. Change to use 80ms delay instead of a full second to speed up Ethernet initializion in U-Boot. Also enable PHY_REALTEK, DM_ETH_PHY and PHY_GIGE to improve Ethernet PHY support in U-Boot. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> --- arch/arm/dts/rk3288-miqi-u-boot.dtsi | 4 ++++ configs/miqi-rk3288_defconfig | 3 +++ 2 files changed, 7 insertions(+)