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

dt-bindings: rtc: Convert Allwinner A10 RTC to a schema

The older Allwinner SoCs have an embedded RTC supported in Linux, with a
matching Device Tree binding.

Now that we have the DT validation in place, let's convert the device tree
bindings for that controller over to a YAML schemas.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Maxime Ripard and committed by
Alexandre Belloni
36e63ef3 43390e07

+43 -17
+43
Documentation/devicetree/bindings/rtc/allwinner,sun4i-a10-rtc.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/rtc/allwinner,sun4i-a10-rtc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Allwinner A10 RTC Device Tree Bindings 8 + 9 + allOf: 10 + - $ref: "rtc.yaml#" 11 + 12 + maintainers: 13 + - Chen-Yu Tsai <wens@csie.org> 14 + - Maxime Ripard <maxime.ripard@bootlin.com> 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - allwinner,sun4i-a10-rtc 20 + - allwinner,sun7i-a20-rtc 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + interrupts: 26 + maxItems: 1 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - interrupts 32 + 33 + additionalProperties: false 34 + 35 + examples: 36 + - | 37 + rtc: rtc@1c20d00 { 38 + compatible = "allwinner,sun4i-a10-rtc"; 39 + reg = <0x01c20d00 0x20>; 40 + interrupts = <24>; 41 + }; 42 + 43 + ...
-17
Documentation/devicetree/bindings/rtc/sunxi-rtc.txt
··· 1 - * sun4i/sun7i Real Time Clock 2 - 3 - RTC controller for the Allwinner A10/A20 4 - 5 - Required properties: 6 - - compatible : Should be "allwinner,sun4i-a10-rtc" or "allwinner,sun7i-a20-rtc" 7 - - reg: physical base address of the controller and length of memory mapped 8 - region. 9 - - interrupts: IRQ line for the RTC. 10 - 11 - Example: 12 - 13 - rtc: rtc@1c20d00 { 14 - compatible = "allwinner,sun4i-a10-rtc"; 15 - reg = <0x01c20d00 0x20>; 16 - interrupts = <24>; 17 - };