WB Quad Rev. C1, GPIO mapping and "direction" settings

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

WB Quad Rev. C1, GPIO mapping and "direction" settings

981 Views
abhayghatpande
Contributor III

Hello

I'm using Yocto dizzy build and it works like a charm for everything else. When I check out the GPIOs on sysfs, I don't see the "direction" control

[code]

# ls /sys/class/gpio/

export       gpiochip128  gpiochip192  gpiochip64   unexport

gpiochip0    gpiochip160  gpiochip32   gpiochip96

[/code]

[code]

# ls /sys/class/gpio/gpiochip128/

base       device     label      ngpio      power      subsystem  uevent

[/code]

So the question is two-fold:

(1) What is the mapping of GPIO numbers to pins for Rev. C1?

(2) Why is there no direction setting?

Thanks.

Labels (3)
0 Kudos
Reply
1 Reply

548 Views
gusarambula
NXP TechSupport
NXP TechSupport

There is some information on wandboard  forums with the answer to this same question:

Wandboard Discussion Forums • View topic - WB Quad "direction" control on GPIO missing?

I’m also adding the information in this thread in case is useful to other users:

You first need to export GPIO pin, for example:
echo 91 > /sys/class/gpio/export

Then you'll see /sys/class/gpio/gpio91/ and there will be direction and value assigned to the pin.

Please review the following link for further information on the Wandboard external GPIOs. The external GPIOs are the same on revisions A, B and C1.

http://wiki.wandboard.org/index.php/External_gpios

0 Kudos
Reply