diff mbox series

[1/4] dt-bindings: sifive: Support 1024 hart contexts

Message ID CABMhjYrkenxuo-tiMmR0-eHtBv1=cYDmzcc5RydtzVP6DG=nnA@mail.gmail.com
State New
Headers show
Series [1/4] dt-bindings: sifive: Support 1024 hart contexts | expand

Commit Message

Atul Khare April 21, 2022, 5:07 a.m. UTC
Fixes device tree schema validation error messages like 'clint@2000000:
interrupts-extended: [[3, 3], [3, 7] ... is too long'.

The CLINT bindings don't define an "interrupts-extended: maxItems",
which trips up the dt-schema checks. Since there's no ISA-mandated
limit, we arbitrarily chose 1024 to reflect the soon-to-be maximum of
NR_CPUS=512 (systems typically have two hart contexts per CPU).

Fixes: a2770b57d083 ("dt-bindings: timer: Add CLINT bindings")
Cc: stable@vger.kernel.org
Signed-off-by: Atul Khare <atulkhare@rivosinc.com>
---
 Documentation/devicetree/bindings/timer/sifive,clint.yaml | 2 ++
 1 file changed, 2 insertions(+)

--
2.35.1
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml
b/Documentation/devicetree/bindings/timer/sifive,clint.yaml
index 8d5f4687add9..4a1f6d422138 100644
--- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml
+++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml
@@ -44,6 +44,8 @@  properties:

   interrupts-extended:
     minItems: 1
+# Based on updated max(NR_CPUS) (512) * (2 contexts per CPU)
+    maxItems: 1024

 additionalProperties: false