From: Vincent Shih <vincent.sunplus@gmail.com>
To: a.zummo@towertech.it, alexandre.belloni@bootlin.com,
p.zabel@pengutronix.de, linux-kernel@vger.kernel.org,
linux-rtc@vger.kernel.org, robh+dt@kernel.org,
devicetree@vger.kernel.org, wells.lu@sunplus.com
Cc: Vincent Shih <vincent.sunplus@gamil.com>
Subject: [PATCH v3 2/2] dt-bindings: rtc: Add Sunplus RTC json-schema
Date: Fri, 3 Dec 2021 15:46:19 +0800 [thread overview]
Message-ID: <1638517579-10316-3-git-send-email-vincent.sunplus@gamil.com> (raw)
In-Reply-To: <1638517579-10316-1-git-send-email-vincent.sunplus@gamil.com>
Add Sunplus RTC json-schema
Signed-off-by: Vincent Shih <vincent.sunplus@gamil.com>
---
Changes in v3:
- Addressed the comments from Mr. Rob Herring
.../bindings/rtc/sunplus,sp7021-rtc.yaml | 56 ++++++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 57 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml
diff --git a/Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml b/Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml
new file mode 100644
index 0000000..fd1b3e7
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (C) Sunplus Co., Ltd. 2021
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/sunplus,sp7021-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sunplus SP7021 Real Time Clock controller
+
+maintainers:
+ - Vincent Shih <vincent.sunplus@gmail.com>
+
+properties:
+ compatible:
+ const: sunplus,sp7021-rtc
+
+ reg:
+ maxItems: 1
+
+ reg-names:
+ items:
+ - const: rtc
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - clocks
+ - resets
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ rtc: serial@9c003a00 {
+ compatible = "sunplus,sp7021-rtc";
+ reg = <0x9c003a00 0x80>;
+ reg-names = "rtc";
+ clocks = <&clkc 0x12>;
+ resets = <&rstc 0x02>;
+ interrupt-parent = <&intc>;
+ interrupts = <163 IRQ_TYPE_EDGE_RISING>;
+ };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 8c86f28..c6dd228 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -17949,6 +17949,7 @@ SUNPLUS RTC DRIVER
M: Vincent Shih <vincent.sunplus@gmail.com>
L: linux-rtc@vger.kernel.org
S: Maintained
+F: Documentation/devicetree/bindings/rtc/sunplus,sp7021-rtc.yaml
F: drivers/rtc/rtc-sunplus.c
SUPERH
--
2.7.4
next prev parent reply other threads:[~2021-12-03 7:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 7:46 [PATCH v3 0/2] Add driver for RTC in Sunplus SP7021 Soc Vincent Shih
2021-12-03 7:46 ` [PATCH v3 1/2] rtc: Add driver for RTC in Sunplus SP7021 Vincent Shih
2021-12-03 7:46 ` Vincent Shih [this message]
2021-12-10 22:15 ` [PATCH v3 2/2] dt-bindings: rtc: Add Sunplus RTC json-schema Rob Herring
2022-01-05 0:05 ` [PATCH v3 0/2] Add driver for RTC in Sunplus SP7021 Soc Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1638517579-10316-3-git-send-email-vincent.sunplus@gamil.com \
--to=vincent.sunplus@gmail.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=vincent.sunplus@gamil.com \
--cc=wells.lu@sunplus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®