Skip to content

Commit f9e784d

Browse files
wgottwaltandersson
authored andcommitted
dt-bindings: hwlock: add sun6i_hwspinlock
Adds documentation on how to use the sun6i_hwspinlock driver for sun6i compatible series SoCs. Reviewed-by: Samuel Holland <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Wilken Gottwalt <[email protected]> Link: https://lore.kernel.org/r/b7a1f5532e0ae474473858055fd9bbabff9e1449.1615713499.git.wilken.gottwalt@posteo.net Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 6efb943 commit f9e784d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwlock/allwinner,sun6i-hwspinlock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: SUN6I hardware spinlock driver for Allwinner sun6i compatible SoCs
8+
9+
maintainers:
10+
- Wilken Gottwalt <[email protected]>
11+
12+
description:
13+
The hardware unit provides semaphores between the ARM cores and the embedded
14+
companion core on the SoC.
15+
16+
properties:
17+
compatible:
18+
const: allwinner,sun6i-a31-hwspinlock
19+
20+
reg:
21+
maxItems: 1
22+
23+
clocks:
24+
maxItems: 1
25+
26+
resets:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- reg
32+
- clocks
33+
- resets
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
hwlock@1c18000 {
40+
compatible = "allwinner,sun6i-a31-hwspinlock";
41+
reg = <0x01c18000 0x1000>;
42+
clocks = <&ccu CLK_BUS_SPINLOCK>;
43+
resets = <&ccu RST_BUS_SPINLOCK>;
44+
};
45+
...

0 commit comments

Comments
 (0)