Skip to content

Commit c3a0ee8

Browse files
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent bbd3e43 commit c3a0ee8

File tree

2 files changed

+51
-21
lines changed

2 files changed

+51
-21
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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 <[email protected]>
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+
};

Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)