Enable internal strobe pulldown on Radxa ROCK 4 SBCs
Subsystems (2)
cover Enable internal strobe pulldown on Radxa ROCK 4 SBCs
Various RK3399 boards, including the ROCK Pi 4 series showed instabilities with some eMMC modules when operating in HS400 mode [1]. Later, a missing pull-down resistor on the eMMC strobe line was identified as the root cause of these instabilities [2].
This series enables the internal pull-down on the eMMC PHY strobe line for all ROCK 4 series boards as they all lack an external strobe pull-down resistor.
Furthermore, HS400 mode is re-enabled for these boards. Previously, to workaround the instabilities until the issue was investigated further, HS400 mode was replaced with HS200 mode [1].
[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://lore.kernel.org/all/[email protected]/
Folker Schwesinger (2):
arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK
Pi 4
arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK
4C+
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts | 4 +++- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
base-commit: 4cece764965020c22cff7665b18a012006359095
Signature · 1 line
2.44.0
PATCH 1/2 arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK Pi 4
Commit 8b5c2b45b8f0 disabled the internal pull-down for the strobe line causing I/O errors in HS400 mode for various eMMC modules.
Enable the internal strobe pull-down for ROCK Pi 4 boards. Also re-enable HS400 mode, that was replaced with HS200 mode as a workaround for the stability issues in:cee572756aa2 ("arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4").
This was tested on ROCK 4SE and ROCK Pi 4B+.
--- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +3 -1
@@ -194,6 +194,7 @@ &cpu_b1 { }; &emmc_phy { + rockchip,enable-strobe-pulldown; status = "okay"; };
@@ -648,7 +649,8 @@ &saradc { &sdhci { max-frequency = <150000000>; bus-width = <8>; - mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; non-removable; status = "okay"; };
Signature · 1 line
2.44.0
Re: [PATCH 1/2] arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK Pi 4
Quoted 30 lines · Folker Schwesinger
Commit
8b5c2b45b8f0disabled the internal pull-down for the strobe line causing I/O errors in HS400 mode for various eMMC modules.Enable the internal strobe pull-down for ROCK Pi 4 boards. Also re-enable HS400 mode, that was replaced with HS200 mode as a workaround for the stability issues in:
cee572756aa2("arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4").This was tested on ROCK 4SE and ROCK Pi 4B+.
Fixes 8b5c2b45b8f0 ("phy: rockchip: set pulldown for strobe line in dts")Signed-off-by Folker Schwesinger <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +1
-0@@ -194,6 +194,7 @@ &cpu_b1 { }; &emmc_phy { + rockchip,enable-strobe-pulldown; status = "okay"; };
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi &saradc { · line 651
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +0
-1@@ -648,7 +649,8 @@ &saradc { &sdhci { max-frequency = <150000000>; bus-width = <8>; - mmc-hs200-1_8v;
Shouldn't this be kept around? The node should list all supported modes, not just the highest one. Same for the other patch.
ChenYu
Quoted 13 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +2
-1+ mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; non-removable; status = "okay"; }; --2.44.0
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 1/2] arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK Pi 4
Quoted 9 lines · Chen-Yu Tsai
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi &saradc { · line 651
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +0
-1@@ -648,7 +649,8 @@ &saradc { &sdhci { max-frequency =<150000000>; bus-width =<8>; - mmc-hs200-1_8v;Shouldn't this be kept around? The node should list all supported modes, not just the highest one. Same for the other patch.
This is not necessary, mmc-hs400-1_8v implicitly activates the corresponding HS200 capability, see drivers/mmc/core/host.c:
if (device_property_read_bool(dev, "mmc-hs200-1_8v"))
host->caps2 |=MMC_CAP2_HS200_1_8V_SDR; /* ... */ if (device_property_read_bool(dev, "mmc-hs400-1_8v")) host->caps2 |=MMC_CAP2_HS400_1_8V | MMC_CAP2_HS200_1_8V_SDR;
Kind regards
Folker
Re: [PATCH 1/2] arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK Pi 4
Quoted 12 lines · Folker Schwesinger
Quoted 9 lines · Chen-Yu Tsai
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi &saradc { · line 651
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +0
-1@@ -648,7 +649,8 @@ &saradc { &sdhci { max-frequency <150000000>; bus-width <8>; - mmc-hs200-1_8v;Shouldn't this be kept around? The node should list all supported modes, not just the highest one. Same for the other patch.
Quoted 8 lines
This is not necessary, mmc-hs400-1_8v implicitly activates the corresponding HS200 capability, see
drivers/mmc/core/host.c:if (
device_property_read_bool(dev, "mmc-hs200-1_8v"))host->caps2 | MMC_CAP2_HS200_1_8V_SDR; /* ... */ if (device_property_read_bool(dev, "mmc-hs400-1_8v")) host->caps2 | MMC_CAP2_HS400_1_8V | MMC_CAP2_HS200_1_8V_SDR;
Looking at the initial commit for adding the hs400 properties, it was also mentioned that hs400 support implies hs200 support. It just wasn't explicitly spelled out in the bindings.
In that case, I think we're good here for this particular case.
Quoted 8 lines
Kind regards
Folker
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 1/2] arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK Pi 4
In reply to Folker SchwesingerQuoted 8 lines · Folker Schwesinger
Commit
8b5c2b45b8f0disabled the internal pull-down for the strobe line causing I/O errors in HS400 mode for various eMMC modules.Enable the internal strobe pull-down for ROCK Pi 4 boards. Also re-enable HS400 mode, that was replaced with HS200 mode as a workaround for the stability issues in:
cee572756aa2("arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4").
Quoted 4 lines
This was tested on ROCK 4SE and ROCK Pi 4B+.
Fixes 8b5c2b45b8f0 ("phy: rockchip: set pulldown for strobe line in dts")Signed-off-by Folker Schwesinger <[email protected]>
Looking good to me.
Quoted 18 lines
--- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +1
-0@@ -194,6 +194,7 @@ &cpu_b1 { }; &emmc_phy { + rockchip,enable-strobe-pulldown; status = "okay"; };
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi &saradc { · line 656
Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +2
-1@@ -648,7 +649,8 @@ &saradc { &sdhci { max-frequency = <150000000>; bus-width = <8>; - mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; non-removable; status = "okay"; };
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
PATCH 2/2 arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK 4C+
In reply to Folker SchwesingerCommit 8b5c2b45b8f0 disabled the internal pull-down for the strobe line causing I/O errors in HS400 mode for various eMMC modules.
Enable the internal strobe pull-down for the ROCK 4C+ board. Also re-enable HS400 mode, that was replaced with HS200 mode as a workaround for the stability issues in:2bd1d2dd808c ("arm64: dts: rockchip: Disable HS400 for eMMC on ROCK 4C+").
--- arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts +3 -1
@@ -151,6 +151,7 @@ &cpu_b1 { }; &emmc_phy { + rockchip,enable-strobe-pulldown; status = "okay"; };
@@ -549,7 +550,8 @@ &saradc { &sdhci { max-frequency = <150000000>; bus-width = <8>; - mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; non-removable; status = "okay"; };
Signature · 1 line
2.44.0
Re: [PATCH 2/2] arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK 4C+
Quoted 10 lines · Folker Schwesinger
Commit
8b5c2b45b8f0disabled the internal pull-down for the strobe line causing I/O errors in HS400 mode for various eMMC modules.Enable the internal strobe pull-down for the ROCK 4C+ board. Also re-enable HS400 mode, that was replaced with HS200 mode as a workaround for the stability issues in:
2bd1d2dd808c("arm64: dts: rockchip: Disable HS400 for eMMC on ROCK 4C+").Fixes 8b5c2b45b8f0 ("phy: rockchip: set pulldown for strobe line in dts")Signed-off-by Folker Schwesinger <[email protected]>
Looking good to me.
Quoted 27 lines
--- arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts +3
-1@@ -151,6 +151,7 @@ &cpu_b1 { }; &emmc_phy { + rockchip,enable-strobe-pulldown; status = "okay"; };@@ -549,7 +550,8 @@ &saradc { &sdhci { max-frequency = <150000000>; bus-width = <8>; - mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; non-removable; status = "okay"; };
Quoted 10 lines · Folker Schwesinger
Various RK3399 boards, including the ROCK Pi 4 series showed instabilities with some eMMC modules when operating in HS400 mode [1]. Later, a missing pull-down resistor on the eMMC strobe line was identified as the root cause of these instabilities [2].
This series enables the internal pull-down on the eMMC PHY strobe line for all ROCK 4 series boards as they all lack an external strobe pull-down resistor.
[...]
Applied, thanks!
[1/2] arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK Pi 4
commit: f720dd9b8b6d8b2160beda789429d5489ce8a099
[2/2] arm64: dts: rockchip: Add enable-strobe-pulldown to emmc phy on ROCK 4C+
commit: c1b1f340dd7db11f273e426e110697551c9f501fBest regards,
Signature · 1 line
Heiko Stuebner <[email protected]>