Skip to content

Commit 60160c4

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: timer: Convert altr,timer-1.0 to DT schema
Convert the Altera 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/20250506022202.2586157-1-robh@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 6d1ca22 commit 60160c4

File tree

2 files changed

+39
-18
lines changed

2 files changed

+39
-18
lines changed

Documentation/devicetree/bindings/timer/altr,timer-1.0.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/altr,timer-1.0.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Altera Timer
8+
9+
maintainers:
10+
- Dinh Nguyen <dinguyen@kernel.org>
11+
12+
properties:
13+
compatible:
14+
const: altr,timer-1.0
15+
16+
reg:
17+
maxItems: 1
18+
19+
interrupts:
20+
maxItems: 1
21+
22+
clock-frequency:
23+
description: Frequency of the clock that drives the counter, in Hz.
24+
25+
required:
26+
- compatible
27+
- reg
28+
- interrupts
29+
30+
additionalProperties: false
31+
32+
examples:
33+
- |
34+
timer@400000 {
35+
compatible = "altr,timer-1.0";
36+
reg = <0x00400000 0x00000020>;
37+
interrupts = <11>;
38+
clock-frequency = <125000000>;
39+
};

0 commit comments

Comments
 (0)