Skip to content

Commit dc48f04

Browse files
AndybnACTdavem330
authored andcommitted
dt-bindings: net: add pcs-handle attribute
Document the new pcs-handle attribute to support connecting to an external PHY. For Xilinx's AXI Ethernet, this is used when the core operates in SGMII or 1000Base-X modes and links through the internal PCS/PMA PHY. Signed-off-by: Andy Chiu <andy.chiu@sifive.com> Reviewed-by: Greentime Hu <greentime.hu@sifive.com> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ab3a5d4 commit dc48f04

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Documentation/devicetree/bindings/net/ethernet-controller.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ properties:
106106
phy-mode:
107107
$ref: "#/properties/phy-connection-type"
108108

109+
pcs-handle:
110+
$ref: /schemas/types.yaml#/definitions/phandle
111+
description:
112+
Specifies a reference to a node representing a PCS PHY device on a MDIO
113+
bus to link with an external PHY (phy-handle) if exists.
114+
109115
phy-handle:
110116
$ref: /schemas/types.yaml#/definitions/phandle
111117
description:

Documentation/devicetree/bindings/net/xilinx_axienet.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Required properties:
2626
specified, the TX/RX DMA interrupts should be on that node
2727
instead, and only the Ethernet core interrupt is optionally
2828
specified here.
29-
- phy-handle : Should point to the external phy device.
29+
- phy-handle : Should point to the external phy device if exists. Pointing
30+
this to the PCS/PMA PHY is deprecated and should be avoided.
3031
See ethernet.txt file in the same directory.
3132
- xlnx,rxmem : Set to allocated memory buffer for Rx/Tx in the hardware
3233

@@ -68,6 +69,11 @@ Optional properties:
6869
required through the core's MDIO interface (i.e. always,
6970
unless the PHY is accessed through a different bus).
7071

72+
- pcs-handle: Phandle to the internal PCS/PMA PHY in SGMII or 1000Base-X
73+
modes, where "pcs-handle" should be used to point
74+
to the PCS/PMA PHY, and "phy-handle" should point to an
75+
external PHY if exists.
76+
7177
Example:
7278
axi_ethernet_eth: ethernet@40c00000 {
7379
compatible = "xlnx,axi-ethernet-1.00.a";

0 commit comments

Comments
 (0)