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

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

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

535 Views
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 Kudos
Reply
2 Replies

495 Views
KyleChang
Contributor I

Thank you.

0 Kudos
Reply

513 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @KyleChang 

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

 

Best regards

Harvey

0 Kudos
Reply