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

dt-bindings: rtc: pxa-rtc: convert to dtschema

Convert existing binding to dtschema to support validation.

The missing 'reg' and 'interrupts' properties have been added, taking
the 2 supported interrupts into account to fix the example.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240413-rtc_dtschema-v3-3-eff368bcc471@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Javier Carrasco and committed by
Alexandre Belloni
bbd3e436 f8c81d15

+40 -14
+40
Documentation/devicetree/bindings/rtc/marvell,pxa-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/marvell,pxa-rtc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: PXA 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: marvell,pxa-rtc 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + items: 24 + - description: 1 Hz 25 + - description: Alarm 26 + 27 + required: 28 + - compatible 29 + - reg 30 + - interrupts 31 + 32 + unevaluatedProperties: false 33 + 34 + examples: 35 + - | 36 + rtc@40900000 { 37 + compatible = "marvell,pxa-rtc"; 38 + reg = <0x40900000 0x3c>; 39 + interrupts = <30>, <31>; 40 + };
-14
Documentation/devicetree/bindings/rtc/pxa-rtc.txt
··· 1 - * PXA RTC 2 - 3 - PXA specific RTC driver. 4 - 5 - Required properties: 6 - - compatible : Should be "marvell,pxa-rtc" 7 - 8 - Examples: 9 - 10 - rtc@40900000 { 11 - compatible = "marvell,pxa-rtc"; 12 - reg = <0x40900000 0x3c>; 13 - interrupts = <30 31>; 14 - };