From patchwork Wed Aug 17 14:58:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 597892 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 78363C25B08 for ; Wed, 17 Aug 2022 14:59:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240525AbiHQO7R (ORCPT ); Wed, 17 Aug 2022 10:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240499AbiHQO7P (ORCPT ); Wed, 17 Aug 2022 10:59:15 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AB1C9C213 for ; Wed, 17 Aug 2022 07:59:07 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id a9so19306198lfm.12 for ; Wed, 17 Aug 2022 07:59:07 -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=6warrciUNU85C9TsNI3LBxybGM3RjF+5FJPoKTjBVVk=; b=U43/iMTR0rTmxauRd/OTZ0MhgCiRa6a52tfzpcWSkRhzluzYk6R79Fk4KYqRaU/eCv pKS32LObQ+PXm9UrEX7fRXkfD3Kupqk3sErTYVaSvOeYkHYrQi0GCgNfzJYLdggre7dy 861ky5etHjLEjEhaM46WFZG5U8ME+0AxjF+FLfyglZ7IBR9ZgqpwTpLiL8cJY+FRU6l2 nFnsiQ6duJRsKUiuZ0jgXBqUN3aDYaSbKw6KAixqct11phPmsNDFNbmm4g8J7R4fI0Fd G/Can3efKfuOviwV+6p1awe6Ig/D45SpLE41sh2kQchjUbQojBpP/bszLtl0A89kGZl1 vhOw== 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=6warrciUNU85C9TsNI3LBxybGM3RjF+5FJPoKTjBVVk=; b=3dXxKW6IVnJqafxlfFGMY8LmePp0S786g65N9neu9qfij1zR767JrsKzxn4uLRoFOf QHxrs4+aEmAunCQ4tbtVo1Qp+VmEypwfDz85MeI3lkaL3J/B9CkJxiMhtpMo6TJ392J6 UdZwipOitX+cEnAloW6edu1II8iESTs27csvQVHfC6Rb8+l83wezSgOmbMRwCsgnP7XY CeYFacoTyiYdxNXK6P8tO/mZ0b8anBEM4pgrPNzGnl5h+4ZMmoZoJ1zcdw6X+3+cm8h4 rTZXziNfW9HFBjLmho4TS+3h+mdWyMdNLNOPfvtratbZvZxwy8P9ZRxH+Svo23t4khRi 4nhw== X-Gm-Message-State: ACgBeo0vBSmqGIGElvhmzhZLMe5GSb7c40+W7Z4SPNiylMjmy9vmnPbf rrykK0qSybxqrfST8ZEnUcUVpA== X-Google-Smtp-Source: AA6agR5JPmEBZnNXL5d7dkr4KJ9rezRcmrBRKBJ9C6xEHAvfjjhaAOwqgRR2UcsUHxSsSJNxexQytQ== X-Received: by 2002:ac2:50cf:0:b0:48a:f4ef:788b with SMTP id h15-20020ac250cf000000b0048af4ef788bmr8537207lfm.527.1660748345006; Wed, 17 Aug 2022 07:59:05 -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 u16-20020a05651c131000b0025fdf9eec1dsm2250454lja.111.2022.08.17.07.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 07:59:04 -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 v2 00/17] ARM/hwlock: qcom: switch TCSR mutex to MMIO Date: Wed, 17 Aug 2022 17:58:44 +0300 Message-Id: <20220817145901.865977-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. Changes since v1 ================ 1. Use existing qcom,tcsr-msm8974 compatible. 2. Fix few other TCSR syscon compatibles (new patches: ipq6018, msm8953, qcs404, msm8996). 3. New patch: dt-bindings: mfd: qcom,tcsr: drop simple-mfd from IPQ6018 4. New patch: dt-bindings: mfd: qcom,tcsr: add QCS404 Dependencies ============ 1. 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 2. The last five DTS commits (ARM and arm64) named "switch TCSR mutex to MMIO" depend on driver support. The changes are not bisectable, just like previously such changes were not bisectable: https://lore.kernel.org/all/20200622075956.171058-5-bjorn.andersson@linaro.org/ Best regards, Krzysztof Krzysztof Kozlowski (17): dt-bindings: mfd: qcom,tcsr: drop simple-mfd from IPQ6018 dt-bindings: mfd: qcom,tcsr: add QCS404 dt-bindings: hwlock: qcom-hwspinlock: add support for MMIO on older SoCs dt-bindings: hwlock: qcom-hwspinlock: correct example indentation hwspinlock: qcom: correct MMIO max register for newer SoCs hwspinlock: qcom: add support for MMIO on older SoCs arm64: dts: qcom: ipq6018: add missing TCSR syscon compatible arm64: dts: qcom: msm8953: add missing TCSR syscon compatible arm64: dts: qcom: qcs404: add missing TCSR syscon compatible arm64: dts: qcom: msm8996: add missing TCSR syscon compatible ARM: dts: qcom: msm8974: add missing TCSR syscon compatible ARM: dts: qcom: msm8974: split TCSR halt regs out of mutex arm64: dts: qcom: ipq6018: switch TCSR mutex to MMIO arm64: dts: qcom: msm8994: switch TCSR mutex to MMIO 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 | 41 +++++++++--------- .../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 | 15 +++---- arch/arm64/boot/dts/qcom/msm8953.dtsi | 2 +- arch/arm64/boot/dts/qcom/msm8994.dtsi | 13 ++---- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 +- drivers/hwspinlock/qcom_hwspinlock.c | 42 ++++++++++++++----- 17 files changed, 105 insertions(+), 99 deletions(-)