Skip to content

Commit 6c9e3e8

Browse files
benjamingaignardandersson
authored andcommitted
dt-bindings: hwlock: Document STM32 hwspinlock bindings
Add bindings for STM32 hardware spinlock device Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
1 parent 6510223 commit 6c9e3e8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
STM32 Hardware Spinlock Device Binding
2+
-------------------------------------
3+
4+
Required properties :
5+
- compatible : should be "st,stm32-hwspinlock".
6+
- reg : the register address of hwspinlock.
7+
- #hwlock-cells : hwlock users only use the hwlock id to represent a specific
8+
hwlock, so the number of cells should be <1> here.
9+
- clock-names : Must contain "hsem".
10+
- clocks : Must contain a phandle entry for the clock in clock-names, see the
11+
common clock bindings.
12+
13+
Please look at the generic hwlock binding for usage information for consumers,
14+
"Documentation/devicetree/bindings/hwlock/hwlock.txt"
15+
16+
Example of hwlock provider:
17+
hwspinlock@4c000000 {
18+
compatible = "st,stm32-hwspinlock";
19+
#hwlock-cells = <1>;
20+
reg = <0x4c000000 0x400>;
21+
clocks = <&rcc HSEM>;
22+
clock-names = "hsem";
23+
};

0 commit comments

Comments
 (0)