mbox series

[v2,0/4] hwspinlock: qcom: Allow dropping the intermediate TCSR mutex syscon

Message ID 20200622075956.171058-1-bjorn.andersson@linaro.org
Headers show
Series hwspinlock: qcom: Allow dropping the intermediate TCSR mutex syscon | expand

Message

Bjorn Andersson June 22, 2020, 7:59 a.m. UTC
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 and the implementation to allow the TCSR mutex to be represented
without an intermediate syscon node.

Bjorn Andersson (4):
  dt-bindings: hwlock: qcom: Migrate binding to YAML
  dt-bindings: hwlock: qcom: Allow device on mmio bus
  hwspinlock: qcom: Allow mmio usage in addition to syscon
  arm64: dts: qcom: sm8250: Drop tcsr_mutex syscon

 .../bindings/hwlock/qcom-hwspinlock.txt       | 39 -----------
 .../bindings/hwlock/qcom-hwspinlock.yaml      | 65 +++++++++++++++++
 arch/arm64/boot/dts/qcom/sm8250.dtsi          | 17 ++---
 drivers/hwspinlock/qcom_hwspinlock.c          | 70 ++++++++++++++-----
 4 files changed, 125 insertions(+), 66 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt
 create mode 100644 Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml

Comments

Rob Herring July 14, 2020, 2:10 a.m. UTC | #1
On Mon, 22 Jun 2020 00:59:54 -0700, Bjorn Andersson wrote:
> 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>

> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

> ---

> 

> Changes since v1:

> - None

> 

>  .../bindings/hwlock/qcom-hwspinlock.yaml         | 16 +++++++++++++++-

>  1 file changed, 15 insertions(+), 1 deletion(-)

> 


Reviewed-by: Rob Herring <robh@kernel.org>