diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-03-24 13:11:04 -0400 |
---|---|---|
committer | Ohad Ben-Cohen <ohad@wizery.com> | 2015-05-02 03:17:53 -0400 |
commit | 5b5711f0f1aff1b25ee48da279de4f0c202f7a68 (patch) | |
tree | 6a5dec5e4858667fb478ce6810755b99ef189793 | |
parent | 65bd4341d61678494ea14994d0d7df73644ca014 (diff) |
DT: hwspinlock: Add binding documentation for Qualcomm hwmutex
Add binding documentation for the Qualcomm Hardware Mutex.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: Kumar Gala <galak@codeaurora.org>
Reviewed-by: Andy Gross <agross@codeaurora.org>
Reviewed-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
-rw-r--r-- | Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt new file mode 100644 index 000000000000..4563f524556b --- /dev/null +++ b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt | |||
@@ -0,0 +1,39 @@ | |||
1 | Qualcomm Hardware Mutex Block: | ||
2 | |||
3 | The hardware block provides mutexes utilized between different processors on | ||
4 | the SoC as part of the communication protocol used by these processors. | ||
5 | |||
6 | - compatible: | ||
7 | Usage: required | ||
8 | Value type: <string> | ||
9 | Definition: must be one of: | ||
10 | "qcom,sfpb-mutex", | ||
11 | "qcom,tcsr-mutex" | ||
12 | |||
13 | - syscon: | ||
14 | Usage: required | ||
15 | Value type: <prop-encoded-array> | ||
16 | Definition: one cell containing: | ||
17 | syscon phandle | ||
18 | offset of the hwmutex block within the syscon | ||
19 | stride of the hwmutex registers | ||
20 | |||
21 | - #hwlock-cells: | ||
22 | Usage: required | ||
23 | Value type: <u32> | ||
24 | Definition: must be 1, the specified cell represent the lock id | ||
25 | (hwlock standard property, see hwlock.txt) | ||
26 | |||
27 | Example: | ||
28 | |||
29 | tcsr_mutex_block: syscon@fd484000 { | ||
30 | compatible = "syscon"; | ||
31 | reg = <0xfd484000 0x2000>; | ||
32 | }; | ||
33 | |||
34 | hwlock@fd484000 { | ||
35 | compatible = "qcom,tcsr-mutex"; | ||
36 | syscon = <&tcsr_mutex_block 0 0x80>; | ||
37 | |||
38 | #hwlock-cells = <1>; | ||
39 | }; | ||