Skip to content

Commit 800b55b

Browse files
superna9999alexandrebelloni
authored andcommitted
dt-bindings: rtc: convert rtc-meson.txt to dt-schema
Convert the Amlogic Meson6 RTC bindings to dt-schema. Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/20221117-b4-amlogic-bindings-convert-v1-6-3f025599b968@linaro.org Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 90cd5c8 commit 800b55b

File tree

2 files changed

+62
-35
lines changed

2 files changed

+62
-35
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/amlogic,meson6-rtc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amlogic Meson6, Meson8, Meson8b and Meson8m2 RTC
8+
9+
maintainers:
10+
- Neil Armstrong <[email protected]>
11+
- Martin Blumenstingl <[email protected]>
12+
13+
allOf:
14+
- $ref: rtc.yaml#
15+
- $ref: /schemas/nvmem/nvmem.yaml#
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- amlogic,meson6-rtc
21+
- amlogic,meson8-rtc
22+
- amlogic,meson8b-rtc
23+
- amlogic,meson8m2-rtc
24+
25+
reg:
26+
maxItems: 1
27+
28+
clocks:
29+
maxItems: 1
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
resets:
35+
maxItems: 1
36+
37+
vdd-supply: true
38+
39+
required:
40+
- compatible
41+
- reg
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
#include <dt-bindings/interrupt-controller/irq.h>
48+
#include <dt-bindings/interrupt-controller/arm-gic.h>
49+
rtc: rtc@740 {
50+
compatible = "amlogic,meson6-rtc";
51+
reg = <0x740 0x14>;
52+
interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
53+
clocks = <&rtc32k_xtal>;
54+
vdd-supply = <&rtc_vdd>;
55+
resets = <&reset_rtc>;
56+
#address-cells = <1>;
57+
#size-cells = <1>;
58+
59+
mac@0 {
60+
reg = <0 6>;
61+
};
62+
};

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

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

0 commit comments

Comments
 (0)