Skip to content

Commit e1e9fad

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: timer: Convert lsi,zevio-timer to DT schema
Convert the TI NSPIRE 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/20250506022257.2588136-1-robh@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent f8470be commit e1e9fad

File tree

2 files changed

+56
-33
lines changed

2 files changed

+56
-33
lines changed

Documentation/devicetree/bindings/timer/lsi,zevio-timer.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/lsi,zevio-timer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: TI-NSPIRE timer
8+
9+
maintainers:
10+
- Daniel Tang <dt.tangr@gmail.com>
11+
12+
properties:
13+
compatible:
14+
const: lsi,zevio-timer
15+
16+
reg:
17+
minItems: 1
18+
items:
19+
- description: Timer registers
20+
- description: Interrupt acknowledgement registers (optional)
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
clocks:
26+
maxItems: 1
27+
28+
required:
29+
- compatible
30+
- reg
31+
- clocks
32+
33+
allOf:
34+
- if:
35+
required: [ interrupts ]
36+
then:
37+
properties:
38+
reg:
39+
minItems: 2
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
timer@900d0000 {
46+
compatible = "lsi,zevio-timer";
47+
reg = <0x900D0000 0x1000>, <0x900A0020 0x8>;
48+
interrupts = <19>;
49+
clocks = <&timer_clk>;
50+
};
51+
- |
52+
timer@900d0000 {
53+
compatible = "lsi,zevio-timer";
54+
reg = <0x900D0000 0x1000>;
55+
clocks = <&timer_clk>;
56+
};

0 commit comments

Comments
 (0)