From patchwork Thu Dec 9 10:35:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 522582 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 2B401C433F5 for ; Thu, 9 Dec 2021 10:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235046AbhLIKja (ORCPT ); Thu, 9 Dec 2021 05:39:30 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:60382 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234993AbhLIKjZ (ORCPT ); Thu, 9 Dec 2021 05:39:25 -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 D2DF0B8243B; Thu, 9 Dec 2021 10:35:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF7DAC004DD; Thu, 9 Dec 2021 10:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639046149; bh=nS7RihwwceKajO4Sxa4ZMP1W5Sf8YYdGONzlXuO+0eo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dVsdm0dGYU43L0HD1iQTXtZNM66k7WaanxT0nJ5nrH61rJeeXcHvSBUoFW7KFuXGW zLbkvzqbordLuY7ojzXokYtrph1UBKaLviZHixFt0Rh5fM8Mh5TB1w5f96PIizuxsw +z+DxYHNaX3cqGNfRvbViP7ZTm96WEsQPQZXVe6LuyZV8MVqQnb5VV9zcZjzhsHfQi 1XVy6SVC3jwpYTXr+mfRs3ZQyZJrSuwCmn6nwPs+KHYCLo1Tpzy2WPydQYvQTPEUzU LNCjFPksoe/7/YB/QfaTLE+RLpLVv+pT8KZKpF4jYlMHML7g9AC0osYVOl+TOg75aP NLV3Q/bcj3rRw== 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, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH v2 11/13] arm64: dts: qcom: sm8450: Add rpmhpd node Date: Thu, 9 Dec 2021 16:05:03 +0530 Message-Id: <20211209103505.197453-12-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211209103505.197453-1-vkoul@kernel.org> References: <20211209103505.197453-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 | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index b80e34fd3fe1..f303e12dbfb7 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include / { @@ -888,6 +889,57 @@ 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 = ; + }; + }; + }; + }; gem_noc: interconnect@19100000 {