[PATCH 5.10 114/125] ARM: dts: tacoma: Add phase corrections for eMMC

From: Greg Kroah-Hartman
Date: Thu Jul 22 2021 - 12:42:45 EST


From: Andrew Jeffery <andrew@xxxxxxxx>

commit 2d6608b57c50c54c3e46649110e8ea5a40959c30 upstream.

The degree values were reversed out from the magic tap values of 7 (in)
and 15 + inversion (out) initially suggested by Aspeed.

With the patch tacoma survives several gigabytes of reads and writes
using dd while without it locks up randomly during the boot process.

Signed-off-by: Andrew Jeffery <andrew@xxxxxxxx>
Link: https://lore.kernel.org/r/20210625061017.1149942-1-andrew@xxxxxxxx
Fixes: 2fc88f92359d ("mmc: sdhci-of-aspeed: Expose clock phase controls")
Fixes: 961216c135a8 ("ARM: dts: aspeed: Add Rainier system")
Signed-off-by: Joel Stanley <joel@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 1 +
1 file changed, 1 insertion(+)

--- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
@@ -177,6 +177,7 @@

&emmc {
status = "okay";
+ clk-phase-mmc-hs200 = <36>, <270>;
};

&fsim0 {