[PATCH net-next v4 04/14] dt-bindings: net: dsa: renesas,rzn1-a5psw: Reject the "ports" node

From: Prabhakar

Date: Wed Nov 04 2026 - 14:32:15 EST


From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

dsa.yaml accepts either a "ports" or an "ethernet-ports" property. A
devicetree using "ports" therefore passes validation.

Replace the top-level unevaluatedProperties with additionalProperties
to reject the unsupported "ports". Also explicitly declare dsa,member
to keep existing devicetrees validating.

Also Add ethernet-ports to the required list.

Existing in-tree device trees use ethernet-ports, so they are unaffected.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
---
v3->v4:
- New patch
---
.../devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml
index fab6aa6237e9..9c477ceb170b 100644
--- a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml
@@ -45,6 +45,8 @@ properties:
power-domains:
maxItems: 1

+ dsa,member: true
+
mdio:
$ref: /schemas/net/mdio.yaml#
unevaluatedProperties: false
@@ -73,7 +75,7 @@ properties:
phandle pointing to a PCS sub-node compatible with
renesas,rzn1-miic.yaml#

-unevaluatedProperties: false
+additionalProperties: false

required:
- compatible
@@ -81,6 +83,7 @@ required:
- clocks
- clock-names
- power-domains
+ - ethernet-ports

examples:
- |
--
2.56.0