From patchwork Wed Aug 17 12:04:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 597911 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 BBEDEC25B08 for ; Wed, 17 Aug 2022 12:04:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239296AbiHQMEv (ORCPT ); Wed, 17 Aug 2022 08:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239259AbiHQMEl (ORCPT ); Wed, 17 Aug 2022 08:04:41 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 612A74DB0B for ; Wed, 17 Aug 2022 05:04:30 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id z20so13362211ljq.3 for ; Wed, 17 Aug 2022 05:04:30 -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=v+CAkv8Hlyo2PxpwLaCJcPFqOS7vWYe9QQHHKSYzECU=; b=BIe1yai8AxnqH1xCULHo/Dm0+9wX5oQHpkNKEW9N3FM0YIpnB/eekBBEHoyu/2fQHj D0NNjM2bh4MnJ13IH1XqBpBGk2GF+GzuwC8HqnzO+tLFDZvtLdUa2zS8712eV6VzhKQm c6SBILRw31/pIPY20qUe/F979IN7p+CDxXxmHScjgmVFn7x1TuJGkAF26VsyoOkMq5Qr +SOOwqtpGKa8LCHiBAQq5XON3nPIyYOIsg5b5Rf35m7k4EbZtNYHYSciV/XLTjKFZ6xP +2J1TpzZALOZoAKaHsm+Gykzbm6wSCq6kpXhpfJ1Qbgo3fu3NVoFajTCep27Mz6W7rEA 5C4w== 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=v+CAkv8Hlyo2PxpwLaCJcPFqOS7vWYe9QQHHKSYzECU=; b=DHrm5vnF9ZmbuQhz8Teo6aS3XWX+t3N+b4hD0XGMtjUwitDyelkxWBr7FAeDwLORna nzA5EPRwMXiJnVx30dII9UL1sxr5sIJR5ytw0/NH49DbwKwe7Qs+B6iidU+VY+1KOCoI GYfjKvyTUISKlvgdmeRB4dzc07O1cNic5CycDezP9nPnH6mb0cDSekaoORofqGu1nVx0 QS5iHJiby79PT7S0K8dnxFkps+e5LDNgpbK2Q7RzfQp3XGO/sCTrKShIsPUYGF6pTram mbSjferJXMpDxTB4qbBlMaV4YdeVlRIaFJ2FPXaqc8O9fHxGVnNr2EYYB6hmj+2MqGsH Ew5w== X-Gm-Message-State: ACgBeo2qKtEjACHjT4SQVH7zcGewuA2AZFJ8ADcIZzqZrluhZZ7MbCT+ XOwLS3kaCBNGECEt2Xz/zhumNg== X-Google-Smtp-Source: AA6agR4TQRBWxy15ymqHuWCuBX5sSHPtGTKsjhtaZQ1BFvzFN58HPIlUMcLKM7hU3iREL5h32T6BCQ== X-Received: by 2002:a2e:9e56:0:b0:261:7544:d79d with SMTP id g22-20020a2e9e56000000b002617544d79dmr1640455ljk.296.1660737869972; Wed, 17 Aug 2022 05:04:29 -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 d15-20020a05651221cf00b0048a97042251sm1670496lft.22.2022.08.17.05.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 05:04:29 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Lee Jones , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RFT PATCH 11/14] arm64: dts: qcom: sdm845: switch TCSR mutex to MMIO Date: Wed, 17 Aug 2022 15:04:00 +0300 Message-Id: <20220817120403.458000-13-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220817120403.458000-1-krzysztof.kozlowski@linaro.org> References: <20220817120403.458000-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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/sdm845-shift-axolotl.dtb: hwlock: 'reg' is a required property qcom/sdm845-shift-axolotl.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 21ed14200986..bd0ec0664283 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -919,12 +919,6 @@ compute-cb@8 { }; }; - tcsr_mutex: hwlock { - compatible = "qcom,tcsr-mutex"; - syscon = <&tcsr_mutex_regs 0 0x1000>; - #hwlock-cells = <1>; - }; - smp2p-cdsp { compatible = "qcom,smp2p"; qcom,smem = <94>, <432>; @@ -2588,9 +2582,10 @@ ipa: ipa@1e40000 { status = "disabled"; }; - tcsr_mutex_regs: syscon@1f40000 { - compatible = "syscon"; + tcsr_mutex: hwlock@1f40000 { + compatible = "qcom,tcsr-mutex"; reg = <0 0x01f40000 0 0x20000>; + #hwlock-cells = <1>; }; tcsr_regs_1: sycon@1f60000 {