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-a31-hwspinlock.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: SUN6I hardware spinlock driver for Allwinner sun6i compatible SoCs
8
9maintainers:
10  - Wilken Gottwalt <wilken.gottwalt@posteo.net>
11
12description:
13  The hardware unit provides semaphores between the ARM cores and the embedded
14  companion core on the SoC.
15
16properties:
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
29required:
30  - compatible
31  - reg
32  - clocks
33  - resets
34
35additionalProperties: false
36
37examples:
38  - |
39    #include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
40    #include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
41
42    hwlock@1c18000 {
43        compatible = "allwinner,sun6i-a31-hwspinlock";
44        reg = <0x01c18000 0x1000>;
45        clocks = <&ccu CLK_BUS_SPINLOCK>;
46        resets = <&ccu RST_BUS_SPINLOCK>;
47    };
48...
49