Hi Igor,
I'm able to get the eMMC recognised in kernel. But i'm getting the read error. I even tried to play with the drive strength and the clock frequency of sd2 pads. My dts file has below settings -
/* SD2 - eMMC */
&usdhc2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc2>;
no-1-8-v;
bus-width = <8>;
non-removable;
keep-power-in-suspend;
enable-sdio-wakeup;
status = "okay";
};
pinctrl_usdhc2: usdhc2grp {
fsl,pins = <
MX6SL_PAD_SD2_CMD__SD2_CMD 0x17009
MX6SL_PAD_SD2_CLK__SD2_CLK 0x10009
MX6SL_PAD_SD2_DAT0__SD2_DATA0 0x17009
MX6SL_PAD_SD2_DAT1__SD2_DATA1 0x17009
MX6SL_PAD_SD2_DAT2__SD2_DATA2 0x17009
MX6SL_PAD_SD2_DAT3__SD2_DATA3 0x17009
MX6SL_PAD_SD2_DAT4__SD2_DATA4 0x17009
MX6SL_PAD_SD2_DAT5__SD2_DATA5 0x17009
MX6SL_PAD_SD2_DAT6__SD2_DATA6 0x17009
MX6SL_PAD_SD2_DAT7__SD2_DATA7 0x17009
>;
};
below is the log of the same -
mmc1: switch to bus width 1 failed
mmc1: new high speed MMC card at address 0001
mmcblk1: mmc1:0001 MMC08G 7.25 GiB
mmcblk1boot0: mmc1:0001 MMC08G partition 1 8.00 MiB
mmcblk1boot1: mmc1:0001 MMC08G partition 2 8.00 MiB
mmcblk1rpmb: mmc1:0001 MMC08G partition 3 128 KiB
###### mmc0 : desired SD clock: 50000000, actual: 49500000
esdhc_set_uhs_signaling :: 7
###### mmc0 : desired SD clock: 50000000, actual: 49500000
mmc1: Timeout waiting for hardware interrupt.
sdhci: =========== REGISTER DUMP (mmc1)===========
sdhci: Sys addr: 0xa8ba0000 | Version: 0x00000002
sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000008
sdhci: Argument: 0x00000000 | Trn mode: 0x00000033
sdhci: Present: 0x01f8820e | Host ctl: 0x00000023
sdhci: Power: 0x00000000 | Blk gap: 0x00000080
sdhci: Wake-up: 0x00000008 | Clock: 0x0000003f
sdhci: Timeout: 0x0000000f | Int stat: 0x00000000
sdhci: Int enab: 0x107f100b | Sig enab: 0x107f100b
sdhci: AC12 err: 0x00000000 | Slot int: 0x00000202
sdhci: Caps: 0x07eb0000 | Caps_1: 0x0000b407
sdhci: Cmd: 0x0000123a | Max curr: 0x00ffffff
sdhci: Host ctl2: 0x00000000
sdhci: ===========================================
*** mmc1 got interrupt: 0x00000001
mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0x400900
mmcblk1: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
mmcblk1: retrying using single block read
mmc1: Timeout waiting for hardware interrupt.
sdhci: =========== REGISTER DUMP (mmc1)===========
sdhci: Sys addr: 0xa8ba0000 | Version: 0x00000002
sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000001
sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
sdhci: Present: 0x01f8820e | Host ctl: 0x00000023
sdhci: Power: 0x00000000 | Blk gap: 0x00000080
sdhci: Wake-up: 0x00000008 | Clock: 0x0000003f
sdhci: Timeout: 0x0000000f | Int stat: 0x00000000
sdhci: Int enab: 0x107f100b | Sig enab: 0x107f100b
sdhci: AC12 err: 0x00000000 | Slot int: 0x00000202
sdhci: Caps: 0x07eb0000 | Caps_1: 0x0000b407
sdhci: Cmd: 0x0000113a | Max curr: 0x00ffffff
sdhci: Host ctl2: 0x00000000
sdhci: ===========================================
*** mmc1 got interrupt: 0x00000001
mmcblk1: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
blk_update_request: I/O error, dev mmcblk1, sector 0
random: nonblocking pool is initialized
mmc1: Timeout waiting for hardware interrupt.
sdhci: =========== REGISTER DUMP (mmc1)===========
sdhci: Sys addr: 0xa8ba0000 | Version: 0x00000002
sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000001
sdhci: Argument: 0x00000001 | Trn mode: 0x00000013
sdhci: Present: 0x01f8820e | Host ctl: 0x00000023
sdhci: Power: 0x00000000 | Blk gap: 0x00000080
sdhci: Wake-up: 0x00000008 | Clock: 0x0000003f
sdhci: Timeout: 0x0000000f | Int stat: 0x00000000
sdhci: Int enab: 0x107f100b | Sig enab: 0x107f100b
sdhci: AC12 err: 0x00000000 | Slot int: 0x00000202
sdhci: Caps: 0x07eb0000 | Caps_1: 0x0000b407
sdhci: Cmd: 0x0000113a | Max curr: 0x00ffffff
sdhci: Host ctl2: 0x00000000
sdhci: ===========================================
*** mmc1 got interrupt: 0x00000001
It shows that, timeout for hardware interrupt. but interrupt of mmc1 occurs immediately after we get the timeout.
Please help to through some highlight on the exact problem that I'm getting. I'm struggling for getting this done for more than 1 week. Any immediate help would be highly appreciated.
Thank you in advance.