Skip to content
Snippets Groups Projects
Commit 3b3d6dec authored by Breno Lima's avatar Breno Lima Committed by Haibo Chen
Browse files

LF-4086-1 mmc: sdhci-esdhc-imx: Add device tree property to select DATA[0] and...

LF-4086-1 mmc: sdhci-esdhc-imx: Add device tree property to select DATA[0] and CMD signals for periodic tuning

SDIO cards can implement an optional feature that uses DATA[1] to signal
the card's interrupt to the i.MX device, this feature can be enabled by
the SDIO card device and does not depends on i.MX uSDHC driver setup
configuration.

Out of reset uSDHC is configuring the uSDHC_VEND_SPEC2 register to use
DATA[3:0] signals for calculating the appropriate delay cell for the
current operation environment, this setup can conflict with the SDIO
interrupt as DATA[1] signal can be asserted asynchronously.

SDIO failures can be observed when running i.MX6ULL EVK and
88w8987/88w8997 at higher frequencies such as SDR104 or SDR50.
Wi-Fi driver is reporting CMD53 read error due to incorrect delay
cell calculated by the i.MX processor and uSDHC controller.

Add optional device tree property to select DATA[0] and CMD signals
for uSDHC auto tuning mechanism. This setup can only be used if SD
interface length are well matched.

Signed-off-by: default avatarBreno Lima <breno.lima@nxp.com>
Reviewed-by: default avatarHaibo Chen <haibo.chen@nxp.com>
parent 1f1c1174
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment