dt-bindings: mfd: stm32-timers: Document how to specify interrupts
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 19 May 2022 16:28:37 +0000 (18:28 +0200)
committerLee Jones <lee@kernel.org>
Tue, 19 Jul 2022 09:54:39 +0000 (10:54 +0100)
The timer units in the stm32mp1 CPUs have interrupts, depending on the
timer flavour either one "global" or four dedicated ones. Document how
to formalize these in a device tree.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220519162838.695404-1-u.kleine-koenig@pengutronix.de
Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml

index 10b330d..5b05b2e 100644 (file)
@@ -46,6 +46,21 @@ properties:
     minItems: 1
     maxItems: 7
 
+  interrupts:
+    oneOf:
+      - maxItems: 1
+      - maxItems: 4
+
+  interrupt-names:
+    oneOf:
+      - items:
+          - const: global
+      - items:
+          - const: brk
+          - const: up
+          - const: trg-com
+          - const: cc
+
   "#address-cells":
     const: 1