dt-bindings: timer: nuvoton,npcm7xx-timer: Allow specifying all clocks
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Fri, 4 Nov 2022 16:18:45 +0000 (17:18 +0100)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Fri, 2 Dec 2022 11:48:28 +0000 (12:48 +0100)
The timer module contains multiple timers. In the WPCM450 SoC, each timer
runs off a clock can be gated individually. To model this correctly, the
timer node in the devicetree needs to take multiple clock inputs.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20221104161850.2889894-2-j.neuschaefer@gmx.net
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.yaml

index 737af78ad70c3409820c3aed51f04b383ef6618e..d53e1bb98b8a600fc02f25ef1d2ec9a15518cd05 100644 (file)
@@ -25,7 +25,13 @@ properties:
       - description: The timer interrupt of timer 0
 
   clocks:
-    maxItems: 1
+    items:
+      - description: The reference clock for timer 0
+      - description: The reference clock for timer 1
+      - description: The reference clock for timer 2
+      - description: The reference clock for timer 3
+      - description: The reference clock for timer 4
+    minItems: 1
 
 required:
   - compatible