Skip to contentSkip to conversation

i.MX25 esdhc2 incomplete cmd0 transmission

DISCUSSION Fabio.Estevam at freescale.com 2 participants 2 messages Aug 5, 2014 – Aug 6, 2014 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

[Sorry for top-posting here]

Are you sure 0x00000000 are the correct values for the IOMUX?

Or do you mean 0x80000000, which would let the same IOMUX as configured by the bootloader?

Are you able to correctly access port esdhc2 from the bootloader?

________________________________________
From: Markus Pargmann <[email protected]>
Sent: Tuesday, July 29, 2014 9:48 AM
To: Guo Shawn-R65073
Cc: Estevam Fabio-R49496; linux-arm-kernel at lists.infradead.org; kernel at pengutronix.de
Subject: i.MX25 esdhc2 incomplete cmd0 transmission

Hi,

This mail did not reach the mailinglist, so here is the same mail without the images attached.

Quoted 35 lines · Markus Pargmann

Hi,

I am currently having a Board with an i.MX25 which has an SD-Card slot wired to the CSI pins (ESDHC2). I can see the correct clock and the beginning of the cmd0 on the CMD wire (01 00000). But the arguments and CRC that should follow the comand are missing. The card doesn't respond to this. The same behavior is observable on the karo tx25 module with an oscilloscope on ESDHC2.

The tx25 works correctly with the same software and the ESDHC1. I can see the complete cmd0 command even without any SD card plugged in, as expected. I attached some oscilloscope pictures of these two cases to this mail.

This is the pincontrol setup I am using for esdhc2 on karo tx25:

#define MX25_PAD_CSI_HSYNC__SDHC2_DAT2 0x148 0x340 0x4ec 0x02 0x001
#define MX25_PAD_CSI_MCLK__SDHC2_DAT0 0x140 0x338 0x4e4 0x02 0x001
#define MX25_PAD_CSI_PIXCLK__SDHC2_DAT3 0x14c 0x344 0x4f0 0x02 0x001
#define MX25_PAD_CSI_VSYNC__SDHC2_DAT1 0x144 0x33c 0x4e8 0x02 0x001
#define MX25_PAD_CSI_D6__SDHC2_CMD 0x130 0x328 0x4e0 0x02 0x001

#define MX25_PAD_CSI_D7__SDHC2_DAT_CLK                0x134 0x32C 0x4dc 0x02 0x001
      esdhc {
              pinctrl_esdhc2: esdhc2 {
                      fsl,pins = <
                              MX25_PAD_CSI_HSYNC__SDHC2_DAT2          0x00000000
                              MX25_PAD_CSI_MCLK__SDHC2_DAT0           0x00000000
                              MX25_PAD_CSI_PIXCLK__SDHC2_DAT3         0x00000000
                              MX25_PAD_CSI_VSYNC__SDHC2_DAT1          0x00000000
                              MX25_PAD_CSI_D6__SDHC2_CMD              0x00000000
                              MX25_PAD_CSI_D7__SDHC2_DAT_CLK          0x00000000
                      >;
              };
      };
Quoted 1 line

Any ideas what may be wrong/missing?

Here are the images uploaded to a ftp server:

karo tx25 esdhc1 initial communication without SD card inserted:
ftp://ftp.pengutronix.de/pub/20140729_imx25-esdhc2-scope/karo_2.png ftp://ftp.pengutronix.de/pub/20140729_imx25-esdhc2-scope/karo.png

and the same with karo tx25 esdhc2 and the above pincontrol setup:
ftp://ftp.pengutronix.de/pub/20140729_imx25-esdhc2-scope/karo_esdhc2.png ftp://ftp.pengutronix.de/pub/20140729_imx25-esdhc2-scope/karo_esdhc2_2.png

Thanks,

Markus

--

Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#3 lore raw

Hi Fabio,

Quoted 3 lines · Fabio.Estevam at freescale.com

[Sorry for top-posting here]

Are you sure 0x00000000 are the correct values for the IOMUX?

I tried different values for the pin configuration without success. 0x0 was without any pull/keeper, so I assumed it was the correct configuration. I also tried again with a 100k internal pull-up (0x000000e0) with no difference.

Also the beginning of cmd0 is transmitted, so I think it would be strange if the rest of cmd0 is missing because of wrong pincontrol settings.

Quoted 2 lines

Or do you mean 0x80000000, which would let the same IOMUX as configured by the bootloader?

No, as I am testing in the bootloader so they would be the reset value of the registers.

Quoted 2 lines

Are you able to correctly access port esdhc2 from the bootloader?

I used barebox to make all the oscilloscope pictures. ESDHC1 works in barebox without issues.

Thank you,

Markus

Quoted 71 lines

________________________________________
From: Markus Pargmann <[email protected]>
Sent: Tuesday, July 29, 2014 9:48 AM
To: Guo Shawn-R65073
Cc: Estevam Fabio-R49496; linux-arm-kernel at lists.infradead.org; kernel at pengutronix.de
Subject: i.MX25 esdhc2 incomplete cmd0 transmission

Hi,

This mail did not reach the mailinglist, so here is the same mail without the images attached.

Quoted 35 lines · Markus Pargmann

Hi,

I am currently having a Board with an i.MX25 which has an SD-Card slot wired to the CSI pins (ESDHC2). I can see the correct clock and the beginning of the cmd0 on the CMD wire (01 00000). But the arguments and CRC that should follow the comand are missing. The card doesn't respond to this. The same behavior is observable on the karo tx25 module with an oscilloscope on ESDHC2.

The tx25 works correctly with the same software and the ESDHC1. I can see the complete cmd0 command even without any SD card plugged in, as expected. I attached some oscilloscope pictures of these two cases to this mail.

This is the pincontrol setup I am using for esdhc2 on karo tx25:

#define MX25_PAD_CSI_HSYNC__SDHC2_DAT2 0x148 0x340 0x4ec 0x02 0x001
#define MX25_PAD_CSI_MCLK__SDHC2_DAT0 0x140 0x338 0x4e4 0x02 0x001
#define MX25_PAD_CSI_PIXCLK__SDHC2_DAT3 0x14c 0x344 0x4f0 0x02 0x001
#define MX25_PAD_CSI_VSYNC__SDHC2_DAT1 0x144 0x33c 0x4e8 0x02 0x001
#define MX25_PAD_CSI_D6__SDHC2_CMD 0x130 0x328 0x4e0 0x02 0x001

#define MX25_PAD_CSI_D7__SDHC2_DAT_CLK                0x134 0x32C 0x4dc 0x02 0x001
      esdhc {
              pinctrl_esdhc2: esdhc2 {
                      fsl,pins = <
                              MX25_PAD_CSI_HSYNC__SDHC2_DAT2          0x00000000
                              MX25_PAD_CSI_MCLK__SDHC2_DAT0           0x00000000
                              MX25_PAD_CSI_PIXCLK__SDHC2_DAT3         0x00000000
                              MX25_PAD_CSI_VSYNC__SDHC2_DAT1          0x00000000
                              MX25_PAD_CSI_D6__SDHC2_CMD              0x00000000
                              MX25_PAD_CSI_D7__SDHC2_DAT_CLK          0x00000000
                      >;
              };
      };
Quoted 1 line

Any ideas what may be wrong/missing?

Here are the images uploaded to a ftp server:

karo tx25 esdhc1 initial communication without SD card inserted:
ftp://ftp.pengutronix.de/pub/20140729_imx25-esdhc2-scope/karo_2.png ftp://ftp.pengutronix.de/pub/20140729_imx25-esdhc2-scope/karo.png

and the same with karo tx25 esdhc2 and the above pincontrol setup:
ftp://ftp.pengutronix.de/pub/20140729_imx25-esdhc2-scope/karo_esdhc2.png ftp://ftp.pengutronix.de/pub/20140729_imx25-esdhc2-scope/karo_esdhc2_2.png

Thanks,

Markus

--

Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Signature · 11 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140806/e887c416/attachment.sig>