xref: /linux/Documentation/devicetree/bindings/rtc/rtc-cmos.yaml (revision 3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/rtc-cmos.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Motorola mc146818 compatible RTC
8
9maintainers:
10  - Alexandre Belloni <alexandre.belloni@bootlin.com>
11
12properties:
13  compatible:
14    oneOf:
15      - const: motorola,mc146818
16
17      - items:
18          - const: intel,ce4100-rtc
19          - const: motorola,mc146818
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  ctrl-reg:
28    $ref: /schemas/types.yaml#/definitions/uint32
29    description:
30      Initial value of the control register
31      (also known as Register B).
32
33  freq-reg:
34    $ref: /schemas/types.yaml#/definitions/uint32
35    description:
36      Initial value of the frequency register
37      (also known as Register A).
38
39required:
40  - compatible
41  - reg
42
43allOf:
44  - $ref: rtc.yaml#
45
46unevaluatedProperties: false
47
48examples:
49  - |
50    bus {
51        #address-cells = <2>;
52        #size-cells = <1>;
53
54        rtc@1,70 {
55            compatible = "motorola,mc146818";
56            reg = <0x1 0x70 0x2>;
57
58            interrupts = <8 3>;
59
60            ctrl-reg = <2>;
61            freq-reg = <0x26>;
62        };
63    };
64