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

dt-bindings: rtc: alphascale,asm9260-rtc: convert to dtschema

Convert existing binding to dtschema to support validation.

This is a direct conversion with no additions.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240326-rtc-yaml-v3-2-caa430ecace7@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Javier Carrasco and committed by
Alexandre Belloni
432008d2 c3c50e7d

+50 -19
-19
Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.txt
··· 1 - * Alphascale asm9260 SoC Real Time Clock 2 - 3 - Required properties: 4 - - compatible: Should be "alphascale,asm9260-rtc" 5 - - reg: Physical base address of the controller and length 6 - of memory mapped region. 7 - - interrupts: IRQ line for the RTC. 8 - - clocks: Reference to the clock entry. 9 - - clock-names: should contain: 10 - * "ahb" for the SoC RTC clock 11 - 12 - Example: 13 - rtc0: rtc@800a0000 { 14 - compatible = "alphascale,asm9260-rtc"; 15 - reg = <0x800a0000 0x100>; 16 - clocks = <&acc CLKID_AHB_RTC>; 17 - clock-names = "ahb"; 18 - interrupts = <2>; 19 - };
+50
Documentation/devicetree/bindings/rtc/alphascale,asm9260-rtc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/rtc/alphascale,asm9260-rtc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Alphascale asm9260 SoC Real Time Clock 8 + 9 + maintainers: 10 + - Javier Carrasco <javier.carrasco.cruz@gmail.com> 11 + 12 + allOf: 13 + - $ref: rtc.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: alphascale,asm9260-rtc 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + clocks: 23 + maxItems: 1 24 + 25 + clock-names: 26 + const: ahb 27 + 28 + interrupts: 29 + maxItems: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - clocks 35 + - clock-names 36 + - interrupts 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/clock/alphascale,asm9260.h> 43 + 44 + rtc@800a0000 { 45 + compatible = "alphascale,asm9260-rtc"; 46 + reg = <0x800a0000 0x100>; 47 + clocks = <&acc CLKID_AHB_RTC>; 48 + clock-names = "ahb"; 49 + interrupts = <2>; 50 + };