From: Lad Prabhakar <prab…@bp.renesas.com>
The A5PSW has four external ports and a CPU management port, using
port numbers from 0 to 4.
Previously, the patternProperties expression only matched port nodes
with unit addresses from 0 to 4. This allowed port nodes with other
unit addresses to bypass the port-specific schema constraints.
Update the pattern to match all port nodes and limit their reg values
to a maximum of 4. This ensures the constraint is applied regardless
of the unit address.
Signed-off-by: Lad Prabhakar <prab…@bp.renesas.com>
Reviewed-by: Krzysztof Kozlowski <krzy…@oss.qualcomm.com>
---
v6:
- Added reviewed-by tag
v5: https://lore.kernel.org/all/2026…@bp.renesas.com/
- New patch
---
.../devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml | 4 +++-
1 file changed, 3 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 9c477ceb170b..30f25b06d62c 100644
--- a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml
@@ -65,10 +65,12 @@ properties:
type: object
additionalProperties: true
patternProperties:
- "^(ethernet-)?port@[0-4]$":
+ "^(ethernet-)?port@":
type: object
additionalProperties: true
properties:
+ reg:
+ maximum: 4
pcs-handle:
maxItems: 1
description:
--
2.56.1