Re: [PATCH] add hardware I2C support for ARM IMX23

2012-11-30 Thread sander van ginkel
You might want to try my for-next branch or wait for 3.8-rc1, maybe the DMA termination patch helps? Also enabling I2C debug messages is probably worth it. Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | h

Re: [PATCH] add hardware I2C support for ARM IMX23

2012-11-28 Thread sander van ginkel
Sander, Just tested with "i2cdetc -y -r 0" that crashes with "BUG: soft lockup - CPU#0 stuck for 22s!" according to the docs (IMX23RM.pdf) the interrupts for I2C are 26 and 27 that why I assigned these two in the dts. In your dts, is it 26, 27? Order matters, it should be 27, 26. Error I

Re: [PATCH] add hardware I2C support for ARM IMX23

2012-11-28 Thread sander van ginkel
Citeren "Wolfram Sang" : You might want to try my for-next branch or wait for 3.8-rc1, maybe the DMA termination patch helps? Also enabling I2C debug messages is probably worth it. Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang | Industrial Linux So

Re: [PATCH] add hardware I2C support for ARM IMX23

2012-11-28 Thread Wolfram Sang
Hi, (adding the i2c list) On Wed, Nov 28, 2012 at 05:44:49PM +0100, Sander van Ginkel wrote: > tested with: > CONFIG_I2C_MXS=m > CONFIG_I2C_MXS=y > > in combination with CONFIG_GPIO_MXS enabled and disabled > > used kernels: 3.6 and 3.7.0-rc6 > > My I2C slave is a PCF8575 i/o expander with som

Re: [PATCH] add hardware I2C support for ARM IMX23

2012-11-28 Thread Sander van Ginkel
tested with: CONFIG_I2C_MXS=m CONFIG_I2C_MXS=y in combination with CONFIG_GPIO_MXS enabled and disabled used kernels: 3.6 and 3.7.0-rc6 My I2C slave is a PCF8575 i/o expander with some LEDs at the output. These are controlled through sysfs. Just tested with "i2cdetc -y -r 0" that crashes with

Re: [PATCH] add hardware I2C support for ARM IMX23

2012-11-28 Thread Wolfram Sang
> I've tested it with multiple configs. Please specify a bit more what you tested and what configs mean. It is especially important to talk to slaves since this is where DMA problems occured. > i2cdetect -l gives me: > i2c-0 i2c MXS I2C adapter I2C adapter

Re: [PATCH] add hardware I2C support for ARM IMX23

2012-11-28 Thread sander van ginkel
Citeren "Wolfram Sang" : Have you tested it? There have been problems reported when using i2cdetect... -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | I've tested it with multiple configs. i2cd

[PATCH] add hardware I2C support for ARM IMX23

2012-11-28 Thread sander van ginkel
The I2C hardware in the IMX233 is currently not supported, however the i2c-mxs driver seems to be suitable. To use the i2c-mxs driver it has to be added to the devicetree for the IMX23. Signed-off-by: Sander van Ginkel --- diff -Naur linux-3.7-rc6/arch/arm/boot/dts/imx23-olinuxino.dts linux-3

Re: [PATCH] add hardware I2C support for ARM IMX23

2012-11-28 Thread Wolfram Sang
On Wed, Nov 28, 2012 at 03:24:03PM +0100, sander van ginkel wrote: > The I2C hardware in the IMX233 is currently not supported, > however the i2c-mxs driver seems to be suitable. > To use the i2c-mxs driver it has to be added to the devicetree > for the IMX23. Have you tested it? There have been p