Skip to content

Commit 89d79ed

Browse files
lkundrakrobherring
authored andcommitted
dt-bindings: timer: Convert mrvl,mmp-timer to json-schema
A straightforward conversion of the mrvl,mmp-timer binding to DT schema format using json-schema. Signed-off-by: Lubomir Rintel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 8b88517 commit 89d79ed

File tree

2 files changed

+46
-17
lines changed

2 files changed

+46
-17
lines changed

Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/mrvl,mmp-timer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell MMP Timer bindings
8+
9+
maintainers:
10+
- Daniel Lezcano <[email protected]>
11+
- Thomas Gleixner <[email protected]>
12+
- Rob Herring <[email protected]>
13+
14+
properties:
15+
$nodename:
16+
pattern: '^timer@[a-f0-9]+$'
17+
18+
compatible:
19+
const: mrvl,mmp-timer
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
clocks:
28+
maxItems: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
- interrupts
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
timer@d4014000 {
40+
compatible = "mrvl,mmp-timer";
41+
reg = <0xd4014000 0x100>;
42+
interrupts = <13>;
43+
clocks = <&coreclk 2>;
44+
};
45+
46+
...

0 commit comments

Comments
 (0)