[U-Boot] I2C on mx25

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Thu Oct 11 00:43:17 CEST 2012


Hi Fabio,

On Thursday, October 11, 2012 12:05:29 AM, Fabio Estevam wrote:
> On Wed, Oct 10, 2012 at 6:50 PM, Fabio Estevam <festevam at gmail.com>
> wrote:
> > Hi,
> >
> > Has anyone managed to get i2c to work on mx25?
> >
> > I am using the latest u-boot.imx tree and I noticed that
> > "i2c_write"
> > always returns error.
> 
> Ok, i2c_write does work now. This recent commit fixed it:
> 
> commit b1e9e9ef71e6a33c3cc675a18be48929d4a8479f
> Author: Matthias Weisser <weisserm at arcor.de>
> Date:   Mon Sep 24 02:46:53 2012 +0000
> 
>     imx: Use MXC_I2C_CLK in imx i2c driver
> 
>     i2c didn't work on imx25 due to missing MXC_IPG_PERCLK. Now using
>     MXC_I2C_CLK on all imx systems using i2c.
> 
>     Signed-off-by: Matthias Weisser <weisserm at arcor.de>
>     Acked-by: Stefano Babic <sbabic at denx.de>
> 
> This allows me to write to the PMIC and I can turn on the power
> supply
> for the FEC.

Or for the Eth PHY connected to the FEC?

> Still not able to get FEC to work on mx25pdk, but it seems to be
> another problem now.

FYI, the FEC works fine for me in U-Boot for another i.MX25 board using a Micrel
PHY. That required some patches for 2012.07, but they are now in u-boot/master.
There are also some i.MX25 patches in u-boot-imx/next that might help, but I
don't think that they were needed to make FEC work. However, I haven't updated
yet to 2012.10-rc3, so there might be a regression somewhere, or an issue with
the PHY.

Best regards,
Benoît


More information about the U-Boot mailing list