Commit d6a9f0c8 authored by Bjorn Andersson's avatar Bjorn Andersson

dt-bindings: hwlock: qcom: Allow device on mmio bus

In modern Qualcomm platforms the mutex region of the TCSR is forked off
into its own block, all with a offset of 0 and stride of 4096, and in
some of these platforms no other registers in this region is accessed
from Linux.

Update the binding to allow the hardware block to be described directly
on the mmio bus, in addition to allowing the existing syscon based
definition for backwards compatibility.
Reviewed-by: default avatarVinod Koul <vkoul@kernel.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200622075956.171058-3-bjorn.andersson@linaro.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent a7541de9
...@@ -19,6 +19,9 @@ properties: ...@@ -19,6 +19,9 @@ properties:
- qcom,sfpb-mutex - qcom,sfpb-mutex
- qcom,tcsr-mutex - qcom,tcsr-mutex
reg:
maxItems: 1
'#hwlock-cells': '#hwlock-cells':
const: 1 const: 1
...@@ -31,6 +34,11 @@ properties: ...@@ -31,6 +34,11 @@ properties:
required: required:
- compatible - compatible
- '#hwlock-cells' - '#hwlock-cells'
oneOf:
- required:
- reg
- required:
- syscon - syscon
additionalProperties: false additionalProperties: false
...@@ -46,6 +54,12 @@ examples: ...@@ -46,6 +54,12 @@ examples:
compatible = "qcom,tcsr-mutex"; compatible = "qcom,tcsr-mutex";
syscon = <&tcsr_mutex_block 0 0x80>; syscon = <&tcsr_mutex_block 0 0x80>;
#hwlock-cells = <1>;
};
- |
tcsr_mutex: hwlock@1f40000 {
compatible = "qcom,tcsr-mutex";
reg = <0x01f40000 0x40000>;
#hwlock-cells = <1>; #hwlock-cells = <1>;
}; };
... ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment