[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251204164028.7321-3-john.madieu.xa@bp.renesas.com>
Date: Thu, 4 Dec 2025 17:40:27 +0100
From: John Madieu <john.madieu.xa@...renesas.com>
To: prabhakar.mahadev-lad.rj@...renesas.com,
andrew+netdev@...n.ch,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
geert+renesas@...der.be
Cc: biju.das.jz@...renesas.com,
claudiu.beznea@...on.dev,
linux@...linux.org.uk,
magnus.damm@...il.com,
mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com,
netdev@...r.kernel.org,
linux-renesas-soc@...r.kernel.org,
devicetree@...r.kernel.org,
John Madieu <john.madieu.xa@...renesas.com>
Subject: [PATCH net-next 2/3] dt-bindings: net: renesas-gbeth: Add port-id property
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 <john.madieu.xa@...renesas.com>
---
.../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<N>" 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
Powered by blists - more mailing lists