Skip to content

Commit

Permalink
dt-bindings: hwlock: qcom: Allow device on mmio bus
Browse files Browse the repository at this point in the history
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: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200622075956.171058-3-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
Bjorn Andersson committed Jul 14, 2020
1 parent a7541de commit d6a9f0c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ properties:
- qcom,sfpb-mutex
- qcom,tcsr-mutex

reg:
maxItems: 1

'#hwlock-cells':
const: 1

Expand All @@ -31,7 +34,12 @@ properties:
required:
- compatible
- '#hwlock-cells'
- syscon

oneOf:
- required:
- reg
- required:
- syscon

additionalProperties: false

Expand All @@ -46,6 +54,12 @@ examples:
compatible = "qcom,tcsr-mutex";
syscon = <&tcsr_mutex_block 0 0x80>;
#hwlock-cells = <1>;
};
- |
tcsr_mutex: hwlock@1f40000 {
compatible = "qcom,tcsr-mutex";
reg = <0x01f40000 0x40000>;
#hwlock-cells = <1>;
};
...

0 comments on commit d6a9f0c

Please sign in to comment.