GPIO in uboot

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

GPIO in uboot

471 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

459 Views
Alejandro_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

433 Views
abdrhmn
Contributor I

Hello @Alejandro_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

407 Views
Alejandro_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