xref: /linux/Documentation/devicetree/bindings/rtc/st,m41t80.yaml (revision fd7d598270724cc787982ea48bbe17ad383a8b7f)
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
7title: ST M41T80 family of RTC and compatible
8
9maintainers:
10  - Alexandre Belloni <alexandre.belloni@bootlin.com>
11
12properties:
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
47allOf:
48  - $ref: rtc.yaml
49
50unevaluatedProperties: false
51
52required:
53  - compatible
54  - reg
55
56examples:
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    };
74