From: Wilken Gottwalt <wilken.gottwalt@posteo.net>
To: linux-kernel@vger.kernel.org
Cc: Ohad Ben-Cohen <ohad@wizery.com>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Baolin Wang <baolin.wang7@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@siol.net>
Subject: [PATCH 1/2] dt-bindings: hwlock: sunxi: add sunxi_hwspinlock documentation
Date: Wed, 18 Nov 2020 11:01:59 +0100 [thread overview]
Message-ID: <57185bb30aa1932976e2276d4d287db7cf0304a0.1605693132.git.wilken.gottwalt@posteo.net> (raw)
In-Reply-To: <cover.1605693132.git.wilken.gottwalt@posteo.net>
Adds documentation on how to use/enable the sunxi_hwspinlock driver.
Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net>
---
.../bindings/hwlock/sunxi-hwspinlock.yaml | 64 +++++++++++++++++++
1 file changed, 64 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 000000000000..773eaa6b33ca
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwlock/sunxi-hwspinlock.yaml
@@ -0,0 +1,64 @@
+# 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 hardware spinlock for Allwinner based SoCs
+
+maintainers:
+ - Wilken Gottwalt <wilken.gottwalt@posteo.net>
+
+properties:
+ compatible:
+ enum:
+ - allwinner,sun8i-hwspinlock
+ - allwinner,sun50i-hwspinlock
+
+ reg: # 0x01C18000 (H2+, H3, H5), 0x03004000 (H6), length 0x400 (max 256 * 32bit)
+ maxItems: 1
+
+ clocks: # phandle to the reference clock
+ maxItems: 1
+
+ clock-names: # name of the bus ("ahb")
+ maxItems: 1
+
+ resets: # phandle to the reset control
+ maxItems: 1
+
+ reset-names: # name of the bus ("ahb")
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+
+additionalProperties: false
+
+examples:
+
+ - |
+ /* H2+ based OrangePi Zero */
+ hwspinlock: hwspinlock@1C18000 {
+ compatible = "allwinner,sun8i-hwspinlock";
+ reg = <0x01c18000 0x400>;
+ clocks = <&ccu CLK_BUS_SPINLOCK>;
+ clock-names = "ahb";
+ resets = <&ccu RST_BUS_SPINLOCK>;
+ reset-names = "ahb";
+ };
+
+ /* H6 based OrangePi 3 */
+ hwspinlock: hwspinlock@3004000 {
+ compatible = "allwinner,sun50i-hwspinlock";
+ reg = <0x03004000 0x400>;
+ clocks = <&ccu CLK_BUS_SPINLOCK>;
+ clock-names = "ahb";
+ resets = <&ccu RST_BUS_SPINLOCK>;
+ reset-names = "ahb";
+ };
--
2.29.2
next prev parent reply other threads:[~2020-11-18 10:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 10:01 [PATCH 0/2] hwspinlock: add sunxi hardware spinlock support Wilken Gottwalt
2020-11-18 10:01 ` Wilken Gottwalt [this message]
2020-11-18 10:02 ` [PATCH 2/2] " Wilken Gottwalt
2020-11-18 15:37 ` Maxime Ripard
2020-11-18 19:36 ` Wilken Gottwalt
2020-11-19 7:15 ` Maxime Ripard
2020-11-19 10:13 ` Wilken Gottwalt
2020-11-20 16:42 ` Maxime Ripard
2020-11-21 12:22 ` fuyao
2020-11-21 16:44 ` Maxime Ripard
2020-11-23 18:32 ` Wilken Gottwalt
2020-11-24 3:35 ` Samuel Holland
2020-11-24 14:28 ` Maxime Ripard
2020-11-26 13:10 ` Wilken Gottwalt
2020-11-22 5:19 ` Bjorn Andersson
2020-11-23 18:17 ` Wilken Gottwalt
2020-11-24 14:54 ` Bjorn Andersson
2020-11-26 13:31 ` Wilken Gottwalt
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=57185bb30aa1932976e2276d4d287db7cf0304a0.1605693132.git.wilken.gottwalt@posteo.net \
--to=wilken.gottwalt@posteo.net \
--cc=baolin.wang7@gmail.com \
--cc=bjorn.andersson@linaro.org \
--cc=jernej.skrabec@siol.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mripard@kernel.org \
--cc=ohad@wizery.com \
--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).