Skip to content

Commit c3c50e7

Browse files
dt-bindings: rtc: armada-380-rtc: convert to dtschema
Convert existing binding to dtschema to support validation. This is a direct conversion with no additions. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 61c86d1 commit c3c50e7

File tree

2 files changed

+51
-24
lines changed

2 files changed

+51
-24
lines changed

Documentation/devicetree/bindings/rtc/armada-380-rtc.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.
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 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/marvell,armada-380-rtc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: RTC controller for the Armada 38x, 7K and 8K SoCs
8+
9+
maintainers:
10+
- Javier Carrasco <[email protected]>
11+
12+
allOf:
13+
- $ref: rtc.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- marvell,armada-380-rtc
19+
- marvell,armada-8k-rtc
20+
21+
reg:
22+
items:
23+
- description: RTC base address size
24+
- description: Base address and size of SoC related registers
25+
26+
reg-names:
27+
items:
28+
- const: rtc
29+
- const: rtc-soc
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
required:
35+
- compatible
36+
- reg
37+
- reg-names
38+
- interrupts
39+
40+
unevaluatedProperties: false
41+
42+
examples:
43+
- |
44+
#include <dt-bindings/interrupt-controller/arm-gic.h>
45+
46+
rtc@a3800 {
47+
compatible = "marvell,armada-380-rtc";
48+
reg = <0xa3800 0x20>, <0x184a0 0x0c>;
49+
reg-names = "rtc", "rtc-soc";
50+
interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
51+
};

0 commit comments

Comments
 (0)