From: Lad Prabhakar 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 Reviewed-by: Rob Herring (Arm) --- v6: - No change v5: https://lore.kernel.org/all/20261120002549.1908299-6-prabhakar.mahadev-lad.rj@bp.renesas.com/ - Added RB tag v4: https://lore.kernel.org/all/20261104182105.1102555-5-prabhakar.mahadev-lad.rj@bp.renesas.com/ - 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.1