iMX8QM MEK input/output GPIO settings

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

iMX8QM MEK input/output GPIO settings

Jump to solution
890 Views
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

Tags (1)
0 Kudos
1 Solution
885 Views
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

View solution in original post

0 Kudos
2 Replies
886 Views
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 Kudos
846 Views
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 Kudos