diff mbox series

imx7d-sabresd: Cannot access the SD card

Message ID CAOMZO5AfPM0WQDYwoGxT=-ckjFA0ospGJdtfwi39Pm1WqQ0__Q@mail.gmail.com
State Not Applicable
Delegated to: Stefano Babic
Headers show
Series imx7d-sabresd: Cannot access the SD card | expand

Commit Message

Fabio Estevam April 6, 2023, 1:21 a.m. UTC
Hi Peng and Ye Li,

The following SDHC error is seen when running top of tree U-Boot on an
imx7d-sabresd board:

U-Boot 2023.04-00652-g487e42f7bc5e (Apr 05 2023 - 22:14:21 -0300)

CPU:   Freescale i.MX7D rev1.0 1000 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 35C
Reset cause: POR
Model: Freescale i.MX7 SabreSD Board
Board: i.MX7D SABRESD in non-secure mode
DRAM:  1 GiB
Core:  100 devices, 19 uclasses, devicetree: separate
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x10
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment

In:    serial
Out:   serial
Err:   serial
SEC0:  RNG instantiated
Net:   eth0: ethernet@30be0000
Hit any key to stop autoboot:  0
=> saveenv
Saving Environment to MMC... Card did not respond to voltage select! : -110
No block device
Failed (1)

I cannot use the SD card anymore.

If I do the following change:


Then the SD card works again.

Any ideas on how this can be properly fixed?

Thanks

Comments

Fabio Estevam April 6, 2023, 1:30 a.m. UTC | #1
On Wed, Apr 5, 2023 at 10:21 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Peng and Ye Li,
>
> The following SDHC error is seen when running top of tree U-Boot on an
> imx7d-sabresd board:
>
> U-Boot 2023.04-00652-g487e42f7bc5e (Apr 05 2023 - 22:14:21 -0300)
>
> CPU:   Freescale i.MX7D rev1.0 1000 MHz (running at 792 MHz)
> CPU:   Commercial temperature grade (0C to 95C) at 35C
> Reset cause: POR
> Model: Freescale i.MX7 SabreSD Board
> Board: i.MX7D SABRESD in non-secure mode
> DRAM:  1 GiB
> Core:  100 devices, 19 uclasses, devicetree: separate
> PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x10
> MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
> Loading Environment from MMC... Card did not respond to voltage select! : -110
> *** Warning - No block device, using default environment

Reverting the commit below makes the SD card work again:

commit 1a7904fdfa7d1974410e9dc9b9bfe8aad7fb1311
Author: Adam Ford <aford173@gmail.com>
Date:   Wed Jan 12 07:53:56 2022 -0600

    mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps

    The Linux driver automatically can detect and enable UHS, HS200, HS400
    and HS400_ES automatically without extra flags being placed into the
    device tree.

    Right now, for U-Boot to use UHS, HS200 or HS400, the extra flags are
    needed in the device tree.  Instead, go through the esdhc_soc_data
    flags and enable the host caps where applicable to automatically
    enable higher speeds.

    Suggested-by: Fabio Estevam <festevam@gmail.com>
    Signed-off-by: Adam Ford <aford173@gmail.com>

Any suggestions?
diff mbox series

Patch

diff --git a/configs/mx7dsabresd_defconfig b/configs/mx7dsabresd_defconfig
index 26e68d30d267..4c81d1f167e9 100644
--- a/configs/mx7dsabresd_defconfig
+++ b/configs/mx7dsabresd_defconfig
@@ -49,9 +49,6 @@  CONFIG_DM_74X164=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MXC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
-CONFIG_MMC_IO_VOLTAGE=y
-CONFIG_MMC_UHS_SUPPORT=y
-CONFIG_MMC_HS200_SUPPORT=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_BROADCOM=y