From patchwork Wed Dec 1 07:27:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649301 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 92B02C433FE for ; Wed, 1 Dec 2021 07:28:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345114AbhLAHbe (ORCPT ); Wed, 1 Dec 2021 02:31:34 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:58966 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234851AbhLAHbe (ORCPT ); Wed, 1 Dec 2021 02:31:34 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 83DE7B81DBD; Wed, 1 Dec 2021 07:28:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3636EC53FAD; Wed, 1 Dec 2021 07:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343691; bh=3PVz2V9iNQllJFoHEamrh6hw7ZtHslowFrxYxgzf2/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R2V+mtxIyeGE6hG2VyLU9BiKTzAjjXvRju4rNVj8A2LG5KrUtUwfJGVs6SLD4tYr+ W+58G4qaDbeyxf5YIHq9HYuQcGoWY447RnT0JTr63BalSNBleh1J6yOJY1lpq/3s7D ys8HW+uJrOBH5WW5jGKECTfODDt4gq2cFrKi+sz7VgX/j62UQtjnf2coJbTPMAu/Di 8DFU2wTDBJuP9JrT/lOjBMXtoneC025c1xEgEPFsxfo6JDDF+Ntk5ZBCvUsdhqKXzG LXwV3+kgMA2vVkrTJC/ec2FdGztpZajEogETffp1sB6lGXW7m1piBI/TrEErVmH1ev OfDVcHSz5Ntyg== From: Vinod Koul To: Rob Herring , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] dt-bindings: arm: cpus: Add kryo780 compatible Date: Wed, 1 Dec 2021 12:57:39 +0530 Message-Id: <20211201072745.3969077-2-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072745.3969077-1-vkoul@kernel.org> References: <20211201072745.3969077-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Kryo780 is found in SM8450, so add it to the list of cpu compatibles Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml index f2ab6423b4af..dfa28e3525cb 100644 --- a/Documentation/devicetree/bindings/arm/cpus.yaml +++ b/Documentation/devicetree/bindings/arm/cpus.yaml @@ -174,6 +174,7 @@ properties: - qcom,kryo560 - qcom,kryo570 - qcom,kryo685 + - qcom,kryo780 - qcom,scorpion enable-method: From patchwork Wed Dec 1 07:27:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649303 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 A2318C433EF for ; Wed, 1 Dec 2021 07:28:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344395AbhLAHbh (ORCPT ); Wed, 1 Dec 2021 02:31:37 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:59022 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234851AbhLAHbg (ORCPT ); Wed, 1 Dec 2021 02:31:36 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3DD8BB81DBF; Wed, 1 Dec 2021 07:28:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DED5CC53FCE; Wed, 1 Dec 2021 07:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343694; bh=iG78YUkE9IoL0SXtf24gYqzCj5HG0i9+ICaEr61V23o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hgDxhFi9l7QE8HRnFCNINf5YHHptBm1k0dJv4wx6COexAfQbrVGguKkSMG4hgBwFv dDace2qRndLU/HRItran+fAGgiZqlY+Bz2mi4cGuWGiSN0aD+KvX9dxdzKtidaUo9d QK3Ff6Dgg0cwbVAcBtDiCku2ClXFkt8e++TVhwh4N0THqC5A6psq9h7ekjKoqzwVYW 5VS/L6ZpeQz5vYC88bBVtaFlQJle5U/05DS729qV2TieBhv4XbXkyRC8pLtH3zmoph wQIDUh7GSwo01QbumS468pl92jFGFg3b+iqE1KX5Ei50ob7HwtdYhgRdzA094sfvIa kDdjXVLt4EnGQ== From: Vinod Koul To: Rob Herring , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] dt-bindings: firmware: scm: Add SM8450 compatible Date: Wed, 1 Dec 2021 12:57:40 +0530 Message-Id: <20211201072745.3969077-3-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072745.3969077-1-vkoul@kernel.org> References: <20211201072745.3969077-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add compatible for SM8450 SoCs. Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.txt b/Documentation/devicetree/bindings/firmware/qcom,scm.txt index d7e3cda8924e..548733388497 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.txt +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.txt @@ -29,6 +29,7 @@ Required properties: * "qcom,scm-sm8150" * "qcom,scm-sm8250" * "qcom,scm-sm8350" + * "qcom,scm-sm8450" and: * "qcom,scm" - clocks: Specifies clocks needed by the SCM interface, if any: From patchwork Wed Dec 1 07:27:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649305 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 7BF13C433FE for ; Wed, 1 Dec 2021 07:28:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347446AbhLAHbq (ORCPT ); Wed, 1 Dec 2021 02:31:46 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:54666 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347447AbhLAHbk (ORCPT ); Wed, 1 Dec 2021 02:31:40 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 6AD82CE1D73; Wed, 1 Dec 2021 07:28:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9342AC53FD5; Wed, 1 Dec 2021 07:28:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343696; bh=IZVU6V9VZSLbDruSD3CwXHfsbc+1ZYVrEFg6wsYL8KQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o+zTStgHDOV2X7qhFkEXjcBoJtKfD/nVCegiz7pKmz1qtXTpE6G3nU+mCUrI4arjf lUpHNYpJ+KA+5Vg1EuedIhJeytUBCoHVOVXbpZhMybkKlRsR2frObuFrCluxIXRQER TAHkO3fOap5Hp6W41VGtk2hKWQGqzmZY0ka/P+/wGxdfm9SvPj0ia9ZgwrckFSRKEq 6Bh0gevDeC7v1EUP523oGGM/Fbp2pGfcozlyivO6lWDOpAwX+AXqZz8ZMVPhWeRuQT 17E58SoR5y4Z9Rav2es2LaiLb/w0yTbVmCBoijr0ffKRsVIhcdi3nIkQ/pvO9waT5N wqmQ9RKv4cD5g== From: Vinod Koul To: Rob Herring , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] dt-bindings: arm: qcom: Document SM8450 SoC and boards Date: Wed, 1 Dec 2021 12:57:41 +0530 Message-Id: <20211201072745.3969077-4-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072745.3969077-1-vkoul@kernel.org> References: <20211201072745.3969077-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the SM8450 SoC binding and also the boards using it. Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index c8808e0f9e64..29a0bd3adac2 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -50,6 +50,7 @@ description: | sm8150 sm8250 sm8350 + sm8450 The 'board' element must be one of the following strings: @@ -257,6 +258,11 @@ properties: - qcom,sm8350-mtp - const: qcom,sm8350 + - items: + - enum: + - qcom,sm8450-qrd + - const: qcom,sm8450 + additionalProperties: true ... From patchwork Wed Dec 1 07:27:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649309 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 0D4ECC433F5 for ; Wed, 1 Dec 2021 07:28:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347485AbhLAHbu (ORCPT ); Wed, 1 Dec 2021 02:31:50 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:54674 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347473AbhLAHbn (ORCPT ); Wed, 1 Dec 2021 02:31:43 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 57D47CE1D67; Wed, 1 Dec 2021 07:28:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EC16C53FD0; Wed, 1 Dec 2021 07:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343699; bh=zhxHJuzYAveagNyTB69dXGUwL7DdrowBNHe+1EIkRtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IJsd9wPQDqL3Q4vn3n9gJyEVSvVC3+9gfbD5JuR7B2MTG1foOQ+I8M6D9UJKSuahm YheFeMA5C+aFomfRkO7EM2sFJriJjmUK3rP7NmtWFhjNnxdifUh7JVAAC3OuNXvVY+ yHhYpts4tCTfI73GTkf+blMRV1He69H2ZZFzkTaA9ObKbco6Yn+vUnsBKWm2FTp96Z vooVANPujDyNo992JVZQgHu2X4xCSsRFWkTLBi6BY8KYiKk3dId0gAQDacrul5iJQ+ PEPqJjvaHbxjGZWfbChbEIOKt8pbWJX1VFPW0dbhk/AQaGSrocoBsZvtWGjrwZcwlT xS/9P0tUIUJ/Q== From: Vinod Koul To: Rob Herring , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Dmitry Baryshkov , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 4/7] soc: qcom: smem: Update max processor count Date: Wed, 1 Dec 2021 12:57:42 +0530 Message-Id: <20211201072745.3969077-5-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072745.3969077-1-vkoul@kernel.org> References: <20211201072745.3969077-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Dmitry Baryshkov Update max processor count to reflect the number of co-processors on SM8450 SoCs. Signed-off-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- drivers/soc/qcom/smem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/smem.c b/drivers/soc/qcom/smem.c index c7e519bfdc8a..e2057d8f1eff 100644 --- a/drivers/soc/qcom/smem.c +++ b/drivers/soc/qcom/smem.c @@ -85,7 +85,7 @@ #define SMEM_GLOBAL_HOST 0xfffe /* Max number of processors/hosts in a system */ -#define SMEM_HOST_COUNT 14 +#define SMEM_HOST_COUNT 15 /** * struct smem_proc_comm - proc_comm communication struct (legacy) From patchwork Wed Dec 1 07:27:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649307 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 64836C433F5 for ; Wed, 1 Dec 2021 07:28:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347435AbhLAHbu (ORCPT ); Wed, 1 Dec 2021 02:31:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347439AbhLAHbq (ORCPT ); Wed, 1 Dec 2021 02:31:46 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62CCC061746; Tue, 30 Nov 2021 23:28:25 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 3F9A3CE1D7B; Wed, 1 Dec 2021 07:28:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28C4FC56747; Wed, 1 Dec 2021 07:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343702; bh=C38brKdWsmgfc5PNBBGCSNZfQghFdnJ/M9AOlulZ1v8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lAQyTpaGcsnHbZiXls0laE9J4zH6bV4klleJdlAWxoVAtSsMlK1Co0eaagUpfMoa5 0U1/2JcQ25+7mAYtax+W/NR369yzyU5L+qCytbrzyFZHxOlzX0E6dP2DzoDqlo0Flq mXErMY8+i8EuSJjYdrv60lzF1CAIodX2MSY1EIAxDOxDEfxJGImwg+WpNQbKP0Q8se n/eFy5Tz5gfI24LZc6tJodAt767T/UlxAuLuxN5D2n8vQvpP1+BoLSCUP9psasiHmd rbAgz7FgzfaO6tgjP0ls+pOmDaeVmbz3uyMY+8dqG4X3KCCGbFDsfTmkAmP+Ml7fTh lT+CI6KzRRsvw== From: Vinod Koul To: Rob Herring , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Dmitry Baryshkov , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 5/7] dt-bindings: power: rpmpd: Add SM8450 to rpmpd binding Date: Wed, 1 Dec 2021 12:57:43 +0530 Message-Id: <20211201072745.3969077-6-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072745.3969077-1-vkoul@kernel.org> References: <20211201072745.3969077-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Dmitry Baryshkov Add compatible and constants for the power domains exposed by the RPMH in the Qualcomm SM8450 platform. Signed-off-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 + include/dt-bindings/power/qcom-rpmpd.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index e810480e3eb7..a51f7d6c58b7 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -36,6 +36,7 @@ properties: - qcom,sm8150-rpmhpd - qcom,sm8250-rpmhpd - qcom,sm8350-rpmhpd + - qcom,sm8450-rpmhpd '#power-domain-cells': const: 1 diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 960f7976a807..535d7addd382 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -68,6 +68,21 @@ #define SM8350_MXC_AO 11 #define SM8350_MSS 12 +/* SM8450 Power Domain Indexes */ +#define SM8450_CX 0 +#define SM8450_CX_AO 1 +#define SM8450_EBI 2 +#define SM8450_GFX 3 +#define SM8450_LCX 4 +#define SM8450_LMX 5 +#define SM8450_MMCX 6 +#define SM8450_MMCX_AO 7 +#define SM8450_MX 8 +#define SM8450_MX_AO 9 +#define SM8450_MXC 10 +#define SM8450_MXC_AO 11 +#define SM8450_MSS 12 + /* SC7180 Power Domain Indexes */ #define SC7180_CX 0 #define SC7180_CX_AO 1 From patchwork Wed Dec 1 07:27:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649311 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 9AE3CC43217 for ; Wed, 1 Dec 2021 07:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347495AbhLAHbw (ORCPT ); Wed, 1 Dec 2021 02:31:52 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:54734 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347470AbhLAHbt (ORCPT ); Wed, 1 Dec 2021 02:31:49 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 2B56CCE1D74; Wed, 1 Dec 2021 07:28:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12D03C53FCE; Wed, 1 Dec 2021 07:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343705; bh=pFW9LLeGFw6OFl+VdNxQE9t4wzrVcZdf1yS0WSs+cFg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pkzyv2vCJiDoN6dJJEQevuSWnKvXajRjtI5o//ZGegx3kwlVUX2Ztywep+/FO3rt+ Rz5AR0+fkzI2bv+7zaKLnEZASqvg/pWZLVv5qwCyQrjRIaytSt8OFrg5XWX1qYYJnr lkeF/kkZDny/MJ+9JamZAKRTVufUGbcg8KcuwtmeQbbt9Vcpz40vNY9D3nl/eQ9lBo Krb/iPcLxqSWvu1vzmYrsNLPhkJaWnpcAcbZcWoSeWp0fE1TsT9/jpe6h5fNf1sU6a Qf1kqbozHgelxGjnis5iQHbyPsPqmdPXTbuHaDZXfV7P8DupvS3yI9ha8YbbTDt5sm sHlHsC51SMjLw== From: Vinod Koul To: Rob Herring , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Dmitry Baryshkov , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 6/7] soc: qcom: rpmhpd: Add SM8450 power domains Date: Wed, 1 Dec 2021 12:57:44 +0530 Message-Id: <20211201072745.3969077-7-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072745.3969077-1-vkoul@kernel.org> References: <20211201072745.3969077-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Dmitry Baryshkov Add the power domains exposed by RPMH in the Qualcomm SM8450 platform. Unlike previous generations CX domain is not a child of MX domain. Signed-off-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- drivers/soc/qcom/rpmhpd.c | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 1118345d8824..e7e150ce1b1a 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -253,6 +253,57 @@ static const struct rpmhpd_desc sm8350_desc = { .num_pds = ARRAY_SIZE(sm8350_rpmhpds), }; +/* SM8450 RPMH powerdomains */ +static struct rpmhpd sm8450_cx_ao; +static struct rpmhpd sm8450_cx = { + .pd = { .name = "cx", }, + .peer = &sm8450_cx_ao, + .res_name = "cx.lvl", +}; + +static struct rpmhpd sm8450_cx_ao = { + .pd = { .name = "cx_ao", }, + .active_only = true, + .res_name = "cx.lvl", +}; + +static struct rpmhpd sm8450_mmcx_ao; +static struct rpmhpd sm8450_mmcx = { + .pd = { .name = "mmcx", }, + .peer = &sm8450_mmcx_ao, + .parent = &sm8450_cx.pd, + .res_name = "mmcx.lvl", +}; + +static struct rpmhpd sm8450_mmcx_ao = { + .pd = { .name = "mmcx_ao", }, + .active_only = true, + .peer = &sm8450_mmcx, + .parent = &sm8450_cx_ao.pd, + .res_name = "mmcx.lvl", +}; + +static struct rpmhpd *sm8450_rpmhpds[] = { + [SM8450_CX] = &sm8450_cx, + [SM8450_CX_AO] = &sm8450_cx_ao, + [SM8450_EBI] = &sdm845_ebi, + [SM8450_GFX] = &sdm845_gfx, + [SM8450_LCX] = &sdm845_lcx, + [SM8450_LMX] = &sdm845_lmx, + [SM8450_MMCX] = &sm8450_mmcx, + [SM8450_MMCX_AO] = &sm8450_mmcx_ao, + [SM8450_MX] = &sdm845_mx, + [SM8450_MX_AO] = &sdm845_mx_ao, + [SM8450_MXC] = &sm8350_mxc, + [SM8450_MXC_AO] = &sm8350_mxc_ao, + [SM8450_MSS] = &sdm845_mss, +}; + +static const struct rpmhpd_desc sm8450_desc = { + .rpmhpds = sm8450_rpmhpds, + .num_pds = ARRAY_SIZE(sm8450_rpmhpds), +}; + /* SC7180 RPMH powerdomains */ static struct rpmhpd *sc7180_rpmhpds[] = { [SC7180_CX] = &sdm845_cx, @@ -318,6 +369,7 @@ static const struct of_device_id rpmhpd_match_table[] = { { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc }, { .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc }, { .compatible = "qcom,sm8350-rpmhpd", .data = &sm8350_desc }, + { .compatible = "qcom,sm8450-rpmhpd", .data = &sm8450_desc }, { } }; MODULE_DEVICE_TABLE(of, rpmhpd_match_table); From patchwork Wed Dec 1 07:27:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649313 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 B9B39C433EF for ; Wed, 1 Dec 2021 07:28:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347437AbhLAHb6 (ORCPT ); Wed, 1 Dec 2021 02:31:58 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:54766 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347489AbhLAHbw (ORCPT ); Wed, 1 Dec 2021 02:31:52 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 189B0CE1D7A; Wed, 1 Dec 2021 07:28:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3354C53FAD; Wed, 1 Dec 2021 07:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343708; bh=LwGeNInHF6Y97r5bRNYu6aqtEmm6rAjEZbygOJHjtXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DY8mwrxUEULE/bu9yYHNaQfBR3MGpAK0UKvFvbs+KF6TZ5awyJkJyH1l1kWUTJSI9 t+B59feX/Z5yxHbkbm0IQ+PPdIiaqFLj9Qhs7iYOojElbrRFNiAkbPI7m0pxx7mvkl vNbC+jYsDY0CXZwJRL9cPw7eoqMpKVResDTpvVOUu9x4pp7rJBcSHDGUwpPUpcftpa cZANCt+X1qIMQ+0J1sfVssTXK5d7iUwu0sdIPilC3mBmMhgS4BJUlMjEzbKlAgL9pL 8eE76v8GW4uZEVKuq3BC8AXoEr3b2eFrGgaGSGIV8VrSGIwu0S7KV9vhdTGW4Lyu2+ dOx4KdvT5etUg== From: Vinod Koul To: Rob Herring , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Dmitry Baryshkov , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 7/7] soc: qcom: socinfo: add SM8450 ID Date: Wed, 1 Dec 2021 12:57:45 +0530 Message-Id: <20211201072745.3969077-8-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072745.3969077-1-vkoul@kernel.org> References: <20211201072745.3969077-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Dmitry Baryshkov Add the ID for the Qualcomm SM8450 SoC. Signed-off-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- drivers/soc/qcom/socinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 9a0eb59405e8..113dc57b74c3 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -315,6 +315,7 @@ static const struct soc_id soc_id[] = { { 425, "SC7180" }, { 453, "IPQ6005" }, { 455, "QRB5165" }, + { 457, "SM8450" }, }; static const char *socinfo_machine(struct device *dev, unsigned int id)