From patchwork Fri Aug 19 08:31: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: 598557 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 D8B94C3F6B0 for ; Fri, 19 Aug 2022 08:32:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347591AbiHSIck (ORCPT ); Fri, 19 Aug 2022 04:32:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347429AbiHSIcX (ORCPT ); Fri, 19 Aug 2022 04:32:23 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA640E9908 for ; Fri, 19 Aug 2022 01:32:21 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id s1so2433069lfp.6 for ; Fri, 19 Aug 2022 01:32:21 -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=eD+vvaVGBlUcCXOKP3ANbRbef4Wta7oOIdhhSq0Fgqw=; b=w7xq+DeKlMgrmICZ39PCb/6Q8yvh730lY6ThiE6Ll7EFTlbvqgps24gBpg1JjHBKaZ eWyxoYwBe2niTLmtulRMg7V1e8JrCWBA+KR5a8L97cLSGVFYYZqAI+5hGuGbcHgfID0m Y/9nXpVJaE567RihAUPGmgxsYcQOcUdqytIafR1FpXS2b4GXYPznb5xc/zhmjnUew5es MPtD6R6dWK1VwWoKWJoq1EnJHEvdoeip6tNada3AWbAUXQL2MVKCoVDt5/viyOiMYaNV E4PCAVT7cOpwfK8eal5W6TrnTfhK1NW7Yxi2z4GatkXaqDmIex1iI3uqJ0kyLCRFjdtv 2vSw== 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=eD+vvaVGBlUcCXOKP3ANbRbef4Wta7oOIdhhSq0Fgqw=; b=yLIV6Bur4bOCibYuauogFqh8xSz/0YxxAzU8uwp2boyKAv3zhOFnAB4i3rTh8lNusl o+KdSZYBXJR5jJ6yWvKGfefnBEueUY14eEmYGDZS/rok/MAkO9SpgpwhhxMrOPsA09oK 31QU5T1MtUhbFjiyu2FH0cXySZhYWNyNUbW/azBvv6yiA3V2kdVhF8EKwCZldcNkCUy9 gHFlJB7+3f93XR34S0n/lYR/IXwpB/Wq6Ke10upCacsQ+t52CeoY4bShozqR7XFTadgk q3lWuJGi1THBx6EN5bf5mZZ7nirRX0zw0tfImKcByxddL9heQZ61EVf/+eg2ZozkekYQ +nAQ== X-Gm-Message-State: ACgBeo0EvLQhn2T842CE31ZRZk/aQQdAVDcelxh18/jxuAPmVtarjm/u FVyXWt/tPvKATjT7iEdMkWQ93Q== X-Google-Smtp-Source: AA6agR4AdJbHeukS6kjEOmGNyNW4p1APIhICE/o1N4MSxFkbRJiScDApC1w50+Jh+Im7FEGG7tSNdg== X-Received: by 2002:ac2:482d:0:b0:48b:2373:9980 with SMTP id 13-20020ac2482d000000b0048b23739980mr2042813lft.97.1660897940996; Fri, 19 Aug 2022 01:32:20 -0700 (PDT) Received: from krzk-bin.. (d1xw6v77xrs23np8r6z-4.rev.dnainternet.fi. [2001:14bb:ac:e5a8:ef73:73ed:75b3:8ed5]) by smtp.gmail.com with ESMTPSA id j8-20020a19f508000000b00492a54f0be1sm545355lfb.284.2022.08.19.01.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 01:32:20 -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 v3 05/16] arm64: dts: qcom: msm8998: switch TCSR mutex to MMIO Date: Fri, 19 Aug 2022 11:31:58 +0300 Message-Id: <20220819083209.50844-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220819083209.50844-1-krzysztof.kozlowski@linaro.org> References: <20220819083209.50844-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/msm8998-asus-novago-tp370ql.dtb: hwlock: 'reg' is a required property qcom/msm8998-asus-novago-tp370ql.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index f0806ed103f1..22b2da74d105 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -308,12 +308,6 @@ scm { }; }; - tcsr_mutex: hwlock { - compatible = "qcom,tcsr-mutex"; - syscon = <&tcsr_mutex_regs 0 0x1000>; - #hwlock-cells = <1>; - }; - psci { compatible = "arm,psci-1.0"; method = "smc"; @@ -1047,9 +1041,10 @@ ufsphy_lanes: phy@1da7400 { }; }; - tcsr_mutex_regs: syscon@1f40000 { - compatible = "syscon"; + tcsr_mutex: hwlock@1f40000 { + compatible = "qcom,tcsr-mutex"; reg = <0x01f40000 0x20000>; + #hwlock-cells = <1>; }; tcsr_regs_1: sycon@1f60000 {