如何把GPIO4.IO[25]配置为输入模式

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

如何把GPIO4.IO[25]配置为输入模式

557件の閲覧回数
yongyang
Contributor I

我用的是i.mx8mm的芯片,请问如何把GPIO4.IO[25]引脚配置为输入模式,我看了Linux内核源码中的dt-bindings/pinctrl.h的文件中有如下图宏定义,我知道第三个0x000是输入寄存器的偏移地址,然后最后一个值0x0应该是对这个寄存器的写入的值,请问这个引脚可以被配置为输入模式吗?

yongyang_0-1705307934406.png

 

0 件の賞賛
返信
3 返答(返信)

526件の閲覧回数
pengyong_zhang
NXP Employee
NXP Employee
0 件の賞賛
返信

546件の閲覧回数
pengyong_zhang
NXP Employee
NXP Employee

Hii. @yongyang 

Which dtb file do you use? You can refer to the link below to set it up.

https://community.nxp.com/t5/iMX-and-Vybrid-Support/i-MX8MN-GPIO-Configuration-in-Linux/m-p/1678841

B.R

0 件の賞賛
返信

529件の閲覧回数
yongyang
Contributor I
I can not open your link.
0 件の賞賛
返信