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-mxc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Real Time Clock of the i.MX SoCs
8
9allOf:
10  - $ref: "rtc.yaml#"
11
12maintainers:
13  - Philippe Reynes <tremyfr@gmail.com>
14
15properties:
16  compatible:
17    enum:
18      - fsl,imx1-rtc
19      - fsl,imx21-rtc
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  clocks:
28    items:
29      - description: input reference
30      - description: the SoC RTC clock
31
32  clock-names:
33    items:
34      - const: ref
35      - const: ipg
36
37required:
38  - compatible
39  - reg
40  - interrupts
41  - clocks
42  - clock-names
43
44additionalProperties: false
45
46examples:
47  - |
48    #include <dt-bindings/clock/imx27-clock.h>
49
50    rtc@10007000 {
51        compatible = "fsl,imx21-rtc";
52        reg = <0x10007000 0x1000>;
53        interrupts = <22>;
54        clocks = <&clks IMX27_CLK_CKIL>,
55                 <&clks IMX27_CLK_RTC_IPG_GATE>;
56        clock-names = "ref", "ipg";
57    };
58