From patchwork Wed Aug 17 14:58:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12946090 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 E6671C32789 for ; Wed, 17 Aug 2022 15:00:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240640AbiHQPAB (ORCPT ); Wed, 17 Aug 2022 11:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240593AbiHQO7j (ORCPT ); Wed, 17 Aug 2022 10:59:39 -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 D87169D661 for ; Wed, 17 Aug 2022 07:59:31 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id w5so19340469lfq.5 for ; Wed, 17 Aug 2022 07:59:31 -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; bh=pqtLuKgHuRzFaU11WfzhWYMqklF7F2EiVQK9EioMBZA=; b=zVPpjQIIJ8OmZ92w94YJtshV3DUIFfa+Sqk5BxI1ZsClxztkGJjBhiPARSPgLHGopT Ar/AIGTIzu98qmy2pxOzkAN7J/QBw4xQr3aREl/atoMEFblLRKD7xjXzMXXk3HtSB3vC CbG18pmQRG6ycJ0EzoWiqK9trc7RFc/G9baFUyZ+hkeCrpeZf2dcsyFXQdgwSYTr+8c9 rLWeOZl6kMqoX6It/c5G4UTal4I6jJUrQUME9i0wms1ZtUPnIWCnBBRWC9yHXaiyLhB0 fvBZiy3NcflbAk+OntwE8vemu8GQkUJrQovOzO1pTHhQiXV9lHAsQ+YtNNXMsfZCQDCC oseQ== 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; bh=pqtLuKgHuRzFaU11WfzhWYMqklF7F2EiVQK9EioMBZA=; b=GrHCnicbgZHeeeqwFmZLjuCaV6/WSYBHf3m8dxnKin7XFpntO8yBsiSyQrjpCkHctf lwBOLebg2Q2B9sJn1hnMMGCYT5HgXggo3MUK3+HIAZqtwxjqMbbJvv/vdYXna7EDevCV TmA7JN1tl2MOsD/Hd61lkzcQUTx9GOqauip7LvdKGQfdTMKB+bGfGz7hjJ0AVPKdRBRr S05UfJxGJd6GLN/hbSk5CN/pW9MpR5zZauBxQh3yFtPMozOVbb6BzuEyTKDycGsltN9/ mOCug+3fD9OYT7WRP24uRCcrwMyIEdEXRAVGbRNi7ku13LhwqmabrxIKDGli5EnBc69P PbHQ== X-Gm-Message-State: ACgBeo2O6Wixq/Ck0+5bGQTyWXqQyBrV7A6tJq1iEnC+iiNEvXyRmELT Ut1/Ge08h2bBuAOuD3ojN2VsTQ== X-Google-Smtp-Source: AA6agR6EoUfzyekWXNUBdFjRp12+JGAyFF1chak9jYX8ET7YJrLxhoX2SvIX49qYE+/+gC6arfYzuw== X-Received: by 2002:a05:6512:304b:b0:48b:4a82:4d3f with SMTP id b11-20020a056512304b00b0048b4a824d3fmr9156053lfb.314.1660748371305; Wed, 17 Aug 2022 07:59:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 07:59:30 -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 14/17] arm64: dts: qcom: msm8994: switch TCSR mutex to MMIO Date: Wed, 17 Aug 2022 17:58:58 +0300 Message-Id: <20220817145901.865977-15-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220817145901.865977-1-krzysztof.kozlowski@linaro.org> References: <20220817145901.865977-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 {