Skip to content

Commit 3e39f79

Browse files
Marek Vasutalexandrebelloni
authored andcommitted
dt-bindings: rtc: m41t80: Convert text schema to YAML one
Convert the m41t80 text schema to YAML schema. Add "#clock-cells" requirement, which is required by clock-output-names. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent c2d12e8 commit 3e39f79

File tree

2 files changed

+73
-39
lines changed

2 files changed

+73
-39
lines changed

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

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/st,m41t80.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ST M41T80 family of RTC and compatible
8+
9+
maintainers:
10+
- Alexandre Belloni <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- st,m41t62
16+
- st,m41t65
17+
- st,m41t80
18+
- st,m41t81
19+
- st,m41t81s
20+
- st,m41t82
21+
- st,m41t83
22+
- st,m41t84
23+
- st,m41t85
24+
- st,m41t87
25+
- microcrystal,rv4162
26+
27+
reg:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
"#clock-cells":
34+
const: 1
35+
36+
clock-output-names:
37+
maxItems: 1
38+
description: From common clock binding to override the default output clock name.
39+
40+
clock:
41+
type: object
42+
$ref: /schemas/clock/fixed-clock.yaml#
43+
properties:
44+
clock-frequency:
45+
const: 32768
46+
47+
allOf:
48+
- $ref: rtc.yaml
49+
50+
unevaluatedProperties: false
51+
52+
required:
53+
- compatible
54+
- reg
55+
56+
examples:
57+
- |
58+
i2c {
59+
#address-cells = <1>;
60+
#size-cells = <0>;
61+
rtc@68 {
62+
compatible = "st,m41t80";
63+
reg = <0x68>;
64+
interrupt-parent = <&UIC0>;
65+
interrupts = <0x9 0x8>;
66+
67+
clock {
68+
compatible = "fixed-clock";
69+
#clock-cells = <0>;
70+
clock-frequency = <32768>;
71+
};
72+
};
73+
};

0 commit comments

Comments
 (0)