Skip to content

Commit 8462904

Browse files
Vincent Shihalexandrebelloni
authored andcommitted
dt-bindings: rtc: Add Sunplus RTC json-schema
Add Sunplus RTC json-schema Signed-off-by: Vincent Shih <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fad6cbe commit 8462904

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright (C) Sunplus Co., Ltd. 2021
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/rtc/sunplus,sp7021-rtc.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Sunplus SP7021 Real Time Clock controller
9+
10+
maintainers:
11+
- Vincent Shih <[email protected]>
12+
13+
properties:
14+
compatible:
15+
const: sunplus,sp7021-rtc
16+
17+
reg:
18+
maxItems: 1
19+
20+
reg-names:
21+
items:
22+
- const: rtc
23+
24+
clocks:
25+
maxItems: 1
26+
27+
resets:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
required:
34+
- compatible
35+
- reg
36+
- reg-names
37+
- clocks
38+
- resets
39+
- interrupts
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
#include <dt-bindings/interrupt-controller/irq.h>
46+
47+
rtc: serial@9c003a00 {
48+
compatible = "sunplus,sp7021-rtc";
49+
reg = <0x9c003a00 0x80>;
50+
reg-names = "rtc";
51+
clocks = <&clkc 0x12>;
52+
resets = <&rstc 0x02>;
53+
interrupt-parent = <&intc>;
54+
interrupts = <163 IRQ_TYPE_EDGE_RISING>;
55+
};
56+
...

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18220,6 +18220,7 @@ SUNPLUS RTC DRIVER
1822018220
M: Vincent Shih <[email protected]>
1822118221
1822218222
S: Maintained
18223+
F: Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml
1822318224
F: drivers/rtc/rtc-sunplus.c
1822418225

1822518226
SUPERH

0 commit comments

Comments
 (0)