Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: Stinde on July 31, 2013, 08:42:13 AM

Title: OpenWRT I2C?
Post by: Stinde on July 31, 2013, 08:42:13 AM
Hi

I'm testing OpenWRT on iMX233 Maxi. If I have understood correctly the "real" HW I2C is not yet supported. If it is supported please tell me what packages I need and how to set it up.

Is it possible to use the GPIO based I2C and how to set it up?

Best Regards,

Timo
Title: Re: OpenWRT I2C?
Post by: jeroends on July 31, 2013, 10:15:26 AM
you can try the following module:
https://github.com/kadamski/i2c-gpio-param (https://github.com/kadamski/i2c-gpio-param).

It's written for the raspberry pi, but problably could be used for other boards too. Keep in minf that the i2c-gpio module has to be compiled too in the kernel.
With this module you can dynamicly assign the gpios as also the number of i2c port.
Title: Re: OpenWRT I2C?
Post by: runtime on January 05, 2014, 01:39:20 PM
With witch parameters are correct?

echo 5 20 24 > /sys/class/i2c-gpio/add_bus

but is not working. It's detect mod-io, but not accept commands. I can't define correct sda and scl.