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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
Signed-off-by: Atul Khare <atulkhare@xxxxxxxxxxxx>
---
 Documentation/devicetree/bindings/timer/sifive,clint.yaml | 2 ++
 1 file changed, 2 insertions(+)

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

--
2.35.1



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux