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

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

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

633 Views
yongyang
Contributor I

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

yongyang_0-1705307934406.png

 

0 Kudos
Reply
3 Replies

602 Views
pengyong_zhang
NXP Employee
NXP Employee
0 Kudos
Reply

622 Views
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 Kudos
Reply

605 Views
yongyang
Contributor I
I can not open your link.
0 Kudos
Reply