Skip to content

Commit

Permalink
dt-bindings: timer: arm,arch_timer: Add interrupt-names support
Browse files Browse the repository at this point in the history
Not all platforms provide the same set of timers/interrupts, and Linux
only needs one (plus kvm/guest ones); some platforms are working around
this by using dummy fake interrupts. Implementing interrupt-names allows
the devicetree to specify an arbitrary set of available interrupts, so
the timer code can pick the right one.

This also adds the hyp-virt timer/interrupt, which was previously not
expressed in the fixed 4-interrupt form.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Hector Martin <marcan@marcan.st>
  • Loading branch information
Hector Martin committed Apr 8, 2021
1 parent 11ecdad commit a6cf39f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Documentation/devicetree/bindings/timer/arm,arch_timer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,30 @@ properties:
- arm,armv8-timer

interrupts:
minItems: 1
maxItems: 5
items:
- description: secure timer irq
- description: non-secure timer irq
- description: virtual timer irq
- description: hypervisor timer irq
- description: hypervisor virtual timer irq

interrupt-names:
oneOf:
- minItems: 2
items:
- const: phys
- const: virt
- const: hyp-phys
- const: hyp-virt
- minItems: 3
items:
- const: sec-phys
- const: phys
- const: virt
- const: hyp-phys
- const: hyp-virt

clock-frequency:
description: The frequency of the main counter, in Hz. Should be present
Expand Down

0 comments on commit a6cf39f

Please sign in to comment.