From patchwork Wed Aug 17 13:14:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 597901 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1492DC28B2B for ; Wed, 17 Aug 2022 13:14:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239741AbiHQNOc (ORCPT ); Wed, 17 Aug 2022 09:14:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239061AbiHQNO1 (ORCPT ); Wed, 17 Aug 2022 09:14:27 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 695DF4B4B5 for ; Wed, 17 Aug 2022 06:14:22 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id by6so13502611ljb.11 for ; Wed, 17 Aug 2022 06:14:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=yr0qSXKWvuCUzSvzydmBZDyY0XaWgq0dxUbMgXS9CA8=; b=k3KB3iqQAItg/j+LVnImlemXiSO6+5rOXuibgEZhbn12A5XeCRZqVLUQvFBWKrMXhL wHGAHLHrOlhviQ94alFATP9K5lSBsusdy6x1vrE35jdTL6xJKAmaGOWXlltOzsEkR7YX 5lLufTeKHRVNoo/gqQOpzCsRDl0SusVXNGOsS3hgZqq3cDMlCr2B946LyDFlhmSR98zS xU/8qbvfQ1ySABSD/TEZ5ZRtZ9KeYY7Ao0pblZMO5owR8G8j62ATyUndWC7mZEDF0Vw5 WLfWRV0Wr2S9LDnpg/d+sq5nLFo+cCvgCu4JiFLkVsllY+CAnf4XR/SGp92Y4VMgXkPn sCeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=yr0qSXKWvuCUzSvzydmBZDyY0XaWgq0dxUbMgXS9CA8=; b=CyxUceqvJMa3mWPHl+L59t8oj8sHtpMCIJPyqY69vKDkxLyeHZwA+UrrzF3itag2NH wZ2eaQCA/QRxbO2TThzfJrN+YwVQSBNsyh9Ooe1Mgaa+MbMa9TKNbZzhGpemjk3HGGhS tX6A0ftap+d/J7baS0IxmcRpWg9Ak5Uif2092Om3ZAzs+VBNHcv996vJ0l6FuGeXZ/Oj FhVmPRt+TGNi6nGmpJNjABXVFtFqPR39DlTg4MIAF1hh59IO5UzGmjTwrnuE27RUEhao VRas4bA0yHXcADvh/gqWN9gY9rwg/4QcB05KRTQx3nDM7xUhVzkjPVkomKhbyKYYYaRt 7k+w== X-Gm-Message-State: ACgBeo1zAFcS/j1GEo4Q9W/BtkTYHC18IWM5lqmeM7J63B5nBSMSpszE guY12YkmZ4Oy1LRYIrmmn8Yn8A== X-Google-Smtp-Source: AA6agR6aNj0wxF+CSoJesSR3A39nwgjWZForctkJ59VdUfdgNIhrnYUDSD1BP5qHHcHuHzPkX5x3Vw== X-Received: by 2002:a2e:6e13:0:b0:25e:87b1:fda8 with SMTP id j19-20020a2e6e13000000b0025e87b1fda8mr7457999ljc.250.1660742060794; Wed, 17 Aug 2022 06:14:20 -0700 (PDT) Received: from krzk-bin.. (d15l54h48cw7vbh-qr4-4.rev.dnainternet.fi. [2001:14bb:ae:539c:1b1c:14b7:109b:ed76]) by smtp.gmail.com with ESMTPSA id k1-20020a2ea261000000b0026182f31aa0sm1411307ljm.1.2022.08.17.06.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 06:14:20 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Lee Jones , Vinod Koul , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RFT PATCH 00/12] ARM/hwlock: qcom: switch TCSR mutex to MMIO Date: Wed, 17 Aug 2022 16:14:03 +0300 Message-Id: <20220817131415.714340-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hi, Switch older Qualcomm SoCs to use MMIO-based method instead of syscon. Not tested on hardware. Please kindly provide tests. Dependency ========== Context in bindings depends on: arm64: dts: qcom: improvements to TCSR mutex in DTS https://lore.kernel.org/linux-devicetree/20220817130342.568396-1-krzysztof.kozlowski@linaro.org/T/#t Best regards, Krzysztof Krzysztof Kozlowski (12): dt-bindings: hwlock: qcom-hwspinlock: add support for MMIO on older SoCs dt-bindings: hwlock: qcom-hwspinlock: correct example indentation dt-bindings: mfd: qcom,tcsr: add MSM8974 hwspinlock: qcom: correct MMIO max register for newer SoCs hwspinlock: qcom: add support for MMIO on older SoCs arm64: dts: qcom: ipq6018: switch TCSR mutex to MMIO arm64: dts: qcom: msm8994: switch TCSR mutex to MMIO ARM: dts: qcom: msm8974: add missing TCSR syscon compatible ARM: dts: qcom: msm8974: split TCSR halt regs out of mutex ARM: dts: qcom: msm8974: switch TCSR mutex to MMIO ARM: dts: qcom: apq8084: switch TCSR mutex to MMIO ARM: dts: qcom: msm8226: switch TCSR mutex to MMIO .../bindings/hwlock/qcom-hwspinlock.yaml | 25 +++++++---- .../devicetree/bindings/mfd/qcom,tcsr.yaml | 1 + .../arm/boot/dts/qcom-apq8074-dragonboard.dts | 2 +- arch/arm/boot/dts/qcom-apq8084.dtsi | 11 ++--- arch/arm/boot/dts/qcom-msm8226.dtsi | 14 ++----- .../qcom-msm8974-lge-nexus5-hammerhead.dts | 2 +- .../dts/qcom-msm8974-sony-xperia-rhine.dtsi | 2 +- arch/arm/boot/dts/qcom-msm8974.dtsi | 25 ++++++----- .../dts/qcom-msm8974pro-fairphone-fp2.dts | 2 +- .../boot/dts/qcom-msm8974pro-samsung-klte.dts | 2 +- ...-msm8974pro-sony-xperia-shinano-castor.dts | 2 +- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 13 ++---- arch/arm64/boot/dts/qcom/msm8994.dtsi | 13 ++---- drivers/hwspinlock/qcom_hwspinlock.c | 42 ++++++++++++++----- 14 files changed, 83 insertions(+), 73 deletions(-)