| 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 |
|
| 7 |
title: Synopsys ARC Local Timer |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Vineet Gupta <[email protected]> |
| 11 |
|
| 12 |
description: > |
| 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 |
|
| 21 |
properties: |
| 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 |
|
| 33 |
required: |
| 34 |
- compatible |
| 35 |
- clocks |
| 36 |
|
| 37 |
additionalProperties: false |
| 38 |
|
| 39 |
examples: |
| 40 |
- | |
| 41 |
timer0 { |
| 42 |
compatible = "snps,arc-timer"; |
| 43 |
interrupts = <3>; |
| 44 |
clocks = <&core_clk>; |
| 45 |
}; |