diff mbox series

[v2,1/2] dt-bindings: net: xilinx_axienet: add pcs-handle attribute

Message ID 20220317091926.86765-1-andy.chiu@sifive.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series [v2,1/2] dt-bindings: net: xilinx_axienet: add pcs-handle attribute | expand

Checks

Context Check Description
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers warning 5 maintainers not CCed: linux-riscv@lists.infradead.org paul.walmsley@sifive.com palmer@dabbelt.com robh+dt@kernel.org linux-arm-kernel@lists.infradead.org
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 11 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

Andy Chiu March 17, 2022, 9:19 a.m. UTC
Document the new pcs-handle attribute to support connecting to an
external PHY in SGMII or 1000Base-X modes through the internal PCS/PMA
PHY.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Greentime Hu <greentime.hu@sifive.com>
---
 Documentation/devicetree/bindings/net/xilinx_axienet.txt | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Andy Chiu March 17, 2022, 10:02 a.m. UTC | #1
loop in: radhey.shyam.pandey@xilinx.com


On Thu, Mar 17, 2022 at 5:21 PM Andy Chiu <andy.chiu@sifive.com> wrote:
>
> Document the new pcs-handle attribute to support connecting to an
> external PHY in SGMII or 1000Base-X modes through the internal PCS/PMA
> PHY.
>
> Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
> Reviewed-by: Greentime Hu <greentime.hu@sifive.com>
> ---
>  Documentation/devicetree/bindings/net/xilinx_axienet.txt | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/net/xilinx_axienet.txt b/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> index b8e4894bc634..2a9a3a90eb63 100644
> --- a/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> +++ b/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> @@ -68,6 +68,11 @@ Optional properties:
>                   required through the core's MDIO interface (i.e. always,
>                   unless the PHY is accessed through a different bus).
>
> + - pcs-handle:           Phandle to the internal PCS/PMA PHY, if a fixed external PHY
> +                 is tied to it in SGMII or 1000Base-X modes. This is not
> +                 required for SFP connection. The driver would use phy-handle
> +                 to reference the PCS/PMA PHY in such case.
> +
>  Example:
>         axi_ethernet_eth: ethernet@40c00000 {
>                 compatible = "xlnx,axi-ethernet-1.00.a";
> --
> 2.34.1
>
Robert Hancock March 17, 2022, 4:06 p.m. UTC | #2
On Thu, 2022-03-17 at 18:02 +0800, Andy Chiu wrote:
> loop in: radhey.shyam.pandey@xilinx.com
> 
> 
> On Thu, Mar 17, 2022 at 5:21 PM Andy Chiu <andy.chiu@sifive.com> wrote:
> > Document the new pcs-handle attribute to support connecting to an
> > external PHY in SGMII or 1000Base-X modes through the internal PCS/PMA
> > PHY.
> > 
> > Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
> > Reviewed-by: Greentime Hu <greentime.hu@sifive.com>
> > ---
> >  Documentation/devicetree/bindings/net/xilinx_axienet.txt | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> > b/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> > index b8e4894bc634..2a9a3a90eb63 100644
> > --- a/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> > +++ b/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> > @@ -68,6 +68,11 @@ Optional properties:
> >                   required through the core's MDIO interface (i.e. always,
> >                   unless the PHY is accessed through a different bus).
> > 
> > + - pcs-handle:           Phandle to the internal PCS/PMA PHY, if a fixed
> > external PHY
> > +                 is tied to it in SGMII or 1000Base-X modes. This is not
> > +                 required for SFP connection. The driver would use phy-
> > handle
> > +                 to reference the PCS/PMA PHY in such case.
> > +

I would say pcs-handle should be preferably used to point to the PCS/PMA in all
cases. phy-handle should be used for a fixed PHY downstream of the PCS/PMA if
one exists - using that for the PCS/PMA would be just for backward
compatibility with old device trees.

Might want a comment as such in the code as well, where it is retrieving phy-
handle for the PCS and pcs-handle is not present.

> >  Example:
> >         axi_ethernet_eth: ethernet@40c00000 {
> >                 compatible = "xlnx,axi-ethernet-1.00.a";
> > --
> > 2.34.1
> >
Andy Chiu March 17, 2022, 5:31 p.m. UTC | #3
Thanks for the explanation,

I will include that on the v3 patchset.

Andy
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/xilinx_axienet.txt b/Documentation/devicetree/bindings/net/xilinx_axienet.txt
index b8e4894bc634..2a9a3a90eb63 100644
--- a/Documentation/devicetree/bindings/net/xilinx_axienet.txt
+++ b/Documentation/devicetree/bindings/net/xilinx_axienet.txt
@@ -68,6 +68,11 @@  Optional properties:
 		  required through the core's MDIO interface (i.e. always,
 		  unless the PHY is accessed through a different bus).
 
+ - pcs-handle: 	  Phandle to the internal PCS/PMA PHY, if a fixed external PHY
+		  is tied to it in SGMII or 1000Base-X modes. This is not
+		  required for SFP connection. The driver would use phy-handle
+		  to reference the PCS/PMA PHY in such case.
+
 Example:
 	axi_ethernet_eth: ethernet@40c00000 {
 		compatible = "xlnx,axi-ethernet-1.00.a";