* [PATCH] ARM: i.MX6: update KSZ9031 phy fixup @ 2014-03-21 17:08 Hubert Chaumette 2014-03-21 21:23 ` Eric Bénard 0 siblings, 1 reply; 7+ messages in thread From: Hubert Chaumette @ 2014-03-21 17:08 UTC (permalink / raw) To: linux-arm-kernel; +Cc: Hubert Chaumette, shawn.guo, kernel, linux, linux-kernel Update KSZ9031RN phy fixup for Congatec conga-QEVAL and conga-QMX6 combo : set RGMII GTX_CLK and RX_CLK pad skew to +0.96ns. Signed-off-by: Hubert Chaumette <hchaumette@adeneo-embedded.com> --- arch/arm/mach-imx/mach-imx6q.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 76e5db4..db307c2 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c @@ -77,6 +77,9 @@ static int ksz9031rn_phy_fixup(struct phy_device *dev) mmd_write_reg(dev, 2, 5, 0); mmd_write_reg(dev, 2, 8, 0x003ff); + /* For Congatec conga-QMX6 board */ + mmd_write_reg(dev, 0x02, 0x06, 0xffff); + return 0; } -- 1.9.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: i.MX6: update KSZ9031 phy fixup 2014-03-21 17:08 [PATCH] ARM: i.MX6: update KSZ9031 phy fixup Hubert Chaumette @ 2014-03-21 21:23 ` Eric Bénard 2014-03-24 15:30 ` CHAUMETTE Hubert 0 siblings, 1 reply; 7+ messages in thread From: Eric Bénard @ 2014-03-21 21:23 UTC (permalink / raw) To: Hubert Chaumette; +Cc: linux-arm-kernel, linux, shawn.guo, linux-kernel, kernel Hi Hubert, Le Fri, 21 Mar 2014 18:08:07 +0100, Hubert Chaumette <hchaumette@adeneo-embedded.com> a écrit : > > Update KSZ9031RN phy fixup for Congatec conga-QEVAL and conga-QMX6 combo : > set RGMII GTX_CLK and RX_CLK pad skew to +0.96ns. > > Signed-off-by: Hubert Chaumette <hchaumette@adeneo-embedded.com> > --- > arch/arm/mach-imx/mach-imx6q.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c > index 76e5db4..db307c2 100644 > --- a/arch/arm/mach-imx/mach-imx6q.c > +++ b/arch/arm/mach-imx/mach-imx6q.c > @@ -77,6 +77,9 @@ static int ksz9031rn_phy_fixup(struct phy_device *dev) > mmd_write_reg(dev, 2, 5, 0); > mmd_write_reg(dev, 2, 8, 0x003ff); > > + /* For Congatec conga-QMX6 board */ > + mmd_write_reg(dev, 0x02, 0x06, 0xffff); > + > return 0; > } > that's board specific (the needed delay depends on the routing delay on the PCB), so this should not go in a generic file. Eric ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: i.MX6: update KSZ9031 phy fixup 2014-03-21 21:23 ` Eric Bénard @ 2014-03-24 15:30 ` CHAUMETTE Hubert 2014-03-24 15:41 ` Eric Bénard 0 siblings, 1 reply; 7+ messages in thread From: CHAUMETTE Hubert @ 2014-03-24 15:30 UTC (permalink / raw) To: Eric Bénard; +Cc: linux-arm-kernel, linux, shawn guo, linux-kernel, kernel Hi Eric, ----- Original Message ----- > From: "Eric Bénard" <eric@eukrea.com> > To: "Hubert Chaumette" <hchaumette@adeneo-embedded.com> > Cc: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, "shawn guo" <shawn.guo@linaro.org>, > linux-kernel@vger.kernel.org, kernel@pengutronix.de > Sent: Friday, March 21, 2014 10:23:20 PM > Subject: Re: [PATCH] ARM: i.MX6: update KSZ9031 phy fixup > > Hi Hubert, > > Le Fri, 21 Mar 2014 18:08:07 +0100, > Hubert Chaumette <hchaumette@adeneo-embedded.com> a écrit : > > > > > Update KSZ9031RN phy fixup for Congatec conga-QEVAL and conga-QMX6 combo : > > set RGMII GTX_CLK and RX_CLK pad skew to +0.96ns. > > > > Signed-off-by: Hubert Chaumette <hchaumette@adeneo-embedded.com> > > --- > > arch/arm/mach-imx/mach-imx6q.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/arch/arm/mach-imx/mach-imx6q.c > > b/arch/arm/mach-imx/mach-imx6q.c > > index 76e5db4..db307c2 100644 > > --- a/arch/arm/mach-imx/mach-imx6q.c > > +++ b/arch/arm/mach-imx/mach-imx6q.c > > @@ -77,6 +77,9 @@ static int ksz9031rn_phy_fixup(struct phy_device *dev) > > mmd_write_reg(dev, 2, 5, 0); > > mmd_write_reg(dev, 2, 8, 0x003ff); > > > > + /* For Congatec conga-QMX6 board */ > > + mmd_write_reg(dev, 0x02, 0x06, 0xffff); > > + > > return 0; > > } > > > that's board specific (the needed delay depends on the routing delay on > the PCB), so this should not go in a generic file. > > Eric > I admit it may need to be in a separate function, but this file already contains board-specific fixups (for imx6q sabrelite, Data Modul eDM-QMX6). Anyway, do you have any suggestion for the location I should put it ? Regards, Hubert ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: i.MX6: update KSZ9031 phy fixup 2014-03-24 15:30 ` CHAUMETTE Hubert @ 2014-03-24 15:41 ` Eric Bénard 2014-04-02 13:14 ` Shawn Guo 0 siblings, 1 reply; 7+ messages in thread From: Eric Bénard @ 2014-03-24 15:41 UTC (permalink / raw) To: CHAUMETTE Hubert; +Cc: linux-arm-kernel, linux, shawn guo, linux-kernel, kernel Hi Hubert, Le Mon, 24 Mar 2014 16:30:49 +0100 (CET), CHAUMETTE Hubert <hchaumette@adeneo-embedded.com> a écrit : > > From: "Eric Bénard" <eric@eukrea.com> > > that's board specific (the needed delay depends on the routing delay on > > the PCB), so this should not go in a generic file. > > > > Eric > > > > I admit it may need to be in a separate function, but this file already contains > board-specific fixups (for imx6q sabrelite, Data Modul eDM-QMX6). > true but that's not a reason to add more ;-) > Anyway, do you have any suggestion for the location I should put it ? > no idea at the moment, I simply used your patch to bring this issue on the ML as we recently needed to patch the default values for testing mainline kernel on a custom boards. Eric ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: i.MX6: update KSZ9031 phy fixup 2014-03-24 15:41 ` Eric Bénard @ 2014-04-02 13:14 ` Shawn Guo 2014-04-02 13:38 ` Eric Bénard 0 siblings, 1 reply; 7+ messages in thread From: Shawn Guo @ 2014-04-02 13:14 UTC (permalink / raw) To: Eric Bénard Cc: CHAUMETTE Hubert, linux-arm-kernel, linux, linux-kernel, kernel On Mon, Mar 24, 2014 at 04:41:41PM +0100, Eric Bénard wrote: > Hi Hubert, > > Le Mon, 24 Mar 2014 16:30:49 +0100 (CET), > CHAUMETTE Hubert <hchaumette@adeneo-embedded.com> a écrit : > > > From: "Eric Bénard" <eric@eukrea.com> > > > that's board specific (the needed delay depends on the routing delay on > > > the PCB), so this should not go in a generic file. > > > > > > Eric > > > > > > > I admit it may need to be in a separate function, but this file already contains > > board-specific fixups (for imx6q sabrelite, Data Modul eDM-QMX6). > > > true but that's not a reason to add more ;-) > > > Anyway, do you have any suggestion for the location I should put it ? > > > no idea at the moment, I simply used your patch to bring this issue on > the ML as we recently needed to patch the default values for testing > mainline kernel on a custom boards. Hmm, can such board-specific fixups be pushed down to bootloader? Shawn ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: i.MX6: update KSZ9031 phy fixup 2014-04-02 13:14 ` Shawn Guo @ 2014-04-02 13:38 ` Eric Bénard 2014-04-02 14:14 ` Ben Dooks 0 siblings, 1 reply; 7+ messages in thread From: Eric Bénard @ 2014-04-02 13:38 UTC (permalink / raw) To: Shawn Guo; +Cc: CHAUMETTE Hubert, linux-arm-kernel, linux, linux-kernel, kernel Hi Shawn, Le Wed, 2 Apr 2014 21:14:08 +0800, Shawn Guo <shawn.guo@linaro.org> a écrit : > > On Mon, Mar 24, 2014 at 04:41:41PM +0100, Eric Bénard wrote: > > Hi Hubert, > > > > Le Mon, 24 Mar 2014 16:30:49 +0100 (CET), > > CHAUMETTE Hubert <hchaumette@adeneo-embedded.com> a écrit : > > > > From: "Eric Bénard" <eric@eukrea.com> > > > > that's board specific (the needed delay depends on the routing delay on > > > > the PCB), so this should not go in a generic file. > > > > > > > > Eric > > > > > > > > > > I admit it may need to be in a separate function, but this file already contains > > > board-specific fixups (for imx6q sabrelite, Data Modul eDM-QMX6). > > > > > true but that's not a reason to add more ;-) > > > > > Anyway, do you have any suggestion for the location I should put it ? > > > > > no idea at the moment, I simply used your patch to bring this issue on > > the ML as we recently needed to patch the default values for testing > > mainline kernel on a custom boards. > > Hmm, can such board-specific fixups be pushed down to bootloader? > that won't work if the kernel reset the PHY. Eric ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: i.MX6: update KSZ9031 phy fixup 2014-04-02 13:38 ` Eric Bénard @ 2014-04-02 14:14 ` Ben Dooks 0 siblings, 0 replies; 7+ messages in thread From: Ben Dooks @ 2014-04-02 14:14 UTC (permalink / raw) To: Eric Bénard, Shawn Guo Cc: kernel, linux, CHAUMETTE Hubert, linux-kernel, linux-arm-kernel On 02/04/14 14:38, Eric Bénard wrote: > Hi Shawn, > > Le Wed, 2 Apr 2014 21:14:08 +0800, > Shawn Guo <shawn.guo@linaro.org> a écrit : > >> >> On Mon, Mar 24, 2014 at 04:41:41PM +0100, Eric Bénard wrote: >>> Hi Hubert, >>> >>> Le Mon, 24 Mar 2014 16:30:49 +0100 (CET), >>> CHAUMETTE Hubert <hchaumette@adeneo-embedded.com> a écrit : >>>>> From: "Eric Bénard" <eric@eukrea.com> >>>>> that's board specific (the needed delay depends on the routing delay on >>>>> the PCB), so this should not go in a generic file. >>>>> >>>>> Eric >>>>> >>>> >>>> I admit it may need to be in a separate function, but this file already contains >>>> board-specific fixups (for imx6q sabrelite, Data Modul eDM-QMX6). >>>> >>> true but that's not a reason to add more ;-) >>> >>>> Anyway, do you have any suggestion for the location I should put it ? >>>> >>> no idea at the moment, I simply used your patch to bring this issue on >>> the ML as we recently needed to patch the default values for testing >>> mainline kernel on a custom boards. >> >> Hmm, can such board-specific fixups be pushed down to bootloader? >> > that won't work if the kernel reset the PHY. If it is in device-tree, then you can add it to the phy node. For earlier Micrel Phys we have a LED mode setting on initialisaion. -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-04-02 14:14 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-03-21 17:08 [PATCH] ARM: i.MX6: update KSZ9031 phy fixup Hubert Chaumette 2014-03-21 21:23 ` Eric Bénard 2014-03-24 15:30 ` CHAUMETTE Hubert 2014-03-24 15:41 ` Eric Bénard 2014-04-02 13:14 ` Shawn Guo 2014-04-02 13:38 ` Eric Bénard 2014-04-02 14:14 ` Ben Dooks
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox