Porting imx6q in Yocto3.3 Linux kernel 5.10.35

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Porting imx6q in Yocto3.3 Linux kernel 5.10.35

跳至解决方案
559 次查看
charleshuang
Senior Contributor II

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);

charleshuang_1-1657704367341.png

 

(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);

charleshuang_2-1657705014388.png

 

charleshuang_0-1657703658654.png

Do you have any idea to fixed the issue? 

 

Thanks

 

标签 (2)
0 项奖励
回复
1 解答
524 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @charleshuang 

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
525 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @charleshuang 

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

0 项奖励
回复