GPIO in uboot

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

GPIO in uboot

1,330 次查看
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 项奖励
回复
3 回复数

1,318 次查看
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 项奖励
回复

1,292 次查看
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 项奖励
回复

1,266 次查看
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 项奖励
回复