GPIO in uboot

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

GPIO in uboot

1,305 Views
abdrhmn
Contributor I

Hi, 

I'm working on imx8ulp board. I would like to monitor and toggle gpio in uboot. 

1) how to know which gpio is available to use?

2) how to configure the gpio? Do i need to configure it in dts file?

0 Kudos
Reply
3 Replies

1,293 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @abdrhmn 

 

I hope you are doing well.

 

Please refer to the U-boot gpio utility:

https://docs.u-boot.org/en/latest/usage/cmd/gpio.html

 

Best regards,

--... ...--

Salas.

0 Kudos
Reply

1,267 Views
abdrhmn
Contributor I

Hello @Manuel_Salas ,

 

how to configure it programmatically? I always get return -22 when lookup for gpio name. 

take that as an example:

abdrhmn_0-1722900034891.png

 

0 Kudos
Reply

1,241 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @abdrhmn 

 

Please take a look to the mxc_gpio.c driver on uboot-imx.

 

Best regards,

Salas.

0 Kudos
Reply