Use USDHC2 of i.MX8QM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use USDHC2 of i.MX8QM

805 Views
wanbenzhou
Contributor II

My DTS config following

pastedImage_3.png

pastedImage_2.png

pastedImage_1.png

When power up the board, the following message in console

[ 34.398912] mmc2: Timeout waiting for hardware cmd interrupt.
[ 34.404680] mmc2: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 34.411126] mmc2: sdhci: Sys addr: 0x00000000 | Version: 0x00000002
[ 34.417571] mmc2: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000001
[ 34.424017] mmc2: sdhci: Argument: 0x000001aa | Trn mode: 0x00000000
[ 34.430463] mmc2: sdhci: Present: 0x01f88009 | Host ctl: 0x00000001
[ 34.436909] mmc2: sdhci: Power: 0x00000000 | Blk gap: 0x00000080
[ 34.443355] mmc2: sdhci: Wake-up: 0x00000008 | Clock: 0x000010ff
[ 34.449801] mmc2: sdhci: Timeout: 0x00000080 | Int stat: 0x00000000
[ 34.456247] mmc2: sdhci: Int enab: 0x007f1003 | Sig enab: 0x007f1003
[ 34.462693] mmc2: sdhci: AC12 err: 0x00000000 | Slot int: 0x00000502
[ 34.469141] mmc2: sdhci: Caps: 0x07eb0000 | Caps_1: 0x0000b400
[ 34.475586] mmc2: sdhci: Cmd: 0x0000081a | Max curr: 0x00ffffff
[ 34.482032] mmc2: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000
[ 34.488477] mmc2: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
[ 34.494923] mmc2: sdhci: Host ctl2: 0x00000000
[ 34.499372] mmc2: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
[ 34.505816] mmc2: sdhci: ============================================

Tags (3)
0 Kudos
3 Replies

683 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

 

Could be that CD pad is causing this, please try adding this:

 

&usdhc3 {
        pinctrl-names = "default", "state_100mhz", "state_200mhz";
        pinctrl-0 = <&pinctrl_usdhc3>, <&pinctrl_usdhc3_gpio>;
        pinctrl-1 = <&pinctrl_usdhc3_100mhz>, <&pinctrl_usdhc3_gpio>;
        pinctrl-2 = <&pinctrl_usdhc3_200mhz>, <&pinctrl_usdhc3_gpio>;
        bus-width = <4>;
++        cd-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>;
        no-1-8-v;

        wifi-host;

        vmmc-supply = <&reg_usdhc3_vmmc>;
        status = "okay";
};

 

Also, could you share the kernel version you're using?
NXP board or custom board?

 

Thank you,

Best regards,

Aldo.

0 Kudos

683 Views
wanbenzhou
Contributor II

Thanks, I will be try it later.

Myt kernel version is  rel_imx_4.14.98_2.0.0_ga

0 Kudos

683 Views
AldoG
NXP TechSupport
NXP TechSupport

Please try and let us know.

Regards,
Aldo.

0 Kudos