All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] I2C on mx25
Date: Thu, 11 Oct 2012 00:43:17 +0200 (CEST)	[thread overview]
Message-ID: <1220242250.6573859.1349908997494.JavaMail.root@advansee.com> (raw)
In-Reply-To: <CAOMZO5CCrF90NK7MzZexqcjZq440VNaVZM5iLLjc4tUza_ooxg@mail.gmail.com>

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

  reply	other threads:[~2012-10-10 22:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2012-10-10 23:28     ` Fabio Estevam
2012-10-11  2:16       ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1220242250.6573859.1349908997494.JavaMail.root@advansee.com \
    --to=benoit.thebaudeau@advansee.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.