From: fuyao@allwinnertech.com
To: mripard@kernel.org, wens@csie.org,
linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: fuyao <fuyao@allwinnertech.com>
Subject: [PATCH 1/2] dt-bindings: hwlock: add sunxi hwlock
Date: Thu, 19 Nov 2020 14:44:52 +0800 [thread overview]
Message-ID: <8f7e10853466867edafc3dc3059250fd15b8cbdb.1605767679.git.fuyao@allwinnertech.com> (raw)
In-Reply-To: <cover.1605767679.git.fuyao@allwinnertech.com>
From: fuyao <fuyao@allwinnertech.com>
SUNXI hwspinlock binding DT schema format
Signed-off-by: fuyao <fuyao@allwinnertech.com>
---
.../bindings/hwlock/sunxi,hwspinlock.yaml | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwlock/sunxi,hwspinlock.yaml
diff --git a/Documentation/devicetree/bindings/hwlock/sunxi,hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/sunxi,hwspinlock.yaml
new file mode 100644
index 0000000000000..68ce93b6d2bcb
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwlock/sunxi,hwspinlock.yaml
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwlock/sunxi,hwspinlock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SUNXI HwSpinlock for SUNXI
+
+maintainers:
+ - fuyao <fuyao@allwinnertech.com>
+
+properties:
+ compatible:
+ enum:
+ - allwinner,h3-hwspinlock, # for h3-hwspinlock
+ - allwinner,h6-hwspinlock, # for h6-hwspinlock
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - resets
+
+additionalProperties: false
+
+examples:
+
+ - |
+ hwspinlock: spinlock@1c17000 {
+ compatible = "allwinner,h3-hwspinlock";
+ reg = <0x0 0x01c17000 0x0 0x1000>;
+ clocks = <&ccu CLK_BUS_SPINLOCK>;
+ resets = <&ccu RST_BUS_SPINLOCK>;
+ };
+
+ - |
+ hwspinlock: spinlock@3004000 {
+ compatible = "allwinner,h6-hwspinlock";
+ reg = <0x0 0x03004000 0x0 0x1000>;
+ clocks = <&ccu CLK_BUS_SPINLOCK>;
+ resets = <&ccu RST_BUS_SPINLOCK>;
+ };
+
--
2.29.2
next prev parent reply other threads:[~2020-11-19 6:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 6:44 [PATCH 0/2] introduce sunxi hwspinlock fuyao
2020-11-19 6:44 ` fuyao [this message]
2020-11-19 6:44 ` [PATCH 2/2] hwspinlock: add SUNXI implementation fuyao
2020-11-21 4:01 ` Bjorn Andersson
2020-11-21 14:33 ` fuyao
2020-11-20 16:07 ` [PATCH 0/2] introduce sunxi hwspinlock Maxime Ripard
2020-11-21 14:08 ` fuyao
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=8f7e10853466867edafc3dc3059250fd15b8cbdb.1605767679.git.fuyao@allwinnertech.com \
--to=fuyao@allwinnertech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mripard@kernel.org \
--cc=wens@csie.org \
/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®