How do I map Android GPIO to actual i.MX6 hardware pins

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

How do I map Android GPIO to actual i.MX6 hardware pins

2,177 Views
mikemandeville
Contributor II

I am putting together a rapid prototype system that is running Android on a Freescale iMX6 processor. I am trying to get the iMX6 to toggle a couple of GPIO pins, but I cannot figure out how to translate Android’s GPIO numbering to the iMX6 GPIO numbering. Android has class folders for GPIO175 and GPIO176, plus ones call GPIOCHIP128, GPIOCHIP160, etc but don’t know which GPIOs these would be on the iMX6.

Labels (2)
Tags (3)
0 Kudos
1 Reply

628 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mike

Numbering is the same as in Linux, for example

Request the pin to be used as GPIO:

#define LED_GPIO  6*32+7  */(GPIO7_7)

For Android link below shows usage

http://android.serverbox.ch/?p=972

https://community.freescale.com/docs/DOC-1459

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos