[PATCH v2 1/2] dt-bindings: display: renesas,du: narrow interrupts and resets per variants

From: Krzysztof Kozlowski
Date: Tue Jan 28 2025 - 04:47:31 EST


Each variable-length property like interrupts or resets must have fixed
constraints on number of items for given variant in binding. The
clauses in "if:then:" block should define both limits: upper and lower.

Acked-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>

---

This was sent already in August 2024 (!) and still not picked up. Thus
some other people started doing similar in December.

Can this be finally merged?
https://lore.kernel.org/all/20240818173003.122025-1-krzysztof.kozlowski@xxxxxxxxxx/

Changes in v2:
1. Add Ack
2. Rebase
---
.../devicetree/bindings/display/renesas,du.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/renesas,du.yaml b/Documentation/devicetree/bindings/display/renesas,du.yaml
index 3880b4c2ea9a..88ecabc4348d 100644
--- a/Documentation/devicetree/bindings/display/renesas,du.yaml
+++ b/Documentation/devicetree/bindings/display/renesas,du.yaml
@@ -174,6 +174,7 @@ allOf:
- pattern: '^dclkin\.[01]$'

interrupts:
+ minItems: 2
maxItems: 2

resets:
@@ -229,6 +230,7 @@ allOf:
- pattern: '^dclkin\.[01]$'

interrupts:
+ minItems: 2
maxItems: 2

resets:
@@ -282,6 +284,7 @@ allOf:
- pattern: '^dclkin\.[01]$'

interrupts:
+ minItems: 2
maxItems: 2

resets:
@@ -336,6 +339,7 @@ allOf:
- pattern: '^dclkin\.[01]$'

interrupts:
+ minItems: 2
maxItems: 2

resets:
@@ -397,6 +401,7 @@ allOf:
- pattern: '^dclkin\.[012]$'

interrupts:
+ minItems: 3
maxItems: 3

resets:
@@ -461,9 +466,11 @@ allOf:
- pattern: '^dclkin\.[0123]$'

interrupts:
+ minItems: 4
maxItems: 4

resets:
+ minItems: 2
maxItems: 2

reset-names:
@@ -534,9 +541,11 @@ allOf:
- pattern: '^dclkin\.[012]$'

interrupts:
+ minItems: 3
maxItems: 3

resets:
+ minItems: 2
maxItems: 2

reset-names:
@@ -605,9 +614,11 @@ allOf:
- pattern: '^dclkin\.[013]$'

interrupts:
+ minItems: 3
maxItems: 3

resets:
+ minItems: 2
maxItems: 2

reset-names:
@@ -726,6 +737,7 @@ allOf:
- pattern: '^dclkin\.[01]$'

interrupts:
+ minItems: 2
maxItems: 2

resets:
--
2.43.0