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

dt-bindings: rtc: Convert MXC RTC to json-schema

Convert the MXC RTC binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
b82f8cc7 37d1e946

+57 -26
-26
Documentation/devicetree/bindings/rtc/rtc-mxc.txt
··· 1 - * Real Time Clock of the i.MX SoCs 2 - 3 - RTC controller for the i.MX SoCs 4 - 5 - Required properties: 6 - - compatible: Should be "fsl,imx1-rtc" or "fsl,imx21-rtc". 7 - - reg: physical base address of the controller and length of memory mapped 8 - region. 9 - - interrupts: IRQ line for the RTC. 10 - - clocks: should contain two entries: 11 - * one for the input reference 12 - * one for the the SoC RTC 13 - - clock-names: should contain: 14 - * "ref" for the input reference clock 15 - * "ipg" for the SoC RTC clock 16 - 17 - Example: 18 - 19 - rtc@10007000 { 20 - compatible = "fsl,imx21-rtc"; 21 - reg = <0x10007000 0x1000>; 22 - interrupts = <22>; 23 - clocks = <&clks IMX27_CLK_CKIL>, 24 - <&clks IMX27_CLK_RTC_IPG_GATE>; 25 - clock-names = "ref", "ipg"; 26 - };
+57
Documentation/devicetree/bindings/rtc/rtc-mxc.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/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 <tremyfr@gmail.com> 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - fsl,imx1-rtc 19 + - fsl,imx21-rtc 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + clocks: 28 + items: 29 + - description: input reference 30 + - description: the SoC RTC clock 31 + 32 + clock-names: 33 + items: 34 + - const: ref 35 + - const: ipg 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - interrupts 41 + - clocks 42 + - clock-names 43 + 44 + additionalProperties: false 45 + 46 + examples: 47 + - | 48 + #include <dt-bindings/clock/imx27-clock.h> 49 + 50 + rtc@10007000 { 51 + compatible = "fsl,imx21-rtc"; 52 + reg = <0x10007000 0x1000>; 53 + interrupts = <22>; 54 + clocks = <&clks IMX27_CLK_CKIL>, 55 + <&clks IMX27_CLK_RTC_IPG_GATE>; 56 + clock-names = "ref", "ipg"; 57 + };