From nobody Thu Apr 2 21:34:17 2026 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 E1A76ECAAD8 for ; Tue, 20 Sep 2022 15:05:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231611AbiITPE7 (ORCPT ); Tue, 20 Sep 2022 11:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231422AbiITPEh (ORCPT ); Tue, 20 Sep 2022 11:04:37 -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 079C740576 for ; Tue, 20 Sep 2022 08:04:20 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id j24so2849740lja.4 for ; Tue, 20 Sep 2022 08:04:20 -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=SVZ6k+oM0JCP4OT8+67fkZtMwtYdCVTR4DStHO3hiQc=; b=TCQUnPGF1UuuBoi6/uhKU93aTXQN/UD3K0JA7QSOz1/xzTet2+lmsaLsDYz2kvg0QB WZE7cq8G8/2D3yEbZEbGHQRC3rOiShdM5R2gdM8DEj5ouK78j1ekB6RU3SEG+xM/Y25q coZZXSvLyAGWCzp5m5yMF8Xa3SLh+jHYtuo+1GbzJZgPevWy9cbN6sOXh63F3rRGfJlt kINaIJdjVikOmbmEAhIbBIhyiXyJFjmLwpmomrJnHm0WE1TuBbU1fd3BE50Sk7djyoLI Q/Ua6D8WhnreJsct34iSp0BpWWsQ7N2ybsx3e8uFY16sj+8H7g9N/NSDdIJQ+VSu1EAG qSow== 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=SVZ6k+oM0JCP4OT8+67fkZtMwtYdCVTR4DStHO3hiQc=; b=yYYHUumYbFaktug06JCRxqYSZ4FDVSSV4bo/V2fdur3iWwvOdDL3u/exYBL+Emla+h Pj5oEm8peAYNDhqEP+HIBs3nVVdJ8O4K4c830+815C6lSywQMH4zrl078xnnydy0bvFJ jznOR9WRDlreOhhP0LMpEmeK1t86KF+w9v2YsPxAsfK93CGhpbdUWCPNkuxVNiT0Q4GV 7+PzGKDD0mg/xLaAHYaW1HUuk2Btswo2U60LMCJRiMsOAriFgLaQc/N/qAEkmAAH8K0q i6VUq2tIURF7Oz2W+gFUlbHGhIaqlScB+MyQ01cyNPGnk9GfCHIGjYlWfplS5/HPVyMj Vieg== X-Gm-Message-State: ACrzQf3EiLEe5OZHiVb7lW2gcdsnmvI6ZPBVm2biv7MhL0K6T/KnJlZ/ VTS/KpmIMF4TLUQn/U1LgNBrEQ== X-Google-Smtp-Source: AMsMyM4DR4FdEL3K5QffgANOg+HXdWCQW+PXjnEIBuHuGq/Qi/MmRcI+cYdSeqEr91reB+lbMPkikQ== X-Received: by 2002:a05:651c:482:b0:26b:e964:3f00 with SMTP id s2-20020a05651c048200b0026be9643f00mr6821597ljc.464.1663686258847; Tue, 20 Sep 2022 08:04:18 -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 p10-20020ac246ca000000b0049f54a976e3sm8294lfo.58.2022.09.20.08.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 08:04:18 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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 v4 1/3] dt-bindings: hwlock: qcom-hwspinlock: add syscon to MSM8974 Date: Tue, 20 Sep 2022 17:04:12 +0200 Message-Id: <20220920150414.637634-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220920150414.637634-1-krzysztof.kozlowski@linaro.org> References: <20220920150414.637634-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The TCSR_MUTEX region contains two set of registers: mutex and halt. Add syscon, so the TCSR mutex device (hwspinlock) can use MMIO based method and in the same time share regmap with other devices for the halt regs. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring Tested-by: Luca Weiss # fairphone-fp2 --- .../devicetree/bindings/hwlock/qcom-hwspinlock.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml = b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml index 1a3adf75934b..ee2726149cf3 100644 --- a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml +++ b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml @@ -24,9 +24,13 @@ properties: - qcom,apq8084-tcsr-mutex - qcom,ipq6018-tcsr-mutex - qcom,msm8226-tcsr-mutex - - qcom,msm8974-tcsr-mutex - qcom,msm8994-tcsr-mutex - const: qcom,tcsr-mutex + - items: + - enum: + - qcom,msm8974-tcsr-mutex + - const: qcom,tcsr-mutex + - const: syscon =20 reg: maxItems: 1 --=20 2.34.1 From nobody Thu Apr 2 21:34:17 2026 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 465E1ECAAD8 for ; Tue, 20 Sep 2022 15:04:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231627AbiITPEy (ORCPT ); Tue, 20 Sep 2022 11:04:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbiITPEb (ORCPT ); Tue, 20 Sep 2022 11:04:31 -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 D4BAB61713 for ; Tue, 20 Sep 2022 08:04:22 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id u18so4256802lfo.8 for ; Tue, 20 Sep 2022 08:04:22 -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=1xM5SAgV2yOSXYHddecL2UZpF+0bVuts3JrhIOTJ0WI=; b=vouRKThlJjw88OHq2SUh+XYt6pKT+FRXjASslnQxkvUrkMK2JWof/+EsBxutoatRyD cTtjAVgcWuOzE7TElZ5bmvn3vjtcQn4kYe17sCop0M405bVp1L9nMLyXjA0KWkqu6LA9 Y7pKOGih9xsUtrVPPj0AwSNh7N0pWXWCx+4ZzXirQVmx7lqO9OrnPKnYBjdvjzmX37I0 nEjIg7pVhiBNyEmE9Iyucn4VJ9NyYAc8pmW4fJdK6QI8zQb2aAX5aXwopygaeEFjeMze rD+ENmA2IUYFgO0Cd4pKFAlYPhh9srM0KkI5m/aCgrsCJrF0hNZPz+QCumb4aaEq6DW4 hcFg== 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=1xM5SAgV2yOSXYHddecL2UZpF+0bVuts3JrhIOTJ0WI=; b=My5gaHBUoH/dBh1QloKZlGUaH0BsHZ00atGH2HrmOpL7t53D2iWM73vRkXvT3tJzhR /d6VMFcyXlMtA+Jk55OfiUTnNSQxn26ydPbubsMY8zERV5B1YMIKIgG23TV3v57XggmA PkSk357uMYULe1kJvrNnAGgiv/mlB7kXs4f8lQ2ev9VSgNRkDTZYIP+lkBwh21hQ2Knx wKCiSwgYFhK1Mv7+fYaLV+7HeIS5ShTBrx/0x6UkyQpinADLed8MVdJ+xWyJTaNbbsD8 fnJQsm7ZunL5aRdR9TTc2tzONDtMlB6k3StQhv4ciI0bThe2jSwUUMdQeWaNwyy7VvrG ovVQ== X-Gm-Message-State: ACrzQf14KMLnZ9R8rKDCrW5klAragOy+GEJTh75lo7jHK7DJH/14RKer gdQZLMgcfCZroDoUb/2A0ezHuQ== X-Google-Smtp-Source: AMsMyM4d1SHbHak7lgC5YBSzGtwKUKMIgYEBZwk/Ap0BUknR0fGFQ8O88T8n+Rsceuoha+C8T08/5Q== X-Received: by 2002:a05:6512:3502:b0:493:e21:b77d with SMTP id h2-20020a056512350200b004930e21b77dmr8181149lfs.580.1663686260031; Tue, 20 Sep 2022 08:04:20 -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 p10-20020ac246ca000000b0049f54a976e3sm8294lfo.58.2022.09.20.08.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 08:04:19 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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 v4 2/3] ARM: dts: qcom: msm8974: add missing TCSR syscon compatible Date: Tue, 20 Sep 2022 17:04:13 +0200 Message-Id: <20220920150414.637634-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220920150414.637634-1-krzysztof.kozlowski@linaro.org> References: <20220920150414.637634-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" TCSR syscon node should come with dedicated compatible. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong Tested-by: Luca Weiss # fairphone-fp2 --- 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-m= sm8974.dtsi index 7a9be0acf3f5..a4e12daf3eeb 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -1239,7 +1239,7 @@ tcsr_mutex_block: syscon@fd484000 { }; =20 tcsr: syscon@fd4a0000 { - compatible =3D "syscon"; + compatible =3D "qcom,tcsr-msm8974", "syscon"; reg =3D <0xfd4a0000 0x10000>; }; =20 --=20 2.34.1 From nobody Thu Apr 2 21:34:17 2026 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 CCD47C54EE9 for ; Tue, 20 Sep 2022 15:05:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231827AbiITPFQ (ORCPT ); Tue, 20 Sep 2022 11:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbiITPEl (ORCPT ); Tue, 20 Sep 2022 11:04:41 -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 9E45CBC94 for ; Tue, 20 Sep 2022 08:04:29 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id i26so4228709lfp.11 for ; Tue, 20 Sep 2022 08:04:29 -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=uGVId7ajaDqTRILJwbUDyK1M1OoEGlOt7PBKotR6xVM=; b=rTCouT/5+rTbr/qoDH2r9+QQP1b0txBsTuK1g62F+FkXrWnr7by0oFOiC4rV+vZozh GjQGX0wVvO8kEVgop5xW2KblCelmgTncdFZ/EZH5dOl1S/w7H/hBDxkkBEQ+bKi3JUcp fd6HSpY6dg5GWbqVe5b2uELdK3zV+TR+Ex6vS4U2sdhAfJEtZR8+X8wAQpl41d5sFBBE qML3MdKvhxaH97IEh+C6oVDRNGbf2DZpr92JSAtM3w7mEQkLI8Edlc5oD3W+xUrlLlk4 7lMrjDguImusQaJH+WaRXF6sVh2OfronV4ZIV/vs/jUv163QAIN4fpEg+i7hvAIESkrx OFJw== 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=uGVId7ajaDqTRILJwbUDyK1M1OoEGlOt7PBKotR6xVM=; b=z3zXxuzRdue2f3+YsNvFrqBKAZFCUmI92BzI61Wg0h3HT86n6OaEAUSaSHoa8iREPx Ejn+QT5C/92XgZPT++I+kb20Xa7/Zt7Fl7rJhz6nF9zl1BWy2tcCpKuQ9f2UFnxco8O1 S2Y5LaoqEb5/U+xN6EVsx+SmWBMmk61X9cOtfboFroikAkxXmIUGGODkAz+d65zp/Gjg VlZOAMTKg5WtV5zYPBq6x32diyuyGsh46Yrz0ivFqyC/rqH5boY8lVt3xc9k6xgq91s7 dfTx+0TVppN3S73r3CcXY8cPX30QonxM3WE+ztuk2EEXywBwKzAO25Pk0PNNstndUTBh jVKQ== X-Gm-Message-State: ACrzQf0V2/C4yx2bw0Dq+csxGz14bpzM0ScX6qJoo9Sge2xivOYQw+vn /R8p430LSBpS7IGtB9ZVIkfsKA== X-Google-Smtp-Source: AMsMyM4KZDnbUtIxrgZe74ARw4Teo3eNN5N0ZL8MWZrI3hDx/FYuj2pOhfDr9WHVD11ZLqbMRW07Ag== X-Received: by 2002:a05:6512:36c1:b0:497:abef:cce5 with SMTP id e1-20020a05651236c100b00497abefcce5mr8578939lfs.472.1663686261140; Tue, 20 Sep 2022 08:04:21 -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 p10-20020ac246ca000000b0049f54a976e3sm8294lfo.58.2022.09.20.08.04.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 08:04:20 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , 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 v4 3/3] ARM: dts: qcom: msm8974: switch TCSR mutex to MMIO Date: Tue, 20 Sep 2022 17:04:14 +0200 Message-Id: <20220920150414.637634-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220920150414.637634-1-krzysztof.kozlowski@linaro.org> References: <20220920150414.637634-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 m= atch any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Tested-by: Luca Weiss # fairphone-fp2 --- arch/arm/boot/dts/qcom-msm8974.dtsi | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-m= sm8974.dtsi index a4e12daf3eeb..7bc19b5375f6 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -1194,7 +1194,7 @@ remoteproc_mss: remoteproc@fc880000 { resets =3D <&gcc GCC_MSS_RESTART>; reset-names =3D "mss_restart"; =20 - qcom,halt-regs =3D <&tcsr_mutex_block 0x1180 0x1200 0x1280>; + qcom,halt-regs =3D <&tcsr_mutex 0x1180 0x1200 0x1280>; =20 qcom,smem-states =3D <&modem_smp2p_out 0>; qcom,smem-state-names =3D "stop"; @@ -1233,9 +1233,10 @@ smd-edge { }; }; =20 - tcsr_mutex_block: syscon@fd484000 { - compatible =3D "syscon"; + tcsr_mutex: hwlock@fd484000 { + compatible =3D "qcom,msm8974-tcsr-mutex", "qcom,tcsr-mutex", "syscon"; reg =3D <0xfd484000 0x2000>; + #hwlock-cells =3D <1>; }; =20 tcsr: syscon@fd4a0000 { @@ -1719,13 +1720,6 @@ reboot-mode { }; }; =20 - tcsr_mutex: tcsr-mutex { - compatible =3D "qcom,tcsr-mutex"; - syscon =3D <&tcsr_mutex_block 0 0x80>; - - #hwlock-cells =3D <1>; - }; - thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; --=20 2.34.1