imx8mq gpio operation

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

imx8mq gpio operation

954 Views
gaobo
Contributor I

MACHINE=imx8mqevk

BSP=4.14.78

Hi everybody,I want to operate GPIO by mapping,but I didn't find data register and direction register in the chip manua.

So I would like to ask how to operate a GPIO, such as changing the level.

We want to introduce some pins on our products, similar to raspberryPi,then port raspberryPi gpio lib to imx8mq.

please give me some advises,thanks!

0 Kudos
3 Replies

816 Views
igorpadykov
NXP Employee
NXP Employee

Hi gao

for i.MX8MQ gpio usage one can look at

http://variwiki.com/index.php?title=DART-MX8M_GPIO 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

816 Views
gaobo
Contributor I

Hi igorpadykov:

Firstly thanks for your replay. But what i want to say is that use mmap function to solve it.Similar to bare board development. 

pastedImage_1.png

but i not find Correlation register!

thanks!!!

0 Kudos

816 Views
igorpadykov
NXP Employee
NXP Employee

one can look at linux gpio driver:

gpio-mxc.c\gpio\drivers - linux-imx - i.MX Linux kernel 

Best regards
igor

0 Kudos