From: Nikolay Borisov <nborisov@suse.com>
To: mripard@kernel.org, bjorn.andersson@linaro.org
Cc: devicetree@vger.kernel.org, wens@csie.org, robh+dt@kernel.org,
linux-arm-kernel@lists.infradead.org,
Nikolay Borisov <nborisov@suse.com>
Subject: [PATCH v3] dt-bindings: hwlock: Document A64 hwspinlock bindings
Date: Wed, 12 Feb 2020 13:54:19 +0200 [thread overview]
Message-ID: <20200212115419.29038-1-nborisov@suse.com> (raw)
In-Reply-To: <20200211122624.16484-4-nborisov@suse.com>
Add binding for the hwspinlock found on Allwinner A64 SoC.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
V3: Added #include directive. This makes the patch pass schema validation.
.../allwinner,sun50i-a64-hwspinlock.yaml | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml
diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml
new file mode 100644
index 000000000000..54270c8bb351
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwlock/allwinner,sun50i-a64-hwspinlock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Allwinner A64 SoC Hardware Spinlock bindings
+
+maintainers:
+ - Nikolay Borisov <nborisov@suse.com>
+
+properties:
+ "#hwlock-cells":
+ const: 1
+
+ compatible:
+ const: allwinner,sun50i-a64-hwspinlock
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+required:
+ - "#hwlock-cells"
+ - compatible
+ - reg
+ - clocks
+ - resets
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/sun50i-a64-ccu.h>
+ #include <dt-bindings/reset/sun50i-a64-ccu.h>
+ hwspinlock@1c18000 {
+ compatible = "allwinner,sun50i-a64-hwspinlock";
+ #hwlock-cells = <1>;
+ reg = <0x01c18000 0x1000>;
+ clocks = <&ccu CLK_BUS_SPINLOCK>;
+ resets = <&ccu RST_BUS_SPINLOCK>;
+ };
+
+...
--
2.17.1
next prev parent reply other threads:[~2020-02-12 11:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-11 12:26 [PATCH v2 0/3] Add support for hwspinlock on A64 SoC Nikolay Borisov
2020-02-11 12:26 ` [PATCH v2 1/3] hwspinlock: sunxi: Implement support for Allwinner's " Nikolay Borisov
2020-02-11 12:26 ` [PATCH v2 2/3] arm64: dts: allwinner: a64: Add hwspinlock node Nikolay Borisov
2020-02-11 12:26 ` [PATCH v2 3/3] dt-bindings: hwlock: Document A64 hwspinlock bindings Nikolay Borisov
2020-02-12 2:00 ` Rob Herring
2020-02-12 10:45 ` Nikolay Borisov
2020-02-12 11:54 ` Nikolay Borisov [this message]
2020-02-18 23:05 ` [PATCH v3] " Rob Herring
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=20200212115419.29038-1-nborisov@suse.com \
--to=nborisov@suse.com \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mripard@kernel.org \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).