How to set USDHC2 to GPIO. in iMX8M Mini?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set USDHC2 to GPIO. in iMX8M Mini?

212 Views
Kecy
Contributor I

Hi team

 

BSP:L4.14.98

 

How to disable USDHC2 in iMX8M Mini?

Disable SD card startup and only use EMMC startup.

Because I want to set USDHC2 to GPIO.

 

uboot dts be modified as follows

 

&usdhc2 {
pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
bus-width = <4>;
non-removable;
vmmc-supply = <&reg_usdhc2_vmmc>;
status = "disable";
};

 

But I am using uuu -b emmc flash.bin and cannot write it to EMMC.

Can you tell me why?

How should I disable usdhc2 in uboot?

 

Thanks.

0 Kudos
3 Replies

193 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share the uboot log when you attempt to flash using UUU?
Are you trying this on an EVK or is it a custom board?

Best regards,
Aldo.

0 Kudos

207 Views
kef2
Senior Contributor IV

disabled

0 Kudos

205 Views
Kecy
Contributor I

Modify to disabled,But still not ok

0 Kudos