Skip to content

Commit bbd3e43

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

File tree

2 files changed

+40
-14
lines changed

2 files changed

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

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

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

0 commit comments

Comments
 (0)