OpenWRT I2C?

Started by Stinde, July 31, 2013, 08:42:13 AM

Previous topic - Next topic

Stinde

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

jeroends

you can try the following module:
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.

runtime

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.