From patchwork Fri Sep 9 09:20:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971350 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 1152EC6FA82 for ; Fri, 9 Sep 2022 09:20:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231304AbiIIJUr (ORCPT ); Fri, 9 Sep 2022 05:20:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbiIIJUp (ORCPT ); Fri, 9 Sep 2022 05:20:45 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A45CFB4435 for ; Fri, 9 Sep 2022 02:20:43 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id x14so1645262lfu.10 for ; Fri, 09 Sep 2022 02:20:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ylRikkO/bjiVr6cfpMQukwsajH9gmB7MCgQxpA3FZjg=; b=Rbp6s+HHlty2tiIFVglQ/FRKyD5ATqB4XPHjipBAH8TzeUvX+65H7CX+s0YbT6FH26 9TwT92id9gqKOir2zehfw4IlRI068GaYXzKmkGG+5PvDZSBmIrK6oEW1TR7lfr5SB03S nV0wymd5Aq3e0GP1Z8wRnZ5eeK/WswjAVc4layeXIfV0MP742IA7RtJ9LHNDdDTTUFzA qksspnOEmImqHOjWNcnX5qOSlQAgUFjqQJOqcM6Wg+RzAnkat0CPmANd6o9Lyyq2CqrF fuu9w5fV/Qa3klgUhAGtGUx9naCWwsrh17UU5cj1b6VF0W0MmN6wJi4vPQAzGWqcSdoQ dUtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ylRikkO/bjiVr6cfpMQukwsajH9gmB7MCgQxpA3FZjg=; b=7HK3aUzg5gx6Ca8t0jDrktwZeupI1PkGYYccMTcZZ26pch1MQrWflBGZp1JdNBOQwE zl/8Vs5o9QdYEpQu/NdlXYEA5tjY98+jAYeX9++LtWiOH9vQkqwmwtuvD2SPaAg/gZkQ lymZAmH6Q6QAwqTQfykhGfwuW/ZjLcnCesLIcxhCfUOCrmChwTqoa4YEE/ewXIqkeAp8 o6FRLPjX2hKUOvdx17iQ7dbpBRJ1LL/o5Kq1XmMsZ+yegN19ymVDnTH5mh6wgRhfL/fo VoRACQZXCkSs+rC6Gu5oOm5Q3Ft2ivqu1/XQ+87prkHv5ZcNIvwl1yXV1BDqaUnq2MZo YFcA== X-Gm-Message-State: ACgBeo34037DHaIVZLTeRE0s5/hCSbTiApcQBP2XfL24AkhR2bx7lZF3 yfkFrJ/J3i5ibxdn8v+jpP30P4LqW1GDpQ== X-Google-Smtp-Source: AA6agR6jczCJXyxJLilCEi7CM4ktZLZkRgci+Cx3cUsUO4hcl38+ebPcuAWdK8BhKeG2Ax98uYOKfQ== X-Received: by 2002:a05:6512:1087:b0:494:a011:2752 with SMTP id j7-20020a056512108700b00494a0112752mr4520199lfg.2.1662715241954; Fri, 09 Sep 2022 02:20:41 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:41 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 01/15] dt-bindings: hwlock: qcom-hwspinlock: add support for MMIO on older SoCs Date: Fri, 9 Sep 2022 11:20:21 +0200 Message-Id: <20220909092035.223915-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Older Qualcomm SoCs have TCSR mutex registers with 0x80 stride, instead of 0x1000. Add dedicated compatibles for such case. Unfortunately the binding started using a generic "qcom,tcsr-mutex" compatible without specifying the SoC part, thus it looks now quite inconsistent. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- If anyone ever says "I want a generic compatible because I am sure all devices are compatible", that's one more argument they are wrong. :) --- .../bindings/hwlock/qcom-hwspinlock.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml index 1c7149f7d171..de98b961fb38 100644 --- a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml +++ b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml @@ -15,9 +15,18 @@ description: properties: compatible: - enum: - - qcom,sfpb-mutex - - qcom,tcsr-mutex + oneOf: + - enum: + - qcom,sfpb-mutex + - qcom,tcsr-mutex + - items: + - enum: + - qcom,apq8084-tcsr-mutex + - qcom,ipq6018-tcsr-mutex + - qcom,msm8226-tcsr-mutex + - qcom,msm8974-tcsr-mutex + - qcom,msm8994-tcsr-mutex + - const: qcom,tcsr-mutex reg: maxItems: 1 From patchwork Fri Sep 9 09:20:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971351 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 7C7F0ECAAA1 for ; Fri, 9 Sep 2022 09:20:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230496AbiIIJUt (ORCPT ); Fri, 9 Sep 2022 05:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbiIIJUr (ORCPT ); Fri, 9 Sep 2022 05:20:47 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE7FBB4EBB for ; Fri, 9 Sep 2022 02:20:44 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id bn9so1091722ljb.6 for ; Fri, 09 Sep 2022 02:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=CEQ6kD7E3x3cGbQZ0xWqW+Ktcext0aENc2Q7rleIIpo=; b=UQbRgGgAD9DMTUfnKoGoUryiinB3JrR/+fLyeAF6ApFQ/GGvwVhkMpUYAG3K61OL2Q H/LYVddfrB9r4eGyEEYZiEfDoYfeHjbaLf9/7uoX8M5GhkDMlDyAfE6B0J3BkheHhSvT DQ8XwEpJ7IkA7atE5AfljkcQLqox8ldzdAXMpBE2RGB8JsRw3l7+Qbpox5kQ8EstKtYq 8Q5ZFg5bIKxypbxCt9XQe0h8Vxr/MlQAT7MRPnXTFv9z+qvuJtL+vQ/7yW/u3EL+HrKA pL6H9uF8i3ssZDH7hiOhuN7VdfAXbFVosgmiXELdIsbPPiZBRVPtCiejocKDT5WgTmWq M/hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=CEQ6kD7E3x3cGbQZ0xWqW+Ktcext0aENc2Q7rleIIpo=; b=4Dr5LQ+YAsNObVuBO1WywNOVyNvJVFnuy/h7fpS6KRmxs5X25phdKsEjIactbQ/A3O JDEkqhvX/+9Qk9Tdh5N2wNKZO9haRH7xppiotj1fxUZ0bNr2Y4VrbHmalcLFFG93FpAw Bgz7ct6CdIrD2jkVhF/MIlVCaVwPI4ymBSDstU7cXs13QWzcGjuHY3m26tZCw5tD6yuq 7dhi2K00NKewo86zHAjnNb2fJFguG/rD4HRfDarNw8/hwnhxvMzoR4Vw8YMDa9CoU5/X oED+QNs9Y+wVMg5NsBeGEhOEiX6/VSyAYXR3PXjAbUCSiXNmLjxCfV4dE5NKra6n/o99 wbhA== X-Gm-Message-State: ACgBeo2zyWazN50rSrEL2BEVWe1V42vZ8pGAspPzF42a5cqOIdY63C+G b3CVx5XmLm5WD9XdofkW0A78vkmML3Iucg== X-Google-Smtp-Source: AA6agR4wosQnzzG9FY77Geu239a8YeXktmczFJO8DCKG+49rSSbuKPHSoXNQFdiVVS3he73xSaSrbA== X-Received: by 2002:a05:651c:1611:b0:261:e11c:c2ef with SMTP id f17-20020a05651c161100b00261e11cc2efmr3497449ljq.340.1662715243162; Fri, 09 Sep 2022 02:20:43 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:42 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 02/15] dt-bindings: hwlock: qcom-hwspinlock: correct example indentation Date: Fri, 9 Sep 2022 11:20:22 +0200 Message-Id: <20220909092035.223915-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Use some consistent indentation (4-space) for DTS example. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/hwlock/qcom-hwspinlock.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml index de98b961fb38..1a3adf75934b 100644 --- a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml +++ b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml @@ -43,9 +43,9 @@ additionalProperties: false examples: - | - tcsr_mutex: hwlock@1f40000 { - compatible = "qcom,tcsr-mutex"; - reg = <0x01f40000 0x40000>; - #hwlock-cells = <1>; - }; + hwlock@1f40000 { + compatible = "qcom,tcsr-mutex"; + reg = <0x01f40000 0x40000>; + #hwlock-cells = <1>; + }; ... From patchwork Fri Sep 9 09:20:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971353 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 DD882C6FA8E for ; Fri, 9 Sep 2022 09:20:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbiIIJUw (ORCPT ); Fri, 9 Sep 2022 05:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231500AbiIIJUr (ORCPT ); Fri, 9 Sep 2022 05:20:47 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EE0B1B83 for ; Fri, 9 Sep 2022 02:20:46 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id a8so1626761lff.13 for ; Fri, 09 Sep 2022 02:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=p22VHkiyfyJQ/2cmDiOXf73kBtRCLk4DV4mGJPl32s0=; b=T+/lWIY8v0qbAYeoyntJ0FQNj5wU33lo4K5Spce/QU9XjaHLtpN7Vk+iszIb7VtMdg S31FyJhBd2gMoSsQy856YiJf0hmLG9rthIhEhIsy/XAgBr53ZAlOaxbAKJpeYLEvDM/p DedQOV2vuejdGKV7xedWegc7UQFwOEtfOjJnvdqixcPUswSmHr4AIqQakzOAyF5dKzJx 23/9X0a89l6aAUBNHDiiQENwdc4f8OzD5CyLPTFFoPV9DCEmQxnCU47MoKqdAK7P4eZm juHJBF+dLgTTpOBCPycex//xouuclW6585+dv79G9brhthWARf8RAferIXgfY+LEKFsG nn3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=p22VHkiyfyJQ/2cmDiOXf73kBtRCLk4DV4mGJPl32s0=; b=phY3kN2Cyv+vETYNFa62aTCJNz++zLEoZ3Ryco/ZztrspLYEGpG9pSn6Ra39ozA9O/ Jk+JIGOQ5h9+nl/8l1mC2QggYssJ6Xs9ZaoTU/iWCeVldeXp2hvsa47uh1OOCVhm8TeW 7NCU4+q5XNlxqnedA0KdHKDbgnQcV/QCfUGmYX7HHYVG8qF4KJrqZYVG66l9wVr0kiNj FAlC5cmqeoXcKGCZiCB84U4o3t+ZEx314CejveDOc0hlsLA1ReB9qassrUQkd6ILnNck hsxK9qHPCAeDg8RKAOXi8a7/BxSag92EXu43FV942bWXqljg+qf7LLhYNw3uxxdtS/VM jgPg== X-Gm-Message-State: ACgBeo0HJ0vzHvTb1UM58tuMETTTRXKm3CM4xaheRgW/wz+c/RZeTx7u N4tqwPgjgTDwKXeBxUnVBbo4Bw== X-Google-Smtp-Source: AA6agR76T7wG7Oj/rg4yBhTT1c6TwJjrayUmvtzsa/GBbqcMFntL6b1sri3PQCjNtkP/D0EkB4GCeg== X-Received: by 2002:ac2:5c52:0:b0:498:ec75:c73c with SMTP id s18-20020ac25c52000000b00498ec75c73cmr2367460lfp.164.1662715244381; Fri, 09 Sep 2022 02:20:44 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:43 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 03/15] hwspinlock: qcom: correct MMIO max register for newer SoCs Date: Fri, 9 Sep 2022 11:20:23 +0200 Message-Id: <20220909092035.223915-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Newer ARMv8 Qualcomm SoCs using 0x1000 register stride have maximum register 0x20000 (32 mutexes * 0x1000). Fixes: 7a1e6fb1c606 ("hwspinlock: qcom: Allow mmio usage in addition to syscon") Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- drivers/hwspinlock/qcom_hwspinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c index 80ea45b3a815..9734e149d981 100644 --- a/drivers/hwspinlock/qcom_hwspinlock.c +++ b/drivers/hwspinlock/qcom_hwspinlock.c @@ -121,7 +121,7 @@ static const struct regmap_config tcsr_mutex_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, - .max_register = 0x40000, + .max_register = 0x20000, .fast_io = true, }; From patchwork Fri Sep 9 09:20:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971352 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 93C94C6FA82 for ; Fri, 9 Sep 2022 09:20:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232059AbiIIJUv (ORCPT ); Fri, 9 Sep 2022 05:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbiIIJUt (ORCPT ); Fri, 9 Sep 2022 05:20:49 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ECE2B2DA4 for ; Fri, 9 Sep 2022 02:20:47 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id z20so1110378ljq.3 for ; Fri, 09 Sep 2022 02:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=NUd8YryzxRUKn1lcURqTFfrnvxH9vHeWn1VsvKW9iig=; b=xJWimhLub0oXBQsfHFFzufsAIM5B/G6nVkeC6YrI1H0WFrdIQGUkQ4Go9ZyN2o/WFA TXOe4IjLCQY70Z4zJoFDqebtmtTwQG+cshbGhY+Zb6jCYUDdHHACzp6eoLJUp2UPQ8sA iD2tuwlMi0wbpQyYBUS9BSLg2Ulv1QeJ7vxefK6nudSpz2opVtxAoJ1MWIJQ517SuJpA +eyjYI/zRox6GhZ4X5KFS3Vu3U2o1p3WBmNUtZ8K7rkKxoZ6MjAkt6nWwAmUuFrN5Ftg nO9jeytQhV9rfIOToUiZhxKGXheAcq+AlgnEwHECljEuId0PhpHEIMks320TPcw+aMy6 94Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=NUd8YryzxRUKn1lcURqTFfrnvxH9vHeWn1VsvKW9iig=; b=LM5cGImEeU7+sNsapS8KNDkXfPQRKopoxVsWpMmqdeoryQ3n9mwomTVrxCExV+QpLi BaUuDclZbt6MJWAg+d+KX7ihrYu/gWhiIrDJRDPQmt1OrbvLYjD+QmNFdWAzlJ4azS05 YPtiXV8QkHkOAwV2/yzJAkiSvFoi4wjOWnxkN6pBtKAam2vEMnZjMNdSSrfLUVNzx36w OYrNbpvmBpz2WcpnSJvsOCQTqMEXnZl59cHyNrXxVbGgHbxeggizdePtnJqIyqI9AzDY aVL1rmAXa7ZvOErZRk3hbJYZVi+SemKa7p5vG6DWHFDmRiuqAKUBXAP9WlGr0I/TmMEw H4Tw== X-Gm-Message-State: ACgBeo3lLOkUoRvdQOHyvciArtS69bPe2kKw4YQ0ddPj+tc5rFyx4H6p gw5+Cqd2zWTqhme9g7XWuUPrFw== X-Google-Smtp-Source: AA6agR7iLxrcgl7jOT89xBXW7vAZ7vXYL3jjRlLx4KhM70KIeve8MuqL76+RDNtEkl+BzLZJRoXn9w== X-Received: by 2002:a2e:9653:0:b0:26a:c786:a104 with SMTP id z19-20020a2e9653000000b0026ac786a104mr3419773ljh.183.1662715245632; Fri, 09 Sep 2022 02:20:45 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:45 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 04/15] hwspinlock: qcom: add support for MMIO on older SoCs Date: Fri, 9 Sep 2022 11:20:24 +0200 Message-Id: <20220909092035.223915-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Older Qualcomm SoCs have TCSR mutex registers with 0x80 stride, instead of 0x1000. Add dedicated compatibles and regmap for such case. Signed-off-by: Krzysztof Kozlowski --- drivers/hwspinlock/qcom_hwspinlock.c | 42 +++++++++++++++++++++------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c index 9734e149d981..9cf186362ae2 100644 --- a/drivers/hwspinlock/qcom_hwspinlock.c +++ b/drivers/hwspinlock/qcom_hwspinlock.c @@ -22,6 +22,7 @@ struct qcom_hwspinlock_of_data { u32 offset; u32 stride; + const struct regmap_config *regmap_config; }; static int qcom_hwspinlock_trylock(struct hwspinlock *lock) @@ -73,15 +74,42 @@ static const struct qcom_hwspinlock_of_data of_sfpb_mutex = { .stride = 0x4, }; -/* All modern platform has offset 0 and stride of 4k */ +static const struct regmap_config tcsr_msm8226_mutex_config = { + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, + .max_register = 0x1000, + .fast_io = true, +}; + +static const struct qcom_hwspinlock_of_data of_msm8226_tcsr_mutex = { + .offset = 0, + .stride = 0x80, + .regmap_config = &tcsr_msm8226_mutex_config, +}; + +static const struct regmap_config tcsr_mutex_config = { + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, + .max_register = 0x20000, + .fast_io = true, +}; + static const struct qcom_hwspinlock_of_data of_tcsr_mutex = { .offset = 0, .stride = 0x1000, + .regmap_config = &tcsr_mutex_config, }; static const struct of_device_id qcom_hwspinlock_of_match[] = { { .compatible = "qcom,sfpb-mutex", .data = &of_sfpb_mutex }, { .compatible = "qcom,tcsr-mutex", .data = &of_tcsr_mutex }, + { .compatible = "qcom,apq8084-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, + { .compatible = "qcom,ipq6018-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, + { .compatible = "qcom,msm8226-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, + { .compatible = "qcom,msm8974-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, + { .compatible = "qcom,msm8994-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, { } }; MODULE_DEVICE_TABLE(of, qcom_hwspinlock_of_match); @@ -117,14 +145,6 @@ static struct regmap *qcom_hwspinlock_probe_syscon(struct platform_device *pdev, return regmap; } -static const struct regmap_config tcsr_mutex_config = { - .reg_bits = 32, - .reg_stride = 4, - .val_bits = 32, - .max_register = 0x20000, - .fast_io = true, -}; - static struct regmap *qcom_hwspinlock_probe_mmio(struct platform_device *pdev, u32 *offset, u32 *stride) { @@ -133,6 +153,8 @@ static struct regmap *qcom_hwspinlock_probe_mmio(struct platform_device *pdev, void __iomem *base; data = of_device_get_match_data(dev); + if (!data->regmap_config) + return ERR_PTR(-EINVAL); *offset = data->offset; *stride = data->stride; @@ -141,7 +163,7 @@ static struct regmap *qcom_hwspinlock_probe_mmio(struct platform_device *pdev, if (IS_ERR(base)) return ERR_CAST(base); - return devm_regmap_init_mmio(dev, base, &tcsr_mutex_config); + return devm_regmap_init_mmio(dev, base, data->regmap_config); } static int qcom_hwspinlock_probe(struct platform_device *pdev) From patchwork Fri Sep 9 09:20:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971355 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 32A7DC6FA8E for ; Fri, 9 Sep 2022 09:20:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230221AbiIIJUz (ORCPT ); Fri, 9 Sep 2022 05:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231818AbiIIJUv (ORCPT ); Fri, 9 Sep 2022 05:20:51 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B9ACB5179 for ; Fri, 9 Sep 2022 02:20:48 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id z25so1691928lfr.2 for ; Fri, 09 Sep 2022 02:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Vnt4ugqapD9RIcZoY+UmvwqyFEMunwd7V4v1nbiDufw=; b=uNnnoc4si+LmyLI5q8ea6VOZC9hfJFqCN61Qitwm/aKqEbq1x7bqP9YrP2CMGEzgox ar+KpKYzxc2RCnGGsnMEzCPrLgItTVeJ0jfG+W8cRylAmd/sV5O0B876GKX45gZrLUhe 6DCyLkl32lJg5RJVObx7XfXE9iThWmvcIwComZWZKMrFsi2B4Tyq/EVZ2mHFhLU5NGTg ZHuTnge3TAdRNVkiNg7URwoBhwjQMDC8/7uoom6oYLg+jRPJfcTEVHcAqVuVcmZ32sLI ab1W9m4rXu9wFH4ipdtNW4s4o1Zl0tadUOEPZsbVa/kdmaI5JrQmoL2sEC9vpe8IWG6A Z76g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Vnt4ugqapD9RIcZoY+UmvwqyFEMunwd7V4v1nbiDufw=; b=3sKJFDNTga3n4e+3tU1GP6xjc9JIRzRWrenpwMueYL6u2xD4RzleHuqch3inYFvR+9 sJrcyBWfKcuv7euHf6QCGpH/HfMG+qKHybalEknmCJBRJcfIOEj01jcyWspBh7CzjNnZ F7V/bWLJPCNzijGJGag+E/eNCPIkolnlx6kOi0s57Ws28Bx2HmFKpzO9DayyIoPHL5Q5 q6tLVVwY64YmqC4Gsu7x0osz6F9zojhHSDNX0GdFkGgWbc+2ArOSh6MsE3qz1bzGjhiF RpGYm783WwYD9+7XCWkEDBtfLQ+Mas0Pw/8PAzK8DGYpvGv9tk6yJuWUtwacYjePdWtz Ss3g== X-Gm-Message-State: ACgBeo2zfYcv+Qh+Ne2BC9uFOivCWNmNlEJshcW0/HOJYU9Av767ej85 HENxCfnppdQ5Wle5STAnTh2K8Q== X-Google-Smtp-Source: AA6agR6o0cxQzGc2tF2U8tSoHOcvCPwivFpx6Zn5CbOlTUngij9JMVFLum0DOs1dL0Zng36FrgwF+w== X-Received: by 2002:a05:6512:2248:b0:48a:f36a:2e63 with SMTP id i8-20020a056512224800b0048af36a2e63mr4163674lfu.485.1662715246864; Fri, 09 Sep 2022 02:20:46 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:46 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 05/15] arm64: dts: qcom: ipq6018: add missing TCSR syscon compatible Date: Fri, 9 Sep 2022 11:20:25 +0200 Message-Id: <20220909092035.223915-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org TCSR syscon node should come with dedicated compatible. Signed-off-by: Krzysztof Kozlowski --- The compatible is documented in separate patchset: https://lore.kernel.org/linux-devicetree/20220909091056.128949-1-krzysztof.kozlowski@linaro.org/T/#u --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index aaad7d9059f6..6b35f03c4862 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -258,7 +258,7 @@ tcsr_mutex_regs: syscon@1905000 { }; tcsr: syscon@1937000 { - compatible = "syscon"; + compatible = "qcom,tcsr-ipq6018", "syscon"; reg = <0x0 0x01937000 0x0 0x21000>; }; From patchwork Fri Sep 9 09:20:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971354 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 50D06C6FA8B for ; Fri, 9 Sep 2022 09:20:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbiIIJUx (ORCPT ); Fri, 9 Sep 2022 05:20:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbiIIJUu (ORCPT ); Fri, 9 Sep 2022 05:20:50 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B6D6B4435 for ; Fri, 9 Sep 2022 02:20:48 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id k10so1679112lfm.4 for ; Fri, 09 Sep 2022 02:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ANavTHdhnB5H/zimGyX1UGPrp6R0+SdK4bVct34NTMU=; b=fMXCG7jtl9+HMKOdvHXIZP3p2d38seGo+hmg5SmAg4+wTuFdSQrcoVZ9h7awH6V9lc VB3MKktw5K+doCBF+JMYN/Qvo7x3nBKVOdzzdlWKVOXEpJU0V1M+Grw6F2mTf4S+ca4r VzQyBLQbIeK4vH3VskuNZ5KGFNPmx2HodJ+O4eSCekWeY+ni8pBEwxffxkyl6ZbfwcWY e5B+XNz9WLICfU5zFow4tZRzJaDJfs6fwsUBOlLYgxcDKXEPtJDK5I+SHfbBudUOOFXw cqgGF/e4uL8Bk4b1+qj4Rucuqk6XVc4+Bz9vvYhSlAj5fVLGueL4VisW48S+aNL5tBCU EDsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ANavTHdhnB5H/zimGyX1UGPrp6R0+SdK4bVct34NTMU=; b=pnXV+F271Fwf7gXhebPLt7eyzMfKRb0cJhod4ed5+fveX/Ybnl2TIZH3wamoIWkBBI 5FMp+m18Ob+SeahBUXjsb7W+ASkgQ/a4EjHwPKpwiwwRPnv6/dyE/mJteGiDIFESPMRN 6YU5BdcktFsOZEoJXf6wR+KINaJgOr2gJ4XmhXn/0m+Qg8yTixzIZmRS/aK9ZfG3TKaA JjcUvNBVZ8jPGDBrfsj0YTQPQumlgHJ6Q0JWpmQRC04emHwNlo1ULpmWalxsPDQ14iZ/ Bcf/JVPYmZ8O0tAIbUR7V3MA2CdApXoum9N31Ym1nPObdOMWxKfanJGVVHNMuSuQQp2l OMGw== X-Gm-Message-State: ACgBeo0sly9yVdEDIVxR6l4oCa90A9flVpXO/L7yDTEULEA0s2fSFTpX z3en1gSbJ5BxhaSWyl2Xt2/NAg== X-Google-Smtp-Source: AA6agR7RHROR8x9HmtO/KIYXA7GhEiAvFgE/X5mzLWhLKyq5ahBSlMeP7bRg588iBh06v9manfpNLQ== X-Received: by 2002:a05:6512:3503:b0:496:517:5802 with SMTP id h3-20020a056512350300b0049605175802mr4054883lfs.83.1662715248054; Fri, 09 Sep 2022 02:20:48 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:47 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 06/15] arm64: dts: qcom: msm8953: add missing TCSR syscon compatible Date: Fri, 9 Sep 2022 11:20:26 +0200 Message-Id: <20220909092035.223915-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org TCSR syscon node should come with dedicated compatible. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 8416a45ca4fd..ed05897d33f1 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -722,7 +722,7 @@ tcsr: syscon@1937000 { }; tcsr_phy_clk_scheme_sel: syscon@193f044 { - compatible = "syscon"; + compatible = "qcom,tcsr-msm8953", "syscon"; reg = <0x193f044 0x4>; }; From patchwork Fri Sep 9 09:20:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971357 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 36D9DC6FA86 for ; Fri, 9 Sep 2022 09:21:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232171AbiIIJVE (ORCPT ); Fri, 9 Sep 2022 05:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbiIIJUy (ORCPT ); Fri, 9 Sep 2022 05:20:54 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7DE9B4409 for ; Fri, 9 Sep 2022 02:20:49 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id z20so1110592ljq.3 for ; Fri, 09 Sep 2022 02:20:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=jWF6n+I4kNaTh0+wS5ew6McBkQX1vr8gLcwhdcZ+294=; b=p/KHTvVCaHHsa1z5hA8NiL8sWfLu9+dvBaijKn0LwxnPkZ9OiT2fgdfGT+9q50325K 7RZcgevCY+Zp+gsGVaCrhiW1xHy7G5phx4y9zX/oueYpfcFgi5JLfeT3BzrKRlv7Y/0k lyNHBlnppSi0kyaisH+iROqaYiG7sJFcOyXzOz6W7JSEwTnRYovg0wl6fRtRyXkjYI6S VYQbLOci1HY3sCrqAtKmkTjRuden/lRqmjCpU+8nBgS+/qOarBdRI8AdquLrWmNQnZbq u/2AY6rBApBszRgvQQMRih9X7MvJ/x7dxpt3ELNynaN/Gp9rLT8FRguULnFb2pGKB7C9 eFxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=jWF6n+I4kNaTh0+wS5ew6McBkQX1vr8gLcwhdcZ+294=; b=aWLHf0OSXYiIuGaQFDGsYXs3L1GIwcqZze6b4N6of2aa/cxbRNcC71yX7jn7U1DUIM 9+pB3/IzwKMuZf6NYscbijPOFq4OaCOdt5ZyPvVm5SL3pfG9eXKFFaMbqrjLRfDbYVW9 dBt+9B9axC2TLIC0xMfNzvOMMpojs103K7qHpr2A7bDRi5kQj2w8grqGhqwMqlOUNNVm sLIacktSJrMg+fMz/ieaDguY9nRJFk2DXulA7YrSAvQn3zFst84k4dhdWX5I2/8xLPda kojC25mxk/IeR7fIvAiawiwjJ1C+zWj/EXByCSuOvFoFwAtqmg+SWld8UNvQCaogu3rM xhHA== X-Gm-Message-State: ACgBeo3yLm8LxMzQz692rTrdmTWjTe/rG9Y68zS6t+0QCQzXCE52tHFt beDDi58Meqffu2HRi6njb8kk0A== X-Google-Smtp-Source: AA6agR4FGCIgKhPxgDZqQQFdea85jQ8MsnkmV+eyMlkFRqIl+6nLMXxmKwImZf8TOlNOOljexAPtJg== X-Received: by 2002:a2e:9b46:0:b0:26a:ed14:d808 with SMTP id o6-20020a2e9b46000000b0026aed14d808mr2550309ljj.506.1662715249355; Fri, 09 Sep 2022 02:20:49 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:48 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 07/15] arm64: dts: qcom: qcs404: add missing TCSR syscon compatible Date: Fri, 9 Sep 2022 11:20:27 +0200 Message-Id: <20220909092035.223915-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org TCSR syscon node should come with dedicated compatible. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 3a94eb2cc448..c79600c28398 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -727,7 +727,7 @@ tcsr_mutex: hwlock@1905000 { }; tcsr: syscon@1937000 { - compatible = "syscon"; + compatible = "qcom,qcs404-tcsr", "syscon"; reg = <0x01937000 0x25000>; }; From patchwork Fri Sep 9 09:20:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971356 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 6A784ECAAA1 for ; Fri, 9 Sep 2022 09:21:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232151AbiIIJVD (ORCPT ); Fri, 9 Sep 2022 05:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbiIIJUx (ORCPT ); Fri, 9 Sep 2022 05:20:53 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36584B4EBB for ; Fri, 9 Sep 2022 02:20:51 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id a8so1627191lff.13 for ; Fri, 09 Sep 2022 02:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=BzLkT0nncnpwU42zLJxcSRVkF2Ex1yz3Pc4ZA2GSLC8=; b=FHqPwq8SZPtIOvmrB53gIhnfTK1Uo5xnenuj/+HxeU0pV3rgk2KJVxJ2vRZI8Fq7ax wxrIrWQtA1MQ2jnfBSSfmbDxsR0kzNw4H4W+lyq9GwQbGRh4RoS+30jR1Jj8Gq+8rWq4 GLD5NoZWMjxKTeaUGQWNmpFKC09L0ooV7m84o3gXlmx1kteAdQe1afo4AOuJKorsv3z4 X+kID8WNP1aBlKgaGGSkmvmXJtT7SlYI28p3LnMjD/iB7GjxXG281e9in7nMibi9poCt 82mSwURU65a7/nFk0nrL3pA/Q9GEeNvTvsO+cnjEA9ReUK3TzpZFzStOfRP5HZ5nebfS WxGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=BzLkT0nncnpwU42zLJxcSRVkF2Ex1yz3Pc4ZA2GSLC8=; b=7RUTjBy4+IXMem12LXMOXU1SEtrQpL8b+VhzeuxAGwUUOvKF6Fh/w2nhGccACchqpK d00VlkrZOStBPeNHs5jkY+b+5Otxi5ThG/uT606Z+EcurMZmUKbrT8M7D3SsRd+GqPcx 5S+5dEKS5DYQKCUeVy8kQ8r/DG9QykpIHNoGpyltURoQo+TLU3S6gcEexms23RYO3lpY L1yi48Kz+rRDzR5CQRRGJvkxK95Ozt4mhTy6sxjXNQjPrC/tdGhl3jhmpoNGX5V77GtR X6M5cQOVMmPx0tfQsxgZMTrs7vJ4So+9Hh0hQrB5sPjB/7DyElrnWKUDpKNwPiFRApLx D+/g== X-Gm-Message-State: ACgBeo3+W/QSrGoQiIswaour4go2C8KWKvrHuU8f9/LEVjg+tztPLTOu 8/q0M59M6OBiQWqBM0o5wECaXA== X-Google-Smtp-Source: AA6agR4napjyc1rdUN/J8XTqsrNAWlUFtAnz7WL5YD/y9lW4szpT+VXmBUve/wEanVgQPlpQntKMFA== X-Received: by 2002:a05:6512:2251:b0:496:c3b9:c18d with SMTP id i17-20020a056512225100b00496c3b9c18dmr3799205lfu.403.1662715250609; Fri, 09 Sep 2022 02:20:50 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:50 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 08/15] arm64: dts: qcom: msm8996: add missing TCSR syscon compatible Date: Fri, 9 Sep 2022 11:20:28 +0200 Message-Id: <20220909092035.223915-9-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org TCSR syscon node should come with dedicated compatible. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 166374566a49..5f45d0589265 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -3499,7 +3499,7 @@ frame@98c0000 { }; saw3: syscon@9a10000 { - compatible = "syscon"; + compatible = "qcom,tcsr-msm8996", "syscon"; reg = <0x09a10000 0x1000>; }; From patchwork Fri Sep 9 09:20:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971358 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 AE3A6ECAAD3 for ; Fri, 9 Sep 2022 09:21:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232202AbiIIJVH (ORCPT ); Fri, 9 Sep 2022 05:21:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231292AbiIIJVD (ORCPT ); Fri, 9 Sep 2022 05:21:03 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2DBBFA681 for ; Fri, 9 Sep 2022 02:20:53 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id z23so1120711ljk.1 for ; Fri, 09 Sep 2022 02:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Xww6smUMHoeYSoc1lrk/iGogtyIyA10+5kx+EaqITKI=; b=axgj027VZK/9LTcRstZXmGjqQrxxZO8RTNvBGF6IU/WY+0mj2up3ACNP822VBaxgSs ab8ZoZt+9ANDzZKR4ps5JACwMSvyprgkElGz+J6s4FJ8O4ctU8HPCjftBW/R19MOwjYY nMXggXdiiv57Xwavo/OoVdqnFmFCpryPd2GP5Nl6ho8Hq6nNqISyMxtikRB8TGnMMUMT BLhsWSeov2XrBkIlVTC7d0BlFhaNcXQBdnJ9lz3jdB+D+cWOtNY2W0FzkVpybK7iRZZ3 2BjznfqDPHqpTNk7ILwo370EcJQbt1doy2zgqtjWiDsCqtx5aTQyyVjjbm6AFg/PiT5B 1vjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Xww6smUMHoeYSoc1lrk/iGogtyIyA10+5kx+EaqITKI=; b=kuxYVTgFHNPkPithHPzLm8yET8qotq+FY5RgRSlR3MTzX9qlQKHr7Q4xlgu+p1WeMG +dtraC/LbXRsbWnnmOk5icYK2johel15RYFf0O2Kh1tBO9ElcLBiRLIAkSSlHTgB/Fkd HTJGZW9/4ice33OHRV/grtCX6k70tedabbJrZz2J9ipuVr0J7olJxDc3o+AnBJJb4IYU IyikiLPAOvM2QtcExkicInFYgplhmhKHi7Cl79n17gEcqghkIQx6yz1FLNK2x1ta/yGW GLYVNTkeqVKwwLVPg1wjQRAxeEqXlFJtmOYk2mXhn/SebmqEG9U68Q8xKs9ef6jrJfHP AnJg== X-Gm-Message-State: ACgBeo1yk2gvZE6I/Z7Zs2erzQzqPoHSlIlau+THr6yJd/s4bjvJ0Fte 9HexviKea77uOTHXwiAaGcPsFumOl4j6sw== X-Google-Smtp-Source: AA6agR6PNk/JNhXt2yxGcmOjGpyxlNllnpEuxz1Qz33adqPEclQdVh1XbpFhqvZapeDqiUw/lrf05g== X-Received: by 2002:a2e:bc86:0:b0:26a:ce95:681 with SMTP id h6-20020a2ebc86000000b0026ace950681mr3111518ljf.107.1662715251847; Fri, 09 Sep 2022 02:20:51 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:51 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 09/15] ARM: dts: qcom: msm8974: add missing TCSR syscon compatible Date: Fri, 9 Sep 2022 11:20:29 +0200 Message-Id: <20220909092035.223915-10-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org TCSR syscon node should come with dedicated compatible. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 8baca2a77717..90a6d4b7605c 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -1234,7 +1234,7 @@ tcsr_mutex_block: syscon@fd484000 { }; tcsr: syscon@fd4a0000 { - compatible = "syscon"; + compatible = "qcom,tcsr-msm8974", "syscon"; reg = <0xfd4a0000 0x10000>; }; From patchwork Fri Sep 9 09:20:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971359 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 56CCBC6FA82 for ; Fri, 9 Sep 2022 09:21:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbiIIJVL (ORCPT ); Fri, 9 Sep 2022 05:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232119AbiIIJVD (ORCPT ); Fri, 9 Sep 2022 05:21:03 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2F40F5C77 for ; Fri, 9 Sep 2022 02:20:53 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id y18so1073768ljh.12 for ; Fri, 09 Sep 2022 02:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=fC7hlheaTm5w1H34Wr2YOUv8Ed7fsZ6b8bVojzbwAbY=; b=pIObONZD7zS+FEkOpRNNF3wwUHbQSQw3yUd1TaBlpCip1Mo7KE87exDgXzDtSm2+ME RQc1k7D+9HIhJ1xaeIf6RHVBGxWwcH0CrSxuDOtS39kzyO+TbvlXo8MUzq0aVqhuP9A7 7nJcJ4mIeoI0oxn/gj7+67FX1Twno3V97uPmdm0XZ4BWG9GHSVxtI5ANq9yR0SYY9JYW 010fGpt8261IJmBGS/alKp2VJiAcN+5Ch+3/USbe2bcGu6/UvPsByocRLobis3CN79kM tYt/6s38ZJufzbHKo43Uz8EMmJQ2LskkN8CclQV7ZxW5UO8Pp71NonX2ZUc3CvHsjUnm CHXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=fC7hlheaTm5w1H34Wr2YOUv8Ed7fsZ6b8bVojzbwAbY=; b=ErXh8k7My+D8Uie1iiCieVcGnDovobvhbWTEixliMklvr3QyR09zPJfdYPCFP7EQ4T v3W6vh5tBeR32zO5ZpHjE3SfZ6Ar6wJ0E961xtlc+Gv3bGCkf9OUuvS39fX+8FgSUvZZ NFrJHgp2XpmiAFZRZjokLR1yaaoG0RwFjbksTsxll9hf7kOkeXyZ/meg9SzZjxRsApfa PgYk5LUW7Hikz8bUzyKV5nBrm5iIqvsgV45pUodQYquoM+0UCntK6TUqNR0/umXPQggG TGtkItOcTR8aTh8ee4/51/4DaK9lugWwu3A7ogKj6nvWKQIj9ISwgUqNfhhDlC4rnED2 x4FQ== X-Gm-Message-State: ACgBeo35K1tKaNkzcUcruFTM1ZWVZrdwVSqvFEFmm4EJlXcj79h1TZNS Dnt0ShgCKSWC6fPBI8VuDiDTdA== X-Google-Smtp-Source: AA6agR4lRiN+pt2U3r6zcbvaPHFuFfqrQQsFBg6kH2oNet/v1pyWHaUU3+qCHNCjn8MFqE1V7eOkvA== X-Received: by 2002:a2e:b5d3:0:b0:267:4da0:ce3b with SMTP id g19-20020a2eb5d3000000b002674da0ce3bmr3465949ljn.420.1662715253120; Fri, 09 Sep 2022 02:20:53 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:52 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 10/15] ARM: dts: qcom: msm8974: split TCSR halt regs out of mutex Date: Fri, 9 Sep 2022 11:20:30 +0200 Message-Id: <20220909092035.223915-11-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The TCSR halt regs are next to TCSR mutex, so before converting the TCSR mutex into device with address space, we need to split the halt regs to its own syscon device. This also describes more accurately the devices and their IO address space. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-apq8074-dragonboard.dts | 2 +- .../boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts | 2 +- arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi | 2 +- arch/arm/boot/dts/qcom-msm8974.dtsi | 11 ++++++++--- arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts | 2 +- arch/arm/boot/dts/qcom-msm8974pro-samsung-klte.dts | 2 +- .../qcom-msm8974pro-sony-xperia-shinano-castor.dts | 2 +- 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts index 3051a861ff0c..2709a99e5c4c 100644 --- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts @@ -38,7 +38,7 @@ &otg { status = "okay"; phys = <&usb_hs2_phy>; - phy-select = <&tcsr 0xb000 1>; + phy-select = <&tcsr_2 0xb000 1>; extcon = <&smbb>, <&usb_id>; vbus-supply = <&chg_otg>; hnp-disable; diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts index ec5d340562b6..5fd94dd6a427 100644 --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts @@ -251,7 +251,7 @@ &otg { status = "okay"; phys = <&usb_hs1_phy>; - phy-select = <&tcsr 0xb000 0>; + phy-select = <&tcsr_2 0xb000 0>; extcon = <&charger>, <&usb_id>; vbus-supply = <&usb_otg_vbus>; diff --git a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi index 5a70683d9103..118b231f3137 100644 --- a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi @@ -136,7 +136,7 @@ &otg { status = "okay"; phys = <&usb_hs1_phy>; - phy-select = <&tcsr 0xb000 0>; + phy-select = <&tcsr_2 0xb000 0>; extcon = <&smbb>, <&usb_id>; vbus-supply = <&chg_otg>; diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 90a6d4b7605c..ada232bed2c8 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -1189,7 +1189,7 @@ remoteproc_mss: remoteproc@fc880000 { resets = <&gcc GCC_MSS_RESTART>; reset-names = "mss_restart"; - qcom,halt-regs = <&tcsr_mutex_block 0x1180 0x1200 0x1280>; + qcom,halt-regs = <&tcsr_1 0x180 0x200 0x280>; qcom,smem-states = <&modem_smp2p_out 0>; qcom,smem-state-names = "stop"; @@ -1230,10 +1230,15 @@ smd-edge { tcsr_mutex_block: syscon@fd484000 { compatible = "syscon"; - reg = <0xfd484000 0x2000>; + reg = <0xfd484000 0x1000>; }; - tcsr: syscon@fd4a0000 { + tcsr_1: syscon@fd485000 { + compatible = "qcom,tcsr-msm8974", "syscon"; + reg = <0xfd485000 0x1000>; + }; + + tcsr_2: syscon@fd4a0000 { compatible = "qcom,tcsr-msm8974", "syscon"; reg = <0xfd4a0000 0x10000>; }; diff --git a/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts index ff6e0066768b..c264d17e0953 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts @@ -89,7 +89,7 @@ &otg { status = "okay"; phys = <&usb_hs1_phy>; - phy-select = <&tcsr 0xb000 0>; + phy-select = <&tcsr_2 0xb000 0>; extcon = <&smbb>, <&usb_id>; vbus-supply = <&chg_otg>; diff --git a/arch/arm/boot/dts/qcom-msm8974pro-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974pro-samsung-klte.dts index 983e10c3d863..2691a6dbbb8b 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-samsung-klte.dts @@ -379,7 +379,7 @@ &otg { status = "okay"; phys = <&usb_hs1_phy>; - phy-select = <&tcsr 0xb000 0>; + phy-select = <&tcsr_2 0xb000 0>; hnp-disable; srp-disable; diff --git a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts index 3f45f5c5d37b..d2bef3896c82 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts @@ -216,7 +216,7 @@ &otg { status = "okay"; phys = <&usb_hs1_phy>; - phy-select = <&tcsr 0xb000 0>; + phy-select = <&tcsr_2 0xb000 0>; extcon = <&smbb>, <&usb_id>; vbus-supply = <&chg_otg>; From patchwork Fri Sep 9 09:20:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971361 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 3F759ECAAD3 for ; Fri, 9 Sep 2022 09:21:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231209AbiIIJVT (ORCPT ); Fri, 9 Sep 2022 05:21:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231818AbiIIJVF (ORCPT ); Fri, 9 Sep 2022 05:21:05 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74B48109D22 for ; Fri, 9 Sep 2022 02:20:56 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id f11so1659490lfa.6 for ; Fri, 09 Sep 2022 02:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=qaIdW5O82kxfv9Y1sMxSlPwy2QYyGigvAsH9y7GzQoA=; b=Pe3F5Tr2dNQAdLyzJ1lLZktvkaHOHP0Jf8F52iT+MUTkPp1C8mfc2+Khy3GIac1FOB uqiUeVjkOHU7C3I9RwqEArSUJWq5mNXnOYhtuIfczzGqZae881jH7xWJD39w7jFCwZY3 VjRhIJs3B1Bc5BXYmgyKjQh/oFEJ9f8XqyEZgSPNQzxhIzOVLUgCvSX/hlOi3QdUaJ/p R9VGxkL5c9iHP2Ng97Wga/KIAblOlldkWykuZMsxpNdX7ngpKwjjJH6n6YyjSwlZQGnv XHmCZoXV4hSXDPpAAOvDbWwJ4AXkE2ZLjHdUtj4ti64HdrMwbaCBYZnKs8SIn5BLiLrx 4rwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=qaIdW5O82kxfv9Y1sMxSlPwy2QYyGigvAsH9y7GzQoA=; b=SGAC5w54bCyeS+L0sWyJZOHWJ76ZT1UxKala3VXof6Y2IW0AZ6nzJRO6RTqkofE6ah T9EMe81WUiQGMQzYyRKwi33PoG2/8coHUW5E2VCKVF3p1HErmdsaUjXYCAIL33wmKzmJ +Cd0Q/EC1lVs2aFYBJR14rx97KySB0tYyjc35XoHmUdDh0MxIZ7FZWZ9nDySZwCwiT7R r441ey6fM9JaiEY/ow5nWhlncTLlyO98/hTMO5ACdI+cRJYCTrXxNwcHTfUB98wtRK42 aTDTvs6pr2pw//fgp3b4Yqw1EA+1tJryxymuL7RiE/A5pSMB1hs7wsf8chyXmhYpxRh/ mP4Q== X-Gm-Message-State: ACgBeo0nknlqMrGS02PflpPS3wPHsE1UkYPCiaH8FYU/T8GzDfOqE1ml Vg37C0R3MCYWV2x23WSA3oPQLw== X-Google-Smtp-Source: AA6agR44fDvYIbtoSOS3Rc2m+6bRAMcMfqh0zcGzhgGVy9VEv5JpTdbOa281M6k2+ZgGXHNw0eybTw== X-Received: by 2002:a05:6512:1052:b0:498:f8d8:f74 with SMTP id c18-20020a056512105200b00498f8d80f74mr653860lfb.683.1662715254298; Fri, 09 Sep 2022 02:20:54 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:53 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 11/15] arm64: dts: qcom: ipq6018: switch TCSR mutex to MMIO Date: Fri, 9 Sep 2022 11:20:31 +0200 Message-Id: <20220909092035.223915-12-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The TCSR mutex bindings allow device to be described only with address space (so it uses MMIO, not syscon regmap). This seems reasonable as TCSR mutex is actually a dedicated IO address space and it also fixes DT schema checks: qcom/ipq6018-cp01-c1.dtb: hwlock: 'reg' is a required property qcom/ipq6018-cp01-c1.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 6b35f03c4862..a7c7ca980a71 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -129,12 +129,6 @@ scm { }; }; - tcsr_mutex: hwlock { - compatible = "qcom,tcsr-mutex"; - syscon = <&tcsr_mutex_regs 0 0x80>; - #hwlock-cells = <1>; - }; - pmuv8: pmu { compatible = "arm,cortex-a53-pmu"; interrupts = ; }; - tcsr_mutex_regs: syscon@1905000 { - compatible = "syscon"; - reg = <0x0 0x01905000 0x0 0x8000>; + tcsr_mutex: hwlock@1905000 { + compatible = "qcom,ipq6018-tcsr-mutex", "qcom,tcsr-mutex"; + reg = <0x0 0x01905000 0x0 0x1000>; + #hwlock-cells = <1>; }; tcsr: syscon@1937000 { From patchwork Fri Sep 9 09:20:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971360 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 32396ECAAA1 for ; Fri, 9 Sep 2022 09:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232146AbiIIJVO (ORCPT ); Fri, 9 Sep 2022 05:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230252AbiIIJVE (ORCPT ); Fri, 9 Sep 2022 05:21:04 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25317FA69D for ; Fri, 9 Sep 2022 02:20:56 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id l12so1085664ljg.9 for ; Fri, 09 Sep 2022 02:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=pqtLuKgHuRzFaU11WfzhWYMqklF7F2EiVQK9EioMBZA=; b=ZlXp+PmJqLsvdwupLcYuie/9CM78vetY58bKjKQ3mEiMG2BaMRtDgbCTQq1gTBw93L 38Gv8jpajXn46UZHW2hLJKXO+m8XYFV2foA0ZJoCMDG34tgXuWM0qtAfAvKmPW4UaXkh s7TGXKYHkSTuVQpgrjLrhpatSfEI/IZca4hnlVz1ICVspEXM6oS12Uoo27cwMd0mLGIm bJjAGwMvI3nfS7HjPkWQpVi3lTKil5Y7p3EzPRSb5/uBPEwDeXOUtWaaeB+mHqYpN2Ii 4eonD2gPW+H59F5bN5i9sqd00irxMq9QKkeU1Sev4Fea920O1bOwH7KEAUmAuNX2N9bO 8A5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=pqtLuKgHuRzFaU11WfzhWYMqklF7F2EiVQK9EioMBZA=; b=Lqiz7nLF1cWL7Zgxcf1L+UYf7vwn2N21SErnKWHT/wjFL+KhyLyiIYkz/Q72u+nO+6 +FtfMPUi/hhBGhgvAsgWBWXF5ZSkZW+56bBkJw8BpLS2uNvpzhQcE/6vzyKmHY0oiqzO 9PFrtutVNmmbEVWf1UqOtrZnvxbp6sXV52ZNwYQg2EoE2Ti5EFWK3XCija38nSYUrwdq BpuFTlF21wrjElemBXf2qbjnsec2EmpgStg8bFQIaa6F8d7fPmE98eeB0AkIt8Zi3Jr+ Z05sDAcn4jlq/WbH8XfsylvR6PS5jBHhtSW/oh9a13bsprsuOt4VUU5mQhzGL/gqJ3eI /ddw== X-Gm-Message-State: ACgBeo2kWXq7VtWadtpSkw+3NyJvc2GzSQ0N9IeApa0SDoefrGyDYlOq skz99hW6X5bUjjNqaY79rOLU2w== X-Google-Smtp-Source: AA6agR47LSlSrOfU1xiDHG/DGsDGjbpO2sinzLGdl0/c2WyMLhoLnJ99X9qL5bBPTvm/cDgoRCSPjA== X-Received: by 2002:a05:651c:514:b0:25e:7113:396b with SMTP id o20-20020a05651c051400b0025e7113396bmr3462653ljp.65.1662715255586; Fri, 09 Sep 2022 02:20:55 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:55 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 12/15] arm64: dts: qcom: msm8994: switch TCSR mutex to MMIO Date: Fri, 9 Sep 2022 11:20:32 +0200 Message-Id: <20220909092035.223915-13-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The TCSR mutex bindings allow device to be described only with address space (so it uses MMIO, not syscon regmap). This seems reasonable as TCSR mutex is actually a dedicated IO address space and it also fixes DT schema checks: qcom/msm8994-sony-xperia-kitakami-suzuran.dtb: hwlock: 'reg' is a required property qcom/msm8994-sony-xperia-kitakami-suzuran.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8994.dtsi | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi index 8bc6c070e306..6a9bca6c2c5f 100644 --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi @@ -164,12 +164,6 @@ memory@80000000 { reg = <0 0x80000000 0 0>; }; - tcsr_mutex: hwlock { - compatible = "qcom,tcsr-mutex"; - syscon = <&tcsr_mutex_regs 0 0x80>; - #hwlock-cells = <1>; - }; - pmu { compatible = "arm,cortex-a53-pmu"; interrupts = ; @@ -762,9 +756,10 @@ spmi_bus: spmi@fc4c0000 { #interrupt-cells = <4>; }; - tcsr_mutex_regs: syscon@fd484000 { - compatible = "syscon"; - reg = <0xfd484000 0x2000>; + tcsr_mutex: hwlock@fd484000 { + compatible = "qcom,msm8994-tcsr-mutex", "qcom,tcsr-mutex"; + reg = <0xfd484000 0x1000>; + #hwlock-cells = <1>; }; tlmm: pinctrl@fd510000 { From patchwork Fri Sep 9 09:20:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971362 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 392C9C6FA86 for ; Fri, 9 Sep 2022 09:21:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231423AbiIIJVW (ORCPT ); Fri, 9 Sep 2022 05:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbiIIJVF (ORCPT ); Fri, 9 Sep 2022 05:21:05 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CAD510E87D for ; Fri, 9 Sep 2022 02:20:57 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id y18so1073952ljh.12 for ; Fri, 09 Sep 2022 02:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=1QVlzwLkNHF9UXsx3O2rYGkmRfJt4dkKS0KBL8iUsvc=; b=hazR5YLWX1Rsm3rvYvjCL39aCLScLHYqOuwBF0UzhFIo4XindO/pKL3+fPRXSGs4M6 TpPXhTZpYG4YAVegbiZrhXZGbai12VyuG0vu11j6YIwMU18PnTX3OKJOIB3u5axiTuxu MSmh031kWJ4mtkgJZfcj1BOCWsYfL0mLJxowIMQAgaLxASXbZJx22T+XCFzRvDcRnp9L /WUJu4Slv70GA2CImOVK6Un8gJueVtnhz25MXYUxYIdGAC9w+w8rbHhZX0yD/qq6B+AZ +yPakPq8i2HsKxjgWN7d6a+s7BMq4G4F05bs1zbw6qUh5SdG0lMdCyQ9sLBiHI6rX3Jk 8b1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=1QVlzwLkNHF9UXsx3O2rYGkmRfJt4dkKS0KBL8iUsvc=; b=VZkqcO88Sr8s5qRSbulaPMehSXz/dvkBrwp9U77JnEc6an5cF1lqt/Y4dpCvc8Qd2l E/VXKmVlo5LNqZjUgAjOvjUD6Khc/TbMH122Vq5nSZ8s5FqhBdaJVJJceMY552i48N6Z IxRusE3vbRrbjqotD2aADhLMuKw9fpLzhBF1vNF3zdGmbhuG0MACdZhh9lgI4SDSlJwB N2Qgqf4Ap7B1Ttjaci1iCuJAR/Ta5D9y31+40puwPHFaQq/eg/AafAn90CC9m9WsxYCb tsvXsp049hQYrEMduLZT2LGG6hfhLMtSpw5Vs9jqgH7ENE/UjoTy43n0xXAw+GoRu0rR BNYg== X-Gm-Message-State: ACgBeo1jQV5KG8/2yW9S+FzzkS3JAuFyOf8ZuKEiYbH4myIYqYrBoOFo uIEOfnpq00XcFBYPxB9hNpl5hg== X-Google-Smtp-Source: AA6agR4EK65RLE5C77BO69caL5lGKl1v5/9mbTZ4uVFXO+5nxj40nfonkVGI/CarwNrFzRraH9gceQ== X-Received: by 2002:a2e:9c84:0:b0:268:8e0f:78cd with SMTP id x4-20020a2e9c84000000b002688e0f78cdmr3713526lji.432.1662715256761; Fri, 09 Sep 2022 02:20:56 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:56 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 13/15] ARM: dts: qcom: msm8974: switch TCSR mutex to MMIO Date: Fri, 9 Sep 2022 11:20:33 +0200 Message-Id: <20220909092035.223915-14-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The TCSR mutex bindings allow device to be described only with address space (so it uses MMIO, not syscon regmap). This seems reasonable as TCSR mutex is actually a dedicated IO address space and it also fixes DT schema checks: qcom-msm8974-sony-xperia-rhine-amami.dtb: tcsr-mutex: 'reg' is a required property qcom-msm8974-sony-xperia-rhine-amami.dtb: tcsr-mutex: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index ada232bed2c8..6bb06eaf08fd 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -1228,9 +1228,10 @@ smd-edge { }; }; - tcsr_mutex_block: syscon@fd484000 { - compatible = "syscon"; + tcsr_mutex: hwlock@fd484000 { + compatible = "qcom,msm8974-tcsr-mutex", "qcom,tcsr-mutex"; reg = <0xfd484000 0x1000>; + #hwlock-cells = <1>; }; tcsr_1: syscon@fd485000 { @@ -1719,13 +1720,6 @@ reboot-mode { }; }; - tcsr_mutex: tcsr-mutex { - compatible = "qcom,tcsr-mutex"; - syscon = <&tcsr_mutex_block 0 0x80>; - - #hwlock-cells = <1>; - }; - thermal-zones { cpu0-thermal { polling-delay-passive = <250>; From patchwork Fri Sep 9 09:20:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971363 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 36BA9ECAAD3 for ; Fri, 9 Sep 2022 09:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232259AbiIIJVp (ORCPT ); Fri, 9 Sep 2022 05:21:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232119AbiIIJVN (ORCPT ); Fri, 9 Sep 2022 05:21:13 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304011238CB for ; Fri, 9 Sep 2022 02:20:59 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id p5so1071050ljc.13 for ; Fri, 09 Sep 2022 02:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=uXLJl3ZPkfkVvmcRHOHOBnFdkGCya/Ew5ljctJGYsvo=; b=oSLLh+PdKzlLThUm9rrBhde8+nwX4FQZ/wrin76fCzhIy4cru3zpDI5kn6B5HHMZYe UKhB7Pn1RdYvW+w3JgA6qNGH7hI70atkDCXTg1fjfPsTotP5eC6sGOQ+JaQnEWa0jyt9 diTNNkPtUR0zA3JqN9E6KtKP5zbt5MN5gTyZgS4wxRbLDqQBqFVSxMtziO+huS0T21uM AXTg/O2TJVmezBrCau8N7sw3LcdYpc6nIp04SfE7jrA+1bUYiT+NHg+WRWTkPC5iKJdy kRkeVeLTeKn8RgkJXF8DhJbrUtDawM1RZB+dRWu2GZdw+TCE4Zk9d0ZzrMe4MvmbGayN 1lxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=uXLJl3ZPkfkVvmcRHOHOBnFdkGCya/Ew5ljctJGYsvo=; b=jeQ6mTHM72x2TephcaGKrLr/5XFdb4WyGihEQ++Ci+g46VxwWNwnHNZosxV0ql9hoN MJYlzC0SRyJvsgZvXbHTVwf5uC6+EqzSsjc1JlaLcAVO0J/LGRhlRcgJT0TbVLaKaFpo ZZ8jAoGY9DbaeS9eGc01TPCQrQf6DUSDYP4xxBGrOOgu7cRHnkS7sYpQr1woFtVidZW7 TswIYQGOYRepIhxHXrst0Qi7yj1yfLzN/vy72rz6XKVKJ3AKS3wpHpAcDlqBdrCJt03w 3jcx5DrBOuSitnRxu6xBnCITBcSpniXygvQG2l/CNirMlQK86M9GUREunIJqsNyK39l7 pRqQ== X-Gm-Message-State: ACgBeo2dYKH22x+DDW9nznZIVpOBV3T/go24kVryljiJfV5T120JkVZj gW0nJ9SvUfS29u2ttB3ydKh7zA== X-Google-Smtp-Source: AA6agR584RkTZ1UtDLrrx5HMsetTOvE5i4tfUBuyEb0L+NI1IoakQmfkqI77jkS7QYz57OgehP0liw== X-Received: by 2002:a2e:808f:0:b0:26a:b498:2c87 with SMTP id i15-20020a2e808f000000b0026ab4982c87mr3749489ljg.279.1662715257992; Fri, 09 Sep 2022 02:20:57 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:57 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 14/15] ARM: dts: qcom: apq8084: switch TCSR mutex to MMIO Date: Fri, 9 Sep 2022 11:20:34 +0200 Message-Id: <20220909092035.223915-15-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The TCSR mutex bindings allow device to be described only with address space (so it uses MMIO, not syscon regmap). This seems reasonable as TCSR mutex is actually a dedicated IO address space and it also fixes DT schema checks: qcom-apq8084-mtp.dtb: hwlock: 'reg' is a required property qcom-apq8084-mtp.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-apq8084.dtsi | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/qcom-apq8084.dtsi b/arch/arm/boot/dts/qcom-apq8084.dtsi index 72f9255855a1..5e07255fe5ea 100644 --- a/arch/arm/boot/dts/qcom-apq8084.dtsi +++ b/arch/arm/boot/dts/qcom-apq8084.dtsi @@ -383,14 +383,9 @@ gcc: clock-controller@fc400000 { reg = <0xfc400000 0x4000>; }; - tcsr_mutex_regs: syscon@fd484000 { - compatible = "syscon"; - reg = <0xfd484000 0x2000>; - }; - - tcsr_mutex: hwlock { - compatible = "qcom,tcsr-mutex"; - syscon = <&tcsr_mutex_regs 0 0x80>; + tcsr_mutex: hwlock@fd484000 { + compatible = "qcom,apq8084-tcsr-mutex", "qcom,tcsr-mutex"; + reg = <0xfd484000 0x1000>; #hwlock-cells = <1>; }; From patchwork Fri Sep 9 09:20:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971364 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 E08F4ECAAA1 for ; Fri, 9 Sep 2022 09:21:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbiIIJVs (ORCPT ); Fri, 9 Sep 2022 05:21:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbiIIJVO (ORCPT ); Fri, 9 Sep 2022 05:21:14 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DDBB12D578 for ; Fri, 9 Sep 2022 02:21:01 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id by6so1075107ljb.11 for ; Fri, 09 Sep 2022 02:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Yb2tg6NLcz0SjyT+zhbpZCCAWG7Bnyw4PloKDdxoVAU=; b=f/7QeSSps5TESCFk8jMvoH4gZ+ybCQsYE2/4pGB5NK22t1fLqB1HRBruOnRDqC1/9o vvoHjMR8vSLvEHyJqvYJHtLNAwICFDq2lY0is6u1vshVHoEZPh9ILUitiMVr33ns9uUk F77D9r3kykYxlkVNFYJaUt4y1UnzFy5GkAzzF+bS6glstvqVK3J1OKf7JF/yDCTSRLPV X510QS+7XE7FZYFtroemve6D2B5qJC60i4mrxhK2JLES6Cvg/V0Io177YdJLT/HQddsc /O5I0WWlYxMxzKqitQIhOK0f6H2dKfDwX06mNtjUwMRCCnTGjkIQbEcCTeNH9o5m4kdu Iorw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Yb2tg6NLcz0SjyT+zhbpZCCAWG7Bnyw4PloKDdxoVAU=; b=1AL8CLPZ1EFyIRsQ1Jk7notTPqlygbVaG9N0SbFfZ+pxnm3a2zpwM6OFsOoZYggUAD IW6JVBlhQOVySQScuP41O2e8UKfZ/oP6WgbXFiJRfH59Bnk/B73kbChOKNtxesAneC7M +J0Sa7miBghSgiGJFD/uwn4RRdc00Tqs6PCLa5BpFrZLILvomO3C923o3TZCGcJIrEdB tFINvxR/suyd8OWyWniwZPsu3jo1y/84Mof5uP5z3sF4pCV8xGhRTLvzuJO06KUG3IJH pAmmcdl6TmQyL2oyaG/aU9XP/oYwTpief1vDpXVshiaYUJ3lsTYwJm577zDhH1kE7JQj jSZA== X-Gm-Message-State: ACgBeo2NT0ALRHHzmjDNdO8Oy1+tNEvoluVRpw7oTpG/qMRjO3KJKgmM GeX7PJHfM+UCzQ+RHIji1x7cgA== X-Google-Smtp-Source: AA6agR4L8LIUifZts/uFRSogq6G/TlU4lexPTUJbQgl5rZWDaWwSt/lS1G4J1EhJjypzzo4lvAyZmQ== X-Received: by 2002:a2e:a234:0:b0:26a:a85e:f782 with SMTP id i20-20020a2ea234000000b0026aa85ef782mr3625115ljm.74.1662715259166; Fri, 09 Sep 2022 02:20:59 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:58 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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: [PATCH v3 15/15] ARM: dts: qcom: msm8226: switch TCSR mutex to MMIO Date: Fri, 9 Sep 2022 11:20:35 +0200 Message-Id: <20220909092035.223915-16-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The TCSR mutex bindings allow device to be described only with address space (so it uses MMIO, not syscon regmap). This seems reasonable as TCSR mutex is actually a dedicated IO address space and it also fixes DT schema checks: qcom-msm8226-samsung-s3ve3g.dtb: hwlock: 'reg' is a required property qcom-msm8226-samsung-s3ve3g.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-msm8226.dtsi | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index 0b5effdb269a..efb5d1edc3a8 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -44,13 +44,6 @@ scm { }; }; - tcsr_mutex: hwlock { - compatible = "qcom,tcsr-mutex"; - syscon = <&tcsr_mutex_block 0 0x80>; - - #hwlock-cells = <1>; - }; - reserved-memory { #address-cells = <1>; #size-cells = <1>; @@ -508,9 +501,10 @@ rpm_msg_ram: memory@fc428000 { reg = <0xfc428000 0x4000>; }; - tcsr_mutex_block: syscon@fd484000 { - compatible = "syscon"; - reg = <0xfd484000 0x2000>; + tcsr_mutex: hwlock@fd484000 { + compatible = "qcom,msm8226-tcsr-mutex", "qcom,tcsr-mutex"; + reg = <0xfd484000 0x1000>; + #hwlock-cells = <1>; }; };