xref: /linux/Documentation/devicetree/bindings/timer/snps,arc-timer.yaml (revision e21d451a82f39e91b7635c4fc3ff5ac082873ec3)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/snps,arc-timer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Synopsys ARC Local Timer
8
9maintainers:
10  - Vineet Gupta <vgupta@synopsys.com>
11
12description: >
13  Synopsys ARC Local Timer with Interrupt Capabilities
14
15    - Found on all ARC CPUs (ARC700/ARCHS)
16    - Can be optionally programmed to interrupt on Limit
17    - Two identical copies TIMER0 and TIMER1 exist in ARC cores and historically
18      TIMER0 used as clockevent provider (true for all ARC cores)
19      TIMER1 used for clocksource (mandatory for ARC700, optional for ARC HS)
20
21properties:
22  compatible:
23    const: snps,arc-timer
24
25  interrupts:
26    maxItems: 1
27    description: A single timer interrupt going into the parent interrupt controller.
28      Use <16> for ARCHS cores, <3> for ARC700 cores.
29
30  clocks:
31    maxItems: 1
32
33required:
34  - compatible
35  - clocks
36
37additionalProperties: false
38
39examples:
40  - |
41    timer0 {
42        compatible = "snps,arc-timer";
43        interrupts = <3>;
44        clocks = <&core_clk>;
45    };
46