* [For next PATCH] ARM: dts: phyFLEX: Add SKEW clock delays to emac0 node
@ 2014-11-03 10:12 Wadim Egorov
2014-11-03 12:29 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Wadim Egorov @ 2014-11-03 10:12 UTC (permalink / raw)
To: barebox
The KSZ9031 gigabit phy on the PBA-B-01 carrier board needs special settings
for the RGMII skew control register.
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
arch/arm/dts/am335x-phytec-phyflex.dts | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/arch/arm/dts/am335x-phytec-phyflex.dts b/arch/arm/dts/am335x-phytec-phyflex.dts
index 4dde328..c4481f5 100644
--- a/arch/arm/dts/am335x-phytec-phyflex.dts
+++ b/arch/arm/dts/am335x-phytec-phyflex.dts
@@ -212,6 +212,17 @@
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rgmii";
dual_emac_res_vlan = <1>;
+
+ /* clock skew correction, maximum possible on KSZ9031 is
+ 2^5 - 1 * 0,06ns = 1860ps, micrel datasheet M9999-081712-0.11 p.58*/
+ rxc-skew-ps = <1860>;
+ txc-skew-ps = <1860>;
+
+ /* align tx signals to zero, leave rx to default */
+ txd0-skew-ps = <0>;
+ txd1-skew-ps = <0>;
+ txd2-skew-ps = <0>;
+ txd3-skew-ps = <0>;
};
&cpsw_emac1 {
--
1.7.0.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [For next PATCH] ARM: dts: phyFLEX: Add SKEW clock delays to emac0 node
2014-11-03 10:12 [For next PATCH] ARM: dts: phyFLEX: Add SKEW clock delays to emac0 node Wadim Egorov
@ 2014-11-03 12:29 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-11-03 12:29 UTC (permalink / raw)
To: Wadim Egorov; +Cc: barebox
On Mon, Nov 03, 2014 at 11:12:15AM +0100, Wadim Egorov wrote:
> The KSZ9031 gigabit phy on the PBA-B-01 carrier board needs special settings
> for the RGMII skew control register.
>
> Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Applied, thanks
Sascha
> ---
> arch/arm/dts/am335x-phytec-phyflex.dts | 11 +++++++++++
> 1 files changed, 11 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/dts/am335x-phytec-phyflex.dts b/arch/arm/dts/am335x-phytec-phyflex.dts
> index 4dde328..c4481f5 100644
> --- a/arch/arm/dts/am335x-phytec-phyflex.dts
> +++ b/arch/arm/dts/am335x-phytec-phyflex.dts
> @@ -212,6 +212,17 @@
> phy_id = <&davinci_mdio>, <1>;
> phy-mode = "rgmii";
> dual_emac_res_vlan = <1>;
> +
> + /* clock skew correction, maximum possible on KSZ9031 is
> + 2^5 - 1 * 0,06ns = 1860ps, micrel datasheet M9999-081712-0.11 p.58*/
> + rxc-skew-ps = <1860>;
> + txc-skew-ps = <1860>;
> +
> + /* align tx signals to zero, leave rx to default */
> + txd0-skew-ps = <0>;
> + txd1-skew-ps = <0>;
> + txd2-skew-ps = <0>;
> + txd3-skew-ps = <0>;
> };
>
> &cpsw_emac1 {
> --
> 1.7.0.4
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-03 12:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03 10:12 [For next PATCH] ARM: dts: phyFLEX: Add SKEW clock delays to emac0 node Wadim Egorov
2014-11-03 12:29 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox