Skip to content

Commit 8b88517

Browse files
lkundrakrobherring
authored andcommitted
dt-bindings: rtc: Convert sa1100-rtc to json-schema
Convert the sa1100-rtc binding to DT schema format using json-schema. While add that, add clocks and resets that are actually used. Signed-off-by: Lubomir Rintel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent c1cd67d commit 8b88517

File tree

2 files changed

+57
-17
lines changed

2 files changed

+57
-17
lines changed

Documentation/devicetree/bindings/rtc/sa1100-rtc.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/sa1100-rtc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell Real Time Clock controller bindings
8+
9+
allOf:
10+
- $ref: rtc.yaml#
11+
12+
maintainers:
13+
- Alessandro Zummo <[email protected]>
14+
- Alexandre Belloni <[email protected]>
15+
- Rob Herring <[email protected]>
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- mrvl,sa1100-rtc
21+
- mrvl,mmp-rtc
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
resets:
30+
maxItems: 1
31+
32+
interrupts:
33+
minItems: 2
34+
35+
interrupt-names:
36+
items:
37+
- const: 'rtc 1Hz'
38+
- const: 'rtc alarm'
39+
40+
required:
41+
- compatible
42+
- reg
43+
- interrupts
44+
- interrupt-names
45+
46+
additionalProperties: false
47+
48+
examples:
49+
- |
50+
rtc: rtc@d4010000 {
51+
compatible = "mrvl,mmp-rtc";
52+
reg = <0xd4010000 0x1000>;
53+
interrupts = <5>, <6>;
54+
interrupt-names = "rtc 1Hz", "rtc alarm";
55+
};
56+
57+
...

0 commit comments

Comments
 (0)