From: phdm@macq.eu (Philippe De Muyter)
To: linux-arm-kernel@lists.infradead.org
Subject: imx6dl/imx6q fec rmii mode with external ref_clk
Date: Wed, 29 Jan 2014 10:54:29 +0100 [thread overview]
Message-ID: <20140129095429.GA30854@frolo.macqel> (raw)
In-Reply-To: <20140115073536.GD1914@S2101-09.ap.freescale.net>
Hi Shawn,
On Wed, Jan 15, 2014 at 03:35:40PM +0800, Shawn Guo wrote:
> On Tue, Jan 14, 2014 at 04:30:12PM +0100, Philippe De Muyter wrote:
> > Hi,
> >
> > On the custom board we are developping (imx6q and imx6dl), we have connected
> > the fec to a switch chip using rmii mode, and we let the switch provide the
> > reference clock to gpio_16.
> >
> > I work currently with 3.13-rc8 and
> >
> > - I do not have ethernet access working (tx timeout)
> > - I do not find in the dtb files a description of the pad settings for the
> > RMII mode
> > - when searching about the setting for bit 21 ing GPR1, which seems to
> > be important for my setting to work, I found the following mail:
> > http://www.spinics.net/lists/devicetree/msg06450.html
>
> Just for testing your hardware, does the following change make the
> Ethernet work for you?
>
> Shawn
>
> diff --git a/arch/arm/mach-imx/mach-imx6q.c
> b/arch/arm/mach-imx/mach-imx6q.c
> index e51e3da..be8d074 100644
> --- a/arch/arm/mach-imx/mach-imx6q.c
> +++ b/arch/arm/mach-imx/mach-imx6q.c
> @@ -188,7 +188,7 @@ static void __init imx6q_1588_init(void)
> if (!IS_ERR(gpr))
> regmap_update_bits(gpr, IOMUXC_GPR1,
> IMX6Q_GPR1_ENET_CLK_SEL_MASK,
> - IMX6Q_GPR1_ENET_CLK_SEL_ANATOP);
> + 0);
> else
> pr_err("failed to find fsl,imx6q-iomux-gpr regmap\n");
>
Yes, it works now. Thanks. Is that configurable from the device tree ?
Philippe
next prev parent reply other threads:[~2014-01-29 9:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-14 15:30 imx6dl/imx6q fec rmii mode with external ref_clk Philippe De Muyter
2014-01-15 7:35 ` Shawn Guo
2014-01-15 9:45 ` Philippe De Muyter
2014-01-15 10:13 ` Fabio Estevam
2014-01-15 10:49 ` Philippe De Muyter
2014-01-15 10:55 ` Philippe De Muyter
2014-01-17 12:31 ` Fabio Estevam
2014-01-29 9:54 ` Philippe De Muyter [this message]
2014-02-06 5:18 ` Shawn Guo
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=20140129095429.GA30854@frolo.macqel \
--to=phdm@macq.eu \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).