From: Rob Herring <robh@kernel.org>
To: Radhey Shyam Pandey <radheys@xilinx.com>
Cc: Andy Chiu <andy.chiu@sifive.com>,
"robert.hancock@calian.com" <robert.hancock@calian.com>,
Michal Simek <michals@xilinx.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"andrew@lunn.ch" <andrew@lunn.ch>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Greentime Hu <greentime.hu@sifive.com>,
Harini Katakam <harinik@xilinx.com>
Subject: Re: [PATCH v4 3/4] dt-bindings: net: xilinx_axienet: add pcs-handle attribute
Date: Mon, 21 Mar 2022 18:44:42 -0500 [thread overview]
Message-ID: <YjkN6uo/3hXMU36c@robh.at.kernel.org> (raw)
In-Reply-To: <SA1PR02MB856080742C4C5B1AA50FA254C7169@SA1PR02MB8560.namprd02.prod.outlook.com>
On Mon, Mar 21, 2022 at 03:42:52PM +0000, Radhey Shyam Pandey wrote:
> > -----Original Message-----
> > From: Andy Chiu <andy.chiu@sifive.com>
> > Sent: Monday, March 21, 2022 8:55 PM
> > To: Radhey Shyam Pandey <radheys@xilinx.com>; robert.hancock@calian.com;
> > Michal Simek <michals@xilinx.com>
> > Cc: davem@davemloft.net; kuba@kernel.org; pabeni@redhat.com;
> > robh+dt@kernel.org; linux@armlinux.org.uk; andrew@lunn.ch;
> > netdev@vger.kernel.org; devicetree@vger.kernel.org; Andy Chiu
> > <andy.chiu@sifive.com>; Greentime Hu <greentime.hu@sifive.com>
> > Subject: [PATCH v4 3/4] dt-bindings: net: xilinx_axienet: add pcs-handle
> > attribute
> >
> > 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 | 8 +++++++-
> > 1 file changed, 7 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> > b/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> > index b8e4894bc634..ba720a2ea5fc 100644
> > --- a/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> > +++ b/Documentation/devicetree/bindings/net/xilinx_axienet.txt
> > @@ -26,7 +26,8 @@ Required properties:
> > specified, the TX/RX DMA interrupts should be on that node
> > instead, and only the Ethernet core interrupt is optionally
> > specified here.
> > -- phy-handle : Should point to the external phy device.
> > +- phy-handle : Should point to the external phy device if exists. Pointing
> > + this to the PCS/PMA PHY is deprecated and should be
> > avoided.
> > See ethernet.txt file in the same directory.
> > - xlnx,rxmem : Set to allocated memory buffer for Rx/Tx in the hardware
> >
> > @@ -68,6 +69,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 in SGMII or 1000Base-X
> > + modes, where "pcs-handle" should be preferably used to
> > point
> > + to the PCS/PMA PHY, and "phy-handle" should point to an
> > + external PHY if exists.
>
> I would like to have Rob feedback on this pcs-handle DT property.
>
> The use case is generic i.e. require separate handle to internal SGMII
> and external Phy so would prefer this new DT convention is
> standardized or we discuss possible approaches on how to handle
> both phys and not add it as vendor specific property in the first
> place.
IMO, you should use 'phys' for the internal PCS phy. That's aligned with
other uses like PCIe, SATA, etc. (there is phy h/w that will do PCS,
PCIe, SATA). 'phy-handle' is for the ethernet PHY.
Rob
next prev parent reply other threads:[~2022-03-21 23:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 15:25 [PATCH v4 1/4] net: axienet: setup mdio unconditionally Andy Chiu
2022-03-21 15:25 ` [PATCH v4 2/4] net: axienet: factor out phy_node in struct axienet_local Andy Chiu
2022-03-21 18:09 ` Robert Hancock
2022-03-21 15:25 ` [PATCH v4 3/4] dt-bindings: net: xilinx_axienet: add pcs-handle attribute Andy Chiu
2022-03-21 15:42 ` Radhey Shyam Pandey
2022-03-21 18:11 ` Robert Hancock
2022-03-21 23:44 ` Rob Herring [this message]
2022-03-21 23:56 ` Robert Hancock
2022-03-22 0:21 ` Andrew Lunn
2022-03-22 16:51 ` Rob Herring
2022-03-21 15:25 ` [PATCH v4 4/4] net: axiemac: use a phandle to reference pcs_phy Andy Chiu
2022-03-21 18:12 ` Robert Hancock
2022-03-21 18:08 ` [PATCH v4 1/4] net: axienet: setup mdio unconditionally Robert Hancock
2022-03-21 18:20 ` Andrew Lunn
2022-03-22 4:34 ` Andy Chiu
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=YjkN6uo/3hXMU36c@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=andrew@lunn.ch \
--cc=andy.chiu@sifive.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=greentime.hu@sifive.com \
--cc=harinik@xilinx.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=michals@xilinx.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=radheys@xilinx.com \
--cc=robert.hancock@calian.com \
/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).