Add optional port-id property to identify ethernet ports on RZ/V2H SoCs. The hardware doesn't provide unique identification registers for multiple ethernet instances, so this property allows explicit port identification from the device tree. Signed-off-by: John Madieu --- .../bindings/net/renesas,rzv2h-gbeth.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/net/renesas,rzv2h-gbeth.yaml b/Documentation/devicetree/bindings/net/renesas,rzv2h-gbeth.yaml index bd53ab300f500..bb59c6a925d3f 100644 --- a/Documentation/devicetree/bindings/net/renesas,rzv2h-gbeth.yaml +++ b/Documentation/devicetree/bindings/net/renesas,rzv2h-gbeth.yaml @@ -117,6 +117,23 @@ properties: - description: AXI power-on system reset - description: AHB reset + renesas,port-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Optional unique port identifier for this ethernet interface. + Used for physical port identification (phys_port_id, phys_port_name). + If not specified, the ethernet alias index is used as fallback. + minimum: 0 + maximum: 255 + + renesas,port-name: + $ref: /schemas/types.yaml#/definitions/string + description: + Optional custom name for the physical port. Used by + ndo_get_phys_port_name() for interface naming. + If not specified, "p" format is used where N is the port-id + or ethernet alias index. + pcs-handle: description: phandle pointing to a PCS sub-node compatible with @@ -230,6 +247,8 @@ examples: snps,txpbl = <32>; snps,rxpbl = <32>; phy-handle = <&phy0>; + renesas,port-id = <0>; + renesas,port-name = "mgmt"; stmmac_axi_setup: stmmac-axi-config { snps,lpi_en; -- 2.25.1