iMX8QM MEK input/output GPIO settings

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

iMX8QM MEK input/output GPIO settings

跳至解决方案
1,315 次查看
rkohli2000
Contributor III

Hi support,

I'd like to validate iMX8QM MEK input GPIO pins using uboot-imx (5.4.70_2.3.0).

  • Can we use FGPIO APIs from uboot-imx ?
  • Is it possible to read the boot mode dip switch (SW2) pins for this ?
  • If not SW2, which input GPIO pins on the MEK can be used to test this ? Any examples ?

Thanks in advance.

Ravi

标记 (1)
0 项奖励
回复
1 解答
1,310 次查看
BiyongSUN
NXP Employee
NXP Employee

SW2 is not GPIO. it is boot mode pin. not a GPIO. 

 

For the GPIO you can run the gpio command in uboot.

 

Untitled.png

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,311 次查看
BiyongSUN
NXP Employee
NXP Employee

SW2 is not GPIO. it is boot mode pin. not a GPIO. 

 

For the GPIO you can run the gpio command in uboot.

 

Untitled.png

0 项奖励
回复
1,271 次查看
rkohli2000
Contributor III

Hi Biyong, Please ignore this comment below. I found the issue. Thanks for the reply.

Regards

Ravi

 

Hi Biyong,

I'm using uboot-imx_5.4.70_2.3.0 under the imx8QM MEK board. I can see imx8qm_mek_defconfig shows "CONFIG_CMD_GPIO=y". But, there is no gpio supported on the CLI.

Is it supported in BSP 5.4.70_2.3.0 ? Or any known MEK driver fixes or patch to support the basic command ?

Thanks.

 

BuildInfo:
- SCFW 0d54291f, SECO-FW d63fdb21, IMX-MKIMAGE b392ccaa, ATF
- U-Boot 2021.00

switch to partitions #0, OK
mmc0(part 0) is current device
flash target is MMC:0
Net:
Warning: ethernet@5b040000 using MAC address from ROM
eth0: ethernet@5b040000 [PRIME]
Warning: ethernet@5b050000 using MAC address from ROM
, eth1: ethernet@5b050000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
=>
=>
=> gpio status
Unknown command 'gpio' - try 'help'
=>

0 项奖励
回复