From patchwork Wed Dec 15 04:34:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12691904 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 45D35C433EF for ; Wed, 15 Dec 2021 04:35:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239740AbhLOEf0 (ORCPT ); Tue, 14 Dec 2021 23:35:26 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:46610 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239750AbhLOEfY (ORCPT ); Tue, 14 Dec 2021 23:35:24 -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 80E56CE19FE; Wed, 15 Dec 2021 04:35:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E36BC3460B; Wed, 15 Dec 2021 04:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639542920; bh=3MItG0wNgCNBgLYtrgkE/oMfbnjgT58GogXqb80fJd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LFcppvpM5ogA9CcfCiWclLb7Y/tfucbiOXfNX4VFl79+Sk4AMkEcqgFtUFZioy2jU G4Mu4RzNTsjqWHFVIG7LTleaLw9SansppC6ohs0k7yZ7iafObDw0fgSOdatoVtsqNS PuTDCnsf8Ab4wVh41bvbkB8G8b23042pWXY2hAHjS0zyhCfOCGG8xgWzdoLfakIHYw n8963zoPGD6814f0QCL9iSM8K51woGOqk8mh0p615lYomeLsII62MREy+qT/1Vm+QE tGAE6MN1nUpucxyw6sNYyYAdQ+2rSulMTw55V5gw6u06SWdkqDQJM1upbqwkceTC7S AY3+5mESOwtRw== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Dmitry Baryshkov , Andy Gross , Rob Herring , Konrad Dybcio , devicetree@vger.kernel.org, Vinod Koul Subject: [PATCH v3 09/11] arm64: dts: qcom: sm8450: Add rpmhpd node Date: Wed, 15 Dec 2021 10:04:38 +0530 Message-Id: <20211215043440.605624-10-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211215043440.605624-1-vkoul@kernel.org> References: <20211215043440.605624-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Dmitry Baryshkov This adds RPMH power domain found in SM8450 SoC Signed-off-by: Dmitry Baryshkov Signed-off-by: Vinod Koul Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 9556d2fc46e0..8fff4d54933f 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include #include / { @@ -814,6 +815,56 @@ rpmhcc: clock-controller { clock-names = "xo"; clocks = <&xo_board>; }; + + rpmhpd: power-controller { + compatible = "qcom,sm8450-rpmhpd"; + #power-domain-cells = <1>; + operating-points-v2 = <&rpmhpd_opp_table>; + + rpmhpd_opp_table: opp-table { + compatible = "operating-points-v2"; + + rpmhpd_opp_ret: opp1 { + opp-level = ; + }; + + rpmhpd_opp_min_svs: opp2 { + opp-level = ; + }; + + rpmhpd_opp_low_svs: opp3 { + opp-level = ; + }; + + rpmhpd_opp_svs: opp4 { + opp-level = ; + }; + + rpmhpd_opp_svs_l1: opp5 { + opp-level = ; + }; + + rpmhpd_opp_nom: opp6 { + opp-level = ; + }; + + rpmhpd_opp_nom_l1: opp7 { + opp-level = ; + }; + + rpmhpd_opp_nom_l2: opp8 { + opp-level = ; + }; + + rpmhpd_opp_turbo: opp9 { + opp-level = ; + }; + + rpmhpd_opp_turbo_l1: opp10 { + opp-level = ; + }; + }; + }; }; ufs_mem_hc: ufshc@1d84000 {