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