GPIO in uboot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO in uboot

1,395件の閲覧回数
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,383件の閲覧回数
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,357件の閲覧回数
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,331件の閲覧回数
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 件の賞賛
返信