Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: dingbatca on November 08, 2012, 04:26:33 AM

Title: GPIO and 3.7-RC3?
Post by: dingbatca on November 08, 2012, 04:26:33 AM
Does any one have GPIO with the 3.7-RC[1~4] working? I have the LED and that's it.
Title: Re: GPIO and 3.7-RC3?
Post by: dingbatca on November 13, 2012, 01:41:25 AM
Bump.
Do I need to add some kind of GPIO map?
Title: Re: GPIO and 3.7-RC3?
Post by: robwoj on November 14, 2012, 02:14:20 PM
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
Title: Re: GPIO and 3.7-RC3?
Post by: dingbatca on November 14, 2012, 06:15:33 PM
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?
Title: Re: GPIO and 3.7-RC3?
Post by: robwoj on November 14, 2012, 10:41:01 PM
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.
Title: Re: GPIO and 3.7-RC3?
Post by: dingbatca on November 16, 2012, 03:29:45 AM
Thanks Robwoj!  Works great.