GPIO and 3.7-RC3?

Started by dingbatca, November 08, 2012, 04:26:33 AM

Previous topic - Next topic

dingbatca

Does any one have GPIO with the 3.7-RC[1~4] working? I have the LED and that's it.

dingbatca

Bump.
Do I need to add some kind of GPIO map?

robwoj

Hi,

I have working GPIO, for now I tried only /sys/class interface (linux-3.7-rc5).
Which interface do You need to use? (/sys/class/gpio or mmap?)

Robert

dingbatca

I would prefer the /sys/class interface.

I have not tried RC5 yet.  Do you have any custom patches, or are you running stock from kernel.org?

robwoj

Hi,

I have one patch, but it is connected with I2C, so I can say that there aren't any patches.

There is explained a mapping between GPIO in Linux and GPIO in Olimex board. If I'm not wrong there are 20 available GPIO at ext_con.

There is Users manual: https://www.olimex.com/Products/OLinuXino/iMX233/iMX233-OLinuXino-MAXI/resources/iMX233-OLINUXINO-MAXI.pdf

At page 41 You have a mapping.

For example:

echo 92 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio92/direction
echo 1 > /sys/class/gpio/gpio92/value


should give 3.3V at pin nr 30 in external connector.

dingbatca

Thanks Robwoj!  Works great.