Skip to content

Commit d65a30c

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: timer: Convert cirrus,clps711x-timer to DT schema
Convert the Cirrus CLPS711x timer binding to DT schema format. It's a straight-forward conversion. Drop the aliases node and second example which aren't relevant. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250506022215.2586595-1-robh@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 60160c4 commit d65a30c

File tree

2 files changed

+45
-29
lines changed

2 files changed

+45
-29
lines changed

Documentation/devicetree/bindings/timer/cirrus,clps711x-timer.txt

Lines changed: 0 additions & 29 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/timer/cirrus,clps711x-timer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cirrus Logic CLPS711X Timer Counter
8+
9+
maintainers:
10+
- Alexander Shiyan <shc_work@mail.ru>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- items:
16+
- enum:
17+
- cirrus,ep7312-timer
18+
- const: cirrus,ep7209-timer
19+
- const: cirrus,ep7209-timer
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
- clocks
34+
- interrupts
35+
36+
additionalProperties: false
37+
38+
examples:
39+
- |
40+
timer@80000300 {
41+
compatible = "cirrus,ep7312-timer", "cirrus,ep7209-timer";
42+
reg = <0x80000300 0x4>;
43+
interrupts = <8>;
44+
clocks = <&clks 5>;
45+
};

0 commit comments

Comments
 (0)