xref: /linux/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml (revision 8a922b7728a93d837954315c98b84f6b78de0c4f)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwlock/qcom-hwspinlock.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Hardware Mutex Block
8
9maintainers:
10  - Bjorn Andersson <bjorn.andersson@linaro.org>
11
12description:
13  The hardware block provides mutexes utilized between different processors on
14  the SoC as part of the communication protocol used by these processors.
15
16properties:
17  compatible:
18    oneOf:
19      - enum:
20          - qcom,sfpb-mutex
21          - qcom,tcsr-mutex
22      - items:
23          - enum:
24              - qcom,apq8084-tcsr-mutex
25              - qcom,ipq6018-tcsr-mutex
26              - qcom,msm8226-tcsr-mutex
27              - qcom,msm8994-tcsr-mutex
28          - const: qcom,tcsr-mutex
29      - items:
30          - enum:
31              - qcom,msm8974-tcsr-mutex
32          - const: qcom,tcsr-mutex
33          - const: syscon
34
35  reg:
36    maxItems: 1
37
38  '#hwlock-cells':
39    const: 1
40
41required:
42  - compatible
43  - reg
44  - '#hwlock-cells'
45
46additionalProperties: false
47
48examples:
49  - |
50    hwlock@1f40000 {
51        compatible = "qcom,tcsr-mutex";
52        reg = <0x01f40000 0x40000>;
53        #hwlock-cells = <1>;
54    };
55...
56