From: CL Wang <cl634@andestech.com>
To: <cl634@andestech.com>, <alexandre.belloni@bootlin.com>,
<krzk@kernel.org>, <linux-rtc@vger.kernel.org>
Cc: <tim609@andestech.com>
Subject: [PATCH V2 1/2] dt-bindings: rtc: atcrtc100: Add atcrtc100 bindings
Date: Mon, 17 Jun 2024 16:25:06 +0800 [thread overview]
Message-ID: <20240617082507.3968910-2-cl634@andestech.com> (raw)
In-Reply-To: <20240617082507.3968910-1-cl634@andestech.com>
Add YAML bindings for Andes atcrtc100 RTC.
Signed-off-by: CL Wang <cl634@andestech.com>
---
.../bindings/rtc/andes,atcrtc100-rtc.yaml | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/andes,atcrtc100-rtc.yaml
diff --git a/Documentation/devicetree/bindings/rtc/andes,atcrtc100-rtc.yaml b/Documentation/devicetree/bindings/rtc/andes,atcrtc100-rtc.yaml
new file mode 100644
index 000000000000..86cecb30c889
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/andes,atcrtc100-rtc.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/andes,atcrtc100-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Andes, ATCRTC100 on-SoC RTC
+
+allOf:
+ - $ref: rtc.yaml#
+
+maintainers:
+ - CL Wang <cl634@andestech.com>
+
+properties:
+ compatible:
+ enum:
+ - andestech,atcrtc100
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ minItems: 2
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ rtc@f0300000 {
+ compatible = "andestech,atcrtc100";
+ reg = <0xf0300000 0x100>;
+ interrupts = <1>, <2>;
+ };
--
2.34.1
next prev parent reply other threads:[~2024-06-17 8:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-17 8:25 [PATCH V2 0/2] Add andes atcrtc100 RTC driver CL Wang
2024-06-17 8:25 ` CL Wang [this message]
2024-06-17 8:52 ` [PATCH V2 1/2] dt-bindings: rtc: atcrtc100: Add atcrtc100 bindings Krzysztof Kozlowski
2024-06-17 8:55 ` Krzysztof Kozlowski
2024-06-17 8:25 ` [PATCH V2 2/2] rtc: atcrtc100: Add andes atcrtc100 RTC driver CL Wang
2024-06-17 8:54 ` Krzysztof Kozlowski
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=20240617082507.3968910-2-cl634@andestech.com \
--to=cl634@andestech.com \
--cc=alexandre.belloni@bootlin.com \
--cc=krzk@kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=tim609@andestech.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