0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rtc/rtc-mxc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Real Time Clock of the i.MX SoCs
0008
0009 allOf:
0010 - $ref: "rtc.yaml#"
0011
0012 maintainers:
0013 - Philippe Reynes <tremyfr@gmail.com>
0014
0015 properties:
0016 compatible:
0017 enum:
0018 - fsl,imx1-rtc
0019 - fsl,imx21-rtc
0020
0021 reg:
0022 maxItems: 1
0023
0024 interrupts:
0025 maxItems: 1
0026
0027 clocks:
0028 items:
0029 - description: input reference
0030 - description: the SoC RTC clock
0031
0032 clock-names:
0033 items:
0034 - const: ref
0035 - const: ipg
0036
0037 required:
0038 - compatible
0039 - reg
0040 - interrupts
0041 - clocks
0042 - clock-names
0043
0044 additionalProperties: false
0045
0046 examples:
0047 - |
0048 #include <dt-bindings/clock/imx27-clock.h>
0049
0050 rtc@10007000 {
0051 compatible = "fsl,imx21-rtc";
0052 reg = <0x10007000 0x1000>;
0053 interrupts = <22>;
0054 clocks = <&clks IMX27_CLK_CKIL>,
0055 <&clks IMX27_CLK_RTC_IPG_GATE>;
0056 clock-names = "ref", "ipg";
0057 };