Skip to contentSkip to conversation

ARM: dts: sun8i: r40: bananapi-m2-ultra: Limit eMMC clock to 37.5 MHz

PATCH Applied Jernej Skrabec 2 participants 2 messages Nov 4 – Nov 15

Subsystems (2)
lore
Share & tools
lore

Jernej Skrabec

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: sun8i: r40: bananapi-m2-ultra: Limit eMMC clock to 37.5 MHz

The Samsung eMMC on Banana Pi M2 Ultra fails with "data error, sending stop command" within a second of sustained reads in DDR52 mode at 50 MHz. At 37.5 MHz the same board survives a long read/write soak.

Limit the eMMC clock to 37.5 MHz. Also enable the hardware reset line, which is routed to the controller (PC24), so the card can be recovered after such errors.

---
 arch/arm/boot/dts/allwinner/sun8i-r40-bananapi-m2-ultra.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/allwinner/sun8i-r40-bananapi-m2-ultra.dts +2 -0
index cd2351acc32f..ddb70af25836 100644
@@ -195,6 +195,8 @@ &mmc2 {
 	vmmc-supply = <&reg_dcdc1>;
 	vqmmc-supply = <&reg_dcdc1>;
 	bus-width = <8>;
+	max-frequency = <37500000>;
+	cap-mmc-hw-reset;
 	non-removable;
 	status = "okay";
 };

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Jernej Skrabec

The Samsung eMMC on Banana Pi M2 Ultra fails with "data error, sending stop command" within a second of sustained reads in DDR52 mode at 50 MHz. At 37.5 MHz the same board survives a long read/write soak.

Limit the eMMC clock to 37.5 MHz. Also enable the hardware reset line, which is routed to the controller (PC24), so the card can be recovered after such errors.

[...]

Applied to sunxi/dt-for-7.5 in sunxi, thanks!

[1/1] ARM: dts: sun8i: r40: bananapi-m2-ultra: Limit eMMC clock to 37.5 MHz

      https://git.kernel.org/sunxi/linux/c/160738a3721c

Best regards,

Signature · 1 line
Chen-Yu Tsai <[email protected]>