Commit 51d843ea authored by Anson Huang's avatar Anson Huang Committed by Rob Herring
Browse files

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: default avatarAnson Huang <Anson.Huang@nxp.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent f6525302
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
* i.MX25 Real Time Clock controller

Required properties:
- compatible: should be: "fsl,imx25-rtc"
- reg: physical base address of the controller and length of memory mapped
  region.
- clocks: should contain the phandle for the rtc clock
- interrupts: rtc alarm interrupt

Optional properties:
- interrupts: dryice security violation interrupt (second entry)

Example:

rtc@53ffc000 {
	compatible = "fsl,imx25-rtc";
	reg = <0x53ffc000 0x4000>;
	clocks = <&clks 81>;
	interrupts = <25 56>;
};
+44 −0
Original line number Diff line number Diff line
# 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>;
    };