Hi NXP
Our platform follow imx6q-sabresd Demo board. The SD card is micro SD. The Micro SD slot is not include WP pin. The SD WP pin is connect the groud.
In Yocto 3.3, the Uboot and Linux kernel is 5.10.35. When we try to boot up in our platform, the board hang up.
We trace the code. The system hang up in "regulators_enable_boot_on" function (in drivers/power/regulator/regulator-uclass.c).
(1) The system hang up in for loop. for (uclass_first_device(UCLASS_REGULATOR, &dev);
(2) I try to workaround and add return 0 before the "for (uclass_first_device(UCLASS_REGULATOR, &dev)". But the system hang up in "drivers/mmc/fsl_esdhc_imx.c" and "fsl_esdhc_of_to_plat".
In gpio_request_by_name(dev, "cd-gpios", 0, &priv->cd_gpio,
GPIOD_IS_IN);
Do you have any idea to fixed the issue?
Thanks
Solved! Go to Solution.
I hope you are doing well.
Please add "cd-gpios = <SD card detection GPIO>" in device tree node of uSD card. From the attached snapshot SD2_CD should be the Card detection GPIO. I hope that pin is connected to the processor's card detection GPIO.
Thanks & Regards
Sanket Parekh
I hope you are doing well.
Please add "cd-gpios = <SD card detection GPIO>" in device tree node of uSD card. From the attached snapshot SD2_CD should be the Card detection GPIO. I hope that pin is connected to the processor's card detection GPIO.
Thanks & Regards
Sanket Parekh