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

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

Convert existing binding to dtschema to support validation and
add the undocumented compatible 'fsl,imx23-rtc'.

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

authored by

Javier Carrasco and committed by
Alexandre Belloni
c3a0ee85 bbd3e436

+51 -21
+51
Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-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/fsl,stmp3xxx-rtc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMP3xxx/i.MX28 Time Clock Controller 8 + 9 + maintainers: 10 + - Javier Carrasco <javier.carrasco.cruz@gmail.com> 11 + 12 + allOf: 13 + - $ref: rtc.yaml# 14 + 15 + properties: 16 + compatible: 17 + oneOf: 18 + - items: 19 + - enum: 20 + - fsl,imx28-rtc 21 + - fsl,imx23-rtc 22 + - const: fsl,stmp3xxx-rtc 23 + - const: fsl,stmp3xxx-rtc 24 + 25 + reg: 26 + maxItems: 1 27 + 28 + interrupts: 29 + maxItems: 1 30 + 31 + stmp,crystal-freq: 32 + description: 33 + Override crystal frequency as determined from fuse bits. 34 + Use <0> for "no crystal". 35 + $ref: /schemas/types.yaml#/definitions/uint32 36 + enum: [0, 32000, 32768] 37 + 38 + required: 39 + - compatible 40 + - reg 41 + - interrupts 42 + 43 + unevaluatedProperties: false 44 + 45 + examples: 46 + - | 47 + rtc@80056000 { 48 + compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc"; 49 + reg = <0x80056000 2000>; 50 + interrupts = <29>; 51 + };
-21
Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt
··· 1 - * STMP3xxx/i.MX28 Time Clock controller 2 - 3 - Required properties: 4 - - compatible: should be one of the following. 5 - * "fsl,stmp3xxx-rtc" 6 - - reg: physical base address of the controller and length of memory mapped 7 - region. 8 - - interrupts: rtc alarm interrupt 9 - 10 - Optional properties: 11 - - stmp,crystal-freq: override crystal frequency as determined from fuse bits. 12 - Only <32000> and <32768> are possible for the hardware. Use <0> for 13 - "no crystal". 14 - 15 - Example: 16 - 17 - rtc@80056000 { 18 - compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc"; 19 - reg = <0x80056000 2000>; 20 - interrupts = <29>; 21 - };