diff mbox series

[v4,1/3] dt-bindings: hwlock: qcom-hwspinlock: add syscon to MSM8974

Message ID 20220920150414.637634-2-krzysztof.kozlowski@linaro.org (mailing list archive)
State Accepted
Headers show
Series ARM/hwlock: qcom: switch TCSR mutex to MMIO (msm8974) | expand

Commit Message

Krzysztof Kozlowski Sept. 20, 2022, 3:04 p.m. UTC
The TCSR_MUTEX region contains two set of registers: mutex and halt.
Add syscon, so the TCSR mutex device (hwspinlock) can use MMIO based
method and in the same time share regmap with other devices for the halt
regs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/hwlock/qcom-hwspinlock.yaml         | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Rob Herring (Arm) Sept. 26, 2022, 7:49 p.m. UTC | #1
On Tue, 20 Sep 2022 17:04:12 +0200, Krzysztof Kozlowski wrote:
> The TCSR_MUTEX region contains two set of registers: mutex and halt.
> Add syscon, so the TCSR mutex device (hwspinlock) can use MMIO based
> method and in the same time share regmap with other devices for the halt
> regs.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/hwlock/qcom-hwspinlock.yaml         | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml
index 1a3adf75934b..ee2726149cf3 100644
--- a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml
+++ b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml
@@ -24,9 +24,13 @@  properties:
               - qcom,apq8084-tcsr-mutex
               - qcom,ipq6018-tcsr-mutex
               - qcom,msm8226-tcsr-mutex
-              - qcom,msm8974-tcsr-mutex
               - qcom,msm8994-tcsr-mutex
           - const: qcom,tcsr-mutex
+      - items:
+          - enum:
+              - qcom,msm8974-tcsr-mutex
+          - const: qcom,tcsr-mutex
+          - const: syscon
 
   reg:
     maxItems: 1