All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] I2C on mx25
@ 2012-10-10 21:50 Fabio Estevam
  2012-10-10 22:05 ` Fabio Estevam
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2012-10-10 21:50 UTC (permalink / raw)
  To: u-boot

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.

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] I2C on mx25
  2012-10-10 21:50 [U-Boot] I2C on mx25 Fabio Estevam
@ 2012-10-10 22:05 ` Fabio Estevam
  2012-10-10 22:43   ` Benoît Thébaudeau
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2012-10-10 22:05 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 10, 2012 at 6:50 PM, Fabio Estevam <festevam@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@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@arcor.de>
    Acked-by: Stefano Babic <sbabic@denx.de>

This allows me to write to the PMIC and I can turn on the power supply
for the FEC.

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

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] I2C on mx25
  2012-10-10 22:05 ` Fabio Estevam
@ 2012-10-10 22:43   ` Benoît Thébaudeau
  2012-10-10 23:28     ` Fabio Estevam
  0 siblings, 1 reply; 5+ messages in thread
From: Benoît Thébaudeau @ 2012-10-10 22:43 UTC (permalink / raw)
  To: u-boot

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@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@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@arcor.de>
>     Acked-by: Stefano Babic <sbabic@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] I2C on mx25
  2012-10-10 22:43   ` Benoît Thébaudeau
@ 2012-10-10 23:28     ` Fabio Estevam
  2012-10-11  2:16       ` Fabio Estevam
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2012-10-10 23:28 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 10, 2012 at 7:43 PM, Beno?t Th?baudeau
<benoit.thebaudeau@advansee.com> wrote:

> Or for the Eth PHY connected to the FEC?

Yes, for the DP83640 PHY connected to the FEC. The Ethernet PHY is powered now.

>
>> 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.

Ok, thanks. I will debug more. If you have a chance to test mx25 FEC
with 2012.10-rc3, just let me know.

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] I2C on mx25
  2012-10-10 23:28     ` Fabio Estevam
@ 2012-10-11  2:16       ` Fabio Estevam
  0 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2012-10-11  2:16 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 10, 2012 at 8:28 PM, Fabio Estevam <festevam@gmail.com> wrote:

> Ok, thanks. I will debug more. If you have a chance to test mx25 FEC
> with 2012.10-rc3, just let me know.

Nevermind. Problem solved. It was a config file issue I had.

Will submit the patches soon.

Thanks for your help,

Fabio Estevam

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-11  2:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-10 21:50 [U-Boot] I2C on mx25 Fabio Estevam
2012-10-10 22:05 ` Fabio Estevam
2012-10-10 22:43   ` Benoît Thébaudeau
2012-10-10 23:28     ` Fabio Estevam
2012-10-11  2:16       ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.