diff mbox series

[v2,2/5] dt-bindings: timer: Add compatibles for sun50i timers

Message ID 20210322044707.19479-3-samuel@sholland.org
State Accepted
Commit bffdc0f3c26c7d9b5006326e0f7b7871d4eaaf13
Headers show
Series [v2,1/5] dt-bindings: timer: Simplify conditional expressions | expand

Commit Message

Samuel Holland March 22, 2021, 4:47 a.m. UTC
The sun50i SoCs contain timer blocks which are useful as broadcast
clockevent sources. They each have 2 interrupts, matching the A23
variant, so add the new compatible strings with the A23 compatible
as a fallback.

Acked-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Samuel Holland <samuel@sholland.org>
---
 .../timer/allwinner,sun4i-a10-timer.yaml        | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

Comments

Rob Herring (Arm) March 27, 2021, 4:46 p.m. UTC | #1
On Sun, 21 Mar 2021 23:47:04 -0500, Samuel Holland wrote:
> The sun50i SoCs contain timer blocks which are useful as broadcast

> clockevent sources. They each have 2 interrupts, matching the A23

> variant, so add the new compatible strings with the A23 compatible

> as a fallback.

> 

> Acked-by: Maxime Ripard <maxime@cerno.tech>

> Signed-off-by: Samuel Holland <samuel@sholland.org>

> ---

>  .../timer/allwinner,sun4i-a10-timer.yaml        | 17 ++++++++++++-----

>  1 file changed, 12 insertions(+), 5 deletions(-)

> 


Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml b/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml
index 3462598e609d..53fd24bdc34e 100644
--- a/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml
+++ b/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml
@@ -12,11 +12,18 @@  maintainers:
 
 properties:
   compatible:
-    enum:
-      - allwinner,sun4i-a10-timer
-      - allwinner,sun8i-a23-timer
-      - allwinner,sun8i-v3s-timer
-      - allwinner,suniv-f1c100s-timer
+    oneOf:
+      - enum:
+          - allwinner,sun4i-a10-timer
+          - allwinner,sun8i-a23-timer
+          - allwinner,sun8i-v3s-timer
+          - allwinner,suniv-f1c100s-timer
+      - items:
+          - enum:
+              - allwinner,sun50i-a64-timer
+              - allwinner,sun50i-h6-timer
+              - allwinner,sun50i-h616-timer
+          - const: allwinner,sun8i-a23-timer
 
   reg:
     maxItems: 1