dt-bindings: net: renesas,etheravb: add top-level constraints

Properties with variable number of items per each device are expected to
have widest constraints in top-level "properties:" block and further
customized (narrowed) in "if:then:".  Add missing top-level constraints
for reg, clocks, clock-names, interrupts and interrupt-names.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240818172905.121829-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Krzysztof Kozlowski
2024-08-18 19:29:04 +02:00
committed by Jakub Kicinski
parent 06ab21c3cb
commit 70d16e1336
@@ -62,15 +62,27 @@ properties:
- renesas,r9a08g045-gbeth # RZ/G3S
- const: renesas,rzg2l-gbeth # RZ/{G2L,G2UL,V2L} family
reg: true
reg:
minItems: 1
items:
- description: MAC register block
- description: Stream buffer
interrupts: true
interrupts:
minItems: 1
maxItems: 29
interrupt-names: true
interrupt-names:
minItems: 1
maxItems: 29
clocks: true
clocks:
minItems: 1
maxItems: 3
clock-names: true
clock-names:
minItems: 1
maxItems: 3
iommus:
maxItems: 1
@@ -150,14 +162,11 @@ allOf:
then:
properties:
reg:
items:
- description: MAC register block
- description: Stream buffer
minItems: 2
else:
properties:
reg:
items:
- description: MAC register block
maxItems: 1
- if:
properties: