Skip to content

Commit 960a2f4

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: timer: Convert snps,arc-timer to DT schema
Convert the Synopsys ARC Local Timer binding to DT schema format. It's a straight-forward conversion. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250506022317.2589010-1-robh@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 58ac7dc commit 960a2f4

File tree

2 files changed

+45
-27
lines changed

2 files changed

+45
-27
lines changed

Documentation/devicetree/bindings/timer/snps,arc-timer.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 <vgupta@synopsys.com>
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+
};

0 commit comments

Comments
 (0)