xref: /linux/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.yaml (revision a1c3be890440a1769ed6f822376a3e3ab0d42994)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwlock/st,stm32-hwspinlock.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STM32 Hardware Spinlock bindings
8
9maintainers:
10  - Benjamin Gaignard <benjamin.gaignard@st.com>
11  - Fabien Dessenne <fabien.dessenne@st.com>
12
13properties:
14  "#hwlock-cells":
15    const: 1
16
17  compatible:
18    const: st,stm32-hwspinlock
19
20  reg:
21    maxItems: 1
22
23  clocks:
24    maxItems: 1
25
26  clock-names:
27    items:
28      - const: hsem
29
30required:
31  - "#hwlock-cells"
32  - compatible
33  - reg
34  - clocks
35  - clock-names
36
37additionalProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/clock/stm32mp1-clks.h>
42    hwspinlock@4c000000 {
43        compatible = "st,stm32-hwspinlock";
44        #hwlock-cells = <1>;
45        reg = <0x4c000000 0x400>;
46        clocks = <&rcc HSEM>;
47        clock-names = "hsem";
48    };
49
50...
51