linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] [v2] powerpc: fsl: update fman dt binding for PCS PHY
@ 2016-01-14  8:27 shh.xie
  2016-01-15  2:53 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: shh.xie @ 2016-01-14  8:27 UTC (permalink / raw)
  To: devicetree, linuxppc-dev; +Cc: netdev, f.fainelli, davem, Shaohui Xie

From: Shaohui Xie <Shaohui.Xie@freescale.com>

PCS PHY can support backplane (1000BASE-KX and 10GBASE-KR), this needs
to change corresponding serdes lane settings, so a reference is needed
for serdes lane. This patch describes properties needed for PCS PHY to
support backplane.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
---
changes in v2:
addressed Rob's comments.
based on http://patchwork.ozlabs.org/patch/560936/

 Documentation/devicetree/bindings/powerpc/fsl/fman.txt | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
index 55c2c03..5ca909a 100644
--- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
+++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
@@ -432,6 +432,16 @@ example of how to define a PHY (Internal PHY has no interrupt line).
 - For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY.
 - For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY,
   PCS PHY addr must be '0'.
+  PCS PHY can support backplane (1000BASE-KX and 10GBASE-KR), this needs to
+  change the corresponding serdes lane settings.
+
+  PCS PHY node properties required for backplane:
+
+  - compatible: must be "ethernet-phy-ieee802.3-c45".
+  - phy-mode: string, operation mode of the PHY interface; must be "1000base-kx"
+    for 1000BASE-KX, or "10gbase-kr" for 10GBASE-KR.
+  - fsl-lane-handle: phandle, specifies a reference to a node representing a Serdes.
+  - fsl-lane-reg: offset and length of the register set for the serdes lane.
 
 EXAMPLE
 
@@ -464,7 +474,11 @@ mdio@f1000 {
 	fsl,fman-internal-mdio;
 
 	pcsphy6: ethernet-phy@0 {
+		compatible = "ethernet-phy-ieee802.3-c45";
+		phy-mode = "10gbase-kr";
 		reg = <0x0>;
+		fsl-lane-handle = <&serdes>;
+		fsl-lane-reg = <0x18c0 0x40>;
 	};
 };
 
-- 
2.1.0.27.g96db324

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

* Re: [PATCH 2/3] [v2] powerpc: fsl: update fman dt binding for PCS PHY
  2016-01-14  8:27 [PATCH 2/3] [v2] powerpc: fsl: update fman dt binding for PCS PHY shh.xie
@ 2016-01-15  2:53 ` Rob Herring
  2016-01-15  4:03   ` Shaohui Xie
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2016-01-15  2:53 UTC (permalink / raw)
  To: shh.xie; +Cc: devicetree, linuxppc-dev, netdev, f.fainelli, davem, Shaohui Xie

On Thu, Jan 14, 2016 at 04:27:18PM +0800, shh.xie@gmail.com wrote:
> From: Shaohui Xie <Shaohui.Xie@freescale.com>
> 
> PCS PHY can support backplane (1000BASE-KX and 10GBASE-KR), this needs
> to change corresponding serdes lane settings, so a reference is needed
> for serdes lane. This patch describes properties needed for PCS PHY to
> support backplane.
> 
> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
> ---
> changes in v2:
> addressed Rob's comments.
> based on http://patchwork.ozlabs.org/patch/560936/
> 
>  Documentation/devicetree/bindings/powerpc/fsl/fman.txt | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> index 55c2c03..5ca909a 100644
> --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> @@ -432,6 +432,16 @@ example of how to define a PHY (Internal PHY has no interrupt line).
>  - For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY.
>  - For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY,
>    PCS PHY addr must be '0'.
> +  PCS PHY can support backplane (1000BASE-KX and 10GBASE-KR), this needs to
> +  change the corresponding serdes lane settings.
> +
> +  PCS PHY node properties required for backplane:
> +
> +  - compatible: must be "ethernet-phy-ieee802.3-c45".
> +  - phy-mode: string, operation mode of the PHY interface; must be "1000base-kx"
> +    for 1000BASE-KX, or "10gbase-kr" for 10GBASE-KR.
> +  - fsl-lane-handle: phandle, specifies a reference to a node representing a Serdes.
> +  - fsl-lane-reg: offset and length of the register set for the serdes lane.

These should be fsl,... not fsl-...

Rob

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

* RE: [PATCH 2/3] [v2] powerpc: fsl: update fman dt binding for PCS PHY
  2016-01-15  2:53 ` Rob Herring
@ 2016-01-15  4:03   ` Shaohui Xie
  0 siblings, 0 replies; 3+ messages in thread
From: Shaohui Xie @ 2016-01-15  4:03 UTC (permalink / raw)
  To: Rob Herring, shh.xie@gmail.com
  Cc: devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	netdev@vger.kernel.org, f.fainelli@gmail.com, davem@davemloft.net,
	Shaohui Xie

> > +  - fsl-lane-handle: phandle, specifies a reference to a node represen=
ting a
> Serdes.
> > +  - fsl-lane-reg: offset and length of the register set for the serdes=
 lane.
>=20
> These should be fsl,... not fsl-...
Will fix it.

Thank you!

 Shaohui

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

end of thread, other threads:[~2016-01-15  4:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-14  8:27 [PATCH 2/3] [v2] powerpc: fsl: update fman dt binding for PCS PHY shh.xie
2016-01-15  2:53 ` Rob Herring
2016-01-15  4:03   ` Shaohui Xie

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