Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Chiu and committed by
David S. Miller
dc48f04f ab3a5d4c

+13 -1
+6
Documentation/devicetree/bindings/net/ethernet-controller.yaml
··· 106 106 phy-mode: 107 107 $ref: "#/properties/phy-connection-type" 108 108 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 + 109 115 phy-handle: 110 116 $ref: /schemas/types.yaml#/definitions/phandle 111 117 description:
+7 -1
Documentation/devicetree/bindings/net/xilinx_axienet.txt
··· 26 26 specified, the TX/RX DMA interrupts should be on that node 27 27 instead, and only the Ethernet core interrupt is optionally 28 28 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. 30 31 See ethernet.txt file in the same directory. 31 32 - xlnx,rxmem : Set to allocated memory buffer for Rx/Tx in the hardware 32 33 ··· 68 67 - mdio : Child node for MDIO bus. Must be defined if PHY access is 69 68 required through the core's MDIO interface (i.e. always, 70 69 unless the PHY is accessed through a different bus). 70 + 71 + - pcs-handle: Phandle to the internal PCS/PMA PHY in SGMII or 1000Base-X 72 + modes, where "pcs-handle" should be used to point 73 + to the PCS/PMA PHY, and "phy-handle" should point to an 74 + external PHY if exists. 71 75 72 76 Example: 73 77 axi_ethernet_eth: ethernet@40c00000 {