How to toggle GPIO in user space in iMx8 M mini

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

How to toggle GPIO in user space in iMx8 M mini

跳至解决方案
5,921 次查看
anushan
Contributor III

Hi Everyone,

I am trying to toggle gpio's from user space, to find the gpio number a I am using the formula ==>(bank number * 64) + Pin number, I am exporting the gpio and trying to toggle it but when I probe the gpio its voltage remains the same.

 Am I using the correct formula for iMx8 M mini custom board ?

Also, the gpio numbers in /sys/class/gpio/ are named gpiochip32, gpiochip64 etc and not gpio32 or gpio64 . Why is it like that? With what name should I export the gpio?

Regards,

Anusha

0 项奖励
回复
1 解答
5,803 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Anusha

one can look at variscite resources:

DART-MX8M GPIO - Variscite Wiki 

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

在原帖中查看解决方案

2 回复数
5,804 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Anusha

one can look at variscite resources:

DART-MX8M GPIO - Variscite Wiki 

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

5,803 次查看
anushan
Contributor III

Hi Igor,

Thanks for the link.

Regards,

Anusha

0 项奖励
回复