i.MX25 esdhc2 incomplete cmd0 transmission
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
[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_DAT20x1480x3400x4ec0x020x001
#defineMX25_PAD_CSI_MCLK__SDHC2_DAT00x1400x3380x4e40x020x001
#defineMX25_PAD_CSI_PIXCLK__SDHC2_DAT30x14c0x3440x4f00x020x001
#defineMX25_PAD_CSI_VSYNC__SDHC2_DAT10x1440x33c0x4e80x020x001
#defineMX25_PAD_CSI_D6__SDHC2_CMD0x1300x3280x4e00x020x001#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 |
Hi Fabio,
Quoted 3 lines · Fabio.Estevam at freescale.com
[Sorry for top-posting here]
Are you sure
0x00000000are 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 transmissionHi,
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_DAT20x1480x3400x4ec0x020x001
#defineMX25_PAD_CSI_MCLK__SDHC2_DAT00x1400x3380x4e40x020x001
#defineMX25_PAD_CSI_PIXCLK__SDHC2_DAT30x14c0x3440x4f00x020x001
#defineMX25_PAD_CSI_VSYNC__SDHC2_DAT10x1440x33c0x4e80x020x001
#defineMX25_PAD_CSI_D6__SDHC2_CMD0x1300x3280x4e00x020x001#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.pngand 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.pngThanks,
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>