Hi Tim,
On Sun, Oct 7, 2012 at 10:49 PM, Tim Michals <
tcmi...@gmail.com> wrote:
> I'm trying to get this to work, I've updated changed the imx23.dtsi,
> imx23-olinuxino.dts several different ways, but nothing works. I load
I2C support has not been added to mx23 yet. It would be really nice to
add it though.
> 2.6.35, and it works fine. I think it has something to do with the clock, I
> see the I2C_CLK change but it does not look right...
> Here is what I've tried
> 1. Validate wiring via 2.6.35 OE build, works fine.
> 2. Update the device tree files moving it around to several places but
> nothing.. :
> i2c0_pins_a: i2c0@0 {
> reg = <0>;
> fsl,pinmux-ids = <
> 0x01e0 /* MX23_PAD_I2C_SCL__AUART1_TX */
> 0x01f0 /* MX23_PAD_I2C_SDA__AUART1_RX */
> /* also tried */
> /* 0x1171*/ /* MX23_PAD_LCD_ENABLE__LCD_ENABLE */
> /* 0x1181*/ /* MX23_PAD_LCD_HSYNC__LCD_HSYNC */
Which pads are you using to test I2C?
> >;
> fsl,drive-strength = <1>;
> fsl,voltage = <1>;
> fsl,pull-up = <1>;
> };
> i2c0: i2c@80058000 {
> #address-cells = <1>;
> #size-cells = <0>;
> compatible = "fsl,imx28-i2c";
> reg = <0x80058000 0x2000>;
> interrupts = <27 26>;
> clock-frequency = <400000>;
> status = "disabled";
> };
> imx32-olinuxino.dts
> i2c0: i2c@80058000 {
> pinctrl-names = "default";
> pinctrl-0 = <&i2c0_pins_a>;
> status = "okay";
You also need to put some I2C device. See how I added I2C EEPROM to
imx28-evk.dtb.
You also need to select the I2C device driver in .config. For example,
I2C EEPROM driver.
Also, for mx23 i2c to work you would need DMA:
https://patchwork.kernel.org/patch/1369781/
This has not been applied yet.
Also, if you continue to face issues, please start a thread in
linux-arm-kernel and linux-i2c mailing lists.
Regards,
Fabio Estevam