Commit 70d16e13 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Jakub Kicinski

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240818172905.121829-3-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 06ab21c3
...@@ -62,15 +62,27 @@ properties: ...@@ -62,15 +62,27 @@ properties:
- renesas,r9a08g045-gbeth # RZ/G3S - renesas,r9a08g045-gbeth # RZ/G3S
- const: renesas,rzg2l-gbeth # RZ/{G2L,G2UL,V2L} family - 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: iommus:
maxItems: 1 maxItems: 1
...@@ -150,14 +162,11 @@ allOf: ...@@ -150,14 +162,11 @@ allOf:
then: then:
properties: properties:
reg: reg:
items: minItems: 2
- description: MAC register block
- description: Stream buffer
else: else:
properties: properties:
reg: reg:
items: maxItems: 1
- description: MAC register block
- if: - if:
properties: properties:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment