imx28: GPIO number

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

imx28: GPIO number

791 Views
BrilliantovKiri
Senior Contributor I

Hello!

I work with custom board on iMX28.

Now I should export some GPIO, e.g. GPIO0_7 as input and GPIO0_16 as otput.

Where can I found GPIO numbers?

Thank you and excuse my bad english.

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

613 Views
csotoalonso
Contributor III

For GPIOx_y, where x is the GPIO bank and y is the GPIO bit inside this bank, use the following formula:

GPIO_number = 32*x + y

e.g. GPIO3_18 should be 32*3+18 = 114, or GPIO114