xref: /freebsd/sys/contrib/device-tree/Bindings/timer/arm,twd-timer.yaml (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1*5956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5956d97fSEmmanuel Vadot%YAML 1.2
3*5956d97fSEmmanuel Vadot---
4*5956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/arm,twd-timer.yaml#
5*5956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5956d97fSEmmanuel Vadot
7*5956d97fSEmmanuel Vadottitle: ARM Timer-Watchdog Timer
8*5956d97fSEmmanuel Vadot
9*5956d97fSEmmanuel Vadotmaintainers:
10*5956d97fSEmmanuel Vadot  - Rob Herring <robh@kernel.org>
11*5956d97fSEmmanuel Vadot
12*5956d97fSEmmanuel Vadotdescription:
13*5956d97fSEmmanuel Vadot  ARM 11MP, Cortex-A5 and Cortex-A9 are often associated with a per-core
14*5956d97fSEmmanuel Vadot  Timer-Watchdog (aka TWD), which provides both a per-cpu local timer
15*5956d97fSEmmanuel Vadot  and watchdog.
16*5956d97fSEmmanuel Vadot
17*5956d97fSEmmanuel Vadot  The TWD is usually attached to a GIC to deliver its two per-processor
18*5956d97fSEmmanuel Vadot  interrupts.
19*5956d97fSEmmanuel Vadot
20*5956d97fSEmmanuel Vadotproperties:
21*5956d97fSEmmanuel Vadot  compatible:
22*5956d97fSEmmanuel Vadot    enum:
23*5956d97fSEmmanuel Vadot      - arm,cortex-a9-twd-timer
24*5956d97fSEmmanuel Vadot      - arm,cortex-a5-twd-timer
25*5956d97fSEmmanuel Vadot      - arm,arm11mp-twd-timer
26*5956d97fSEmmanuel Vadot
27*5956d97fSEmmanuel Vadot  reg:
28*5956d97fSEmmanuel Vadot    maxItems: 1
29*5956d97fSEmmanuel Vadot
30*5956d97fSEmmanuel Vadot  interrupts:
31*5956d97fSEmmanuel Vadot    maxItems: 1
32*5956d97fSEmmanuel Vadot
33*5956d97fSEmmanuel Vadot  clocks:
34*5956d97fSEmmanuel Vadot    maxItems: 1
35*5956d97fSEmmanuel Vadot
36*5956d97fSEmmanuel Vadot  always-on:
37*5956d97fSEmmanuel Vadot    description:
38*5956d97fSEmmanuel Vadot      If present, the timer is powered through an always-on power domain,
39*5956d97fSEmmanuel Vadot      therefore it never loses context.
40*5956d97fSEmmanuel Vadot
41*5956d97fSEmmanuel Vadotrequired:
42*5956d97fSEmmanuel Vadot  - compatible
43*5956d97fSEmmanuel Vadot  - reg
44*5956d97fSEmmanuel Vadot  - interrupts
45*5956d97fSEmmanuel Vadot
46*5956d97fSEmmanuel VadotadditionalProperties: false
47*5956d97fSEmmanuel Vadot
48*5956d97fSEmmanuel Vadotexamples:
49*5956d97fSEmmanuel Vadot  - |
50*5956d97fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
51*5956d97fSEmmanuel Vadot
52*5956d97fSEmmanuel Vadot    timer@2c000600 {
53*5956d97fSEmmanuel Vadot            compatible = "arm,arm11mp-twd-timer";
54*5956d97fSEmmanuel Vadot            reg = <0x2c000600 0x20>;
55*5956d97fSEmmanuel Vadot            interrupts = <GIC_PPI 13 0xf01>;
56*5956d97fSEmmanuel Vadot    };
57