Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anson Huang and committed by
Rob Herring
51d843ea f6525302

+44 -20
-20
Documentation/devicetree/bindings/rtc/imxdi-rtc.txt
··· 1 - * i.MX25 Real Time Clock controller 2 - 3 - Required properties: 4 - - compatible: should be: "fsl,imx25-rtc" 5 - - reg: physical base address of the controller and length of memory mapped 6 - region. 7 - - clocks: should contain the phandle for the rtc clock 8 - - interrupts: rtc alarm interrupt 9 - 10 - Optional properties: 11 - - interrupts: dryice security violation interrupt (second entry) 12 - 13 - Example: 14 - 15 - rtc@53ffc000 { 16 - compatible = "fsl,imx25-rtc"; 17 - reg = <0x53ffc000 0x4000>; 18 - clocks = <&clks 81>; 19 - interrupts = <25 56>; 20 - };
+44
Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/rtc/imxdi-rtc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: i.MX25 Real Time Clock controller 8 + 9 + maintainers: 10 + - Roland Stigge <stigge@antcom.de> 11 + 12 + properties: 13 + compatible: 14 + const: fsl,imx25-rtc 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + items: 21 + - description: rtc alarm interrupt 22 + - description: dryice security violation interrupt 23 + minItems: 1 24 + maxItems: 2 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - interrupts 33 + - clocks 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + rtc@53ffc000 { 40 + compatible = "fsl,imx25-rtc"; 41 + reg = <0x53ffc000 0x4000>; 42 + clocks = <&clks 81>; 43 + interrupts = <25>, <56>; 44 + };