Skip to content

Commit

Permalink
dt-bindings: timer: Add missing compatibles
Browse files Browse the repository at this point in the history
Newer Allwinner SoCs have different number of interrupts, let's add
different compatibles for all of them to deal with this properly.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
  • Loading branch information
Maxime Ripard authored and Daniel Lezcano committed Aug 26, 2019
1 parent a08bda2 commit 7fccfcd
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ properties:
compatible:
enum:
- allwinner,sun4i-a10-timer
- allwinner,sun8i-a23-timer
- allwinner,sun8i-v3s-timer
- allwinner,suniv-f1c100s-timer

reg:
Expand All @@ -39,6 +41,30 @@ allOf:
minItems: 6
maxItems: 6

- if:
properties:
compatible:
items:
const: allwinner,sun8i-a23-timer

then:
properties:
interrupts:
minItems: 2
maxItems: 2

- if:
properties:
compatible:
items:
const: allwinner,sun8i-v3s-timer

then:
properties:
interrupts:
minItems: 3
maxItems: 3

- if:
properties:
compatible:
Expand Down

0 comments on commit 7fccfcd

Please sign in to comment.