How to calculate the Linux GPIO number for a certain GPIO pin on i.MX8MQ platform

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

How to calculate the Linux GPIO number for a certain GPIO pin on i.MX8MQ platform

1,426 次查看
KyleChang
Contributor I

How to calculate the Linux GPIO number for a certain GPIO pin on i.MX8MQ platform?

 

For example, i.MX8MQ GPIO3_IO4=> What is GPIO number that I can export the GPIO and control pin direction and value, thanks.

0 项奖励
回复
2 回复数

1,386 次查看
KyleChang
Contributor I

Thank you.

0 项奖励
回复

1,404 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @KyleChang 

To i.MX8MQ GPIO3_IO4: (3 - 1) * 32 + 4 = 68.

 

Best regards

Harvey

0 项奖励
回复