From patchwork Wed Aug 17 13:03: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: 597907 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 EAB36C25B08 for ; Wed, 17 Aug 2022 13:04:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239590AbiHQNEX (ORCPT ); Wed, 17 Aug 2022 09:04:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239569AbiHQNEI (ORCPT ); Wed, 17 Aug 2022 09:04:08 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CEEC3336A for ; Wed, 17 Aug 2022 06:03:57 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id c28so14872327lfh.3 for ; Wed, 17 Aug 2022 06:03: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; bh=DmgjoU3ZwmShD+iuLbm/N6H6WPhywoNwmKzID5e5568=; b=dOoNqvye8xquk0IPEbhQhqui+Qtl+FwGe6xO/9UzbcZeyzno5z0sjyTEDevwNPNzZI LxmTr+GSKl1380Nz1jq42Qouq+iXDy1mDR+N3uPjd0W7UCAgLQN985quLi+FE7hVk+GE jIOzlHwbLSvijTeh7RfHxO8wXCvrMeaUH0cSa2DTcQM3FToaO4IQGyySLej/+PqUnekK z3KGXi8UOxo7kxFjMnJDvEHVn1MzXQKy0Tjd5tizb1D+yQb3y43/Id+I2AtklPjn3em3 2YbAQ2xzosOaW+DZHq4Y+HSSmZHaOwRL9vwIfsTzbjRJFJqWCB0X0cgYrHX9voJqMhqz OMVQ== 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=DmgjoU3ZwmShD+iuLbm/N6H6WPhywoNwmKzID5e5568=; b=nRvtk2+9trzMH3n90b42ISWe3//ajYZqhRKiCkDdZ4zxKVHIkyvSSfxGg+80EEAQUc Z7wR5S5IrqZlS1yLVtW3DAhHVaj0NbiyAPCAFf6Ls5xoGfjzFuVmqfUkPhzwxopvcNf6 /BGmoyQLIweMmpbkpPd7CIxLYi+RvL+YN0MixQsaMnw/681+NhpF3CMXTMat/X0tFGec eL3yOO5nTY70nU+RKzC06f8NulwsZ9hJzG3mHFsnA0sELReu0DUlPgbOMLljamgy41K8 RdehSOYTPnJepSgWFCnqhBTvTR3huTDYFaH0qIct5268uUfabYqIilNblYhrxwE9xVFs nVGQ== X-Gm-Message-State: ACgBeo3MBo8guTYCZ8P2KtwM911U45gnePprc9F5euPbS0eGJBMYla8R Z200PTQZZrCqonBlahhvlOsAyQ== X-Google-Smtp-Source: AA6agR6lqDxgMK9JFImwUaoMuhNueyu4AJdfFEi+SBN7qOkfEFKxa/ji1nEoI+8vSCoCDkGlSQ3nRw== X-Received: by 2002:a05:6512:b89:b0:490:34f9:d1c6 with SMTP id b9-20020a0565120b8900b0049034f9d1c6mr8336696lfv.637.1660741434903; Wed, 17 Aug 2022 06:03:54 -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 v1-20020ac25601000000b0048b3768d2ecsm1683243lfd.174.2022.08.17.06.03.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 06:03:54 -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 v2 03/14] arm64: dts: qcom: msm8996: switch TCSR mutex to MMIO Date: Wed, 17 Aug 2022 16:03:31 +0300 Message-Id: <20220817130342.568396-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220817130342.568396-1-krzysztof.kozlowski@linaro.org> References: <20220817130342.568396-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/msm8996-xiaomi-natrium.dtb: hwlock: 'reg' is a required property qcom/msm8996-xiaomi-natrium.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 3411ced96db6..166374566a49 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -363,12 +363,6 @@ scm { }; }; - tcsr_mutex: hwlock { - compatible = "qcom,tcsr-mutex"; - syscon = <&tcsr_mutex_regs 0 0x1000>; - #hwlock-cells = <1>; - }; - memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the reg */ @@ -838,9 +832,10 @@ pnoc: interconnect@5c0000 { <&rpmcc RPM_SMD_PCNOC_A_CLK>; }; - tcsr_mutex_regs: syscon@740000 { - compatible = "syscon"; + tcsr_mutex: hwlock@740000 { + compatible = "qcom,tcsr-mutex"; reg = <0x00740000 0x20000>; + #hwlock-cells = <1>; }; tcsr_1: sycon@760000 {