summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-06-04 09:35:55 +0800
committerRob Herring <robh@kernel.org>2020-06-15 10:20:31 -0600
commit51d843ea6761a0570bff1d5f594970841ea785ae (patch)
tree96d3d4fe3cf5c602a27ea44946ba83979b41f39c /Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml
parentf652530204205572242c981e14d15f5cde2bb94c (diff)
dt-bindings: rtc: Convert imxdi rtc to json-schema
Convert the i.MXDI RTC binding to DT schema format using json-schema Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml')
-rw-r--r--Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml b/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml
new file mode 100644
index 000000000000..06bd737821c1
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/imxdi-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX25 Real Time Clock controller
+
+maintainers:
+ - Roland Stigge <stigge@antcom.de>
+
+properties:
+ compatible:
+ const: fsl,imx25-rtc
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ items:
+ - description: rtc alarm interrupt
+ - description: dryice security violation interrupt
+ minItems: 1
+ maxItems: 2
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+additionalProperties: false
+
+examples:
+ - |
+ rtc@53ffc000 {
+ compatible = "fsl,imx25-rtc";
+ reg = <0x53ffc000 0x4000>;
+ clocks = <&clks 81>;
+ interrupts = <25>, <56>;
+ };