mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rohit Agarwal <quic_rohiagar@quicinc.com>
To: agross@kernel.org, andersson@kernel.org,
	konrad.dybcio@linaro.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Rohit Agarwal <quic_rohiagar@quicinc.com>
Subject: [PATCH 7/8] arm64: dts: qcom: sdx75: Add rpmhpd node
Date: Wed,  2 Aug 2023 15:29:25 +0530	[thread overview]
Message-ID: <1690970366-30982-8-git-send-email-quic_rohiagar@quicinc.com> (raw)
In-Reply-To: <1690970366-30982-1-git-send-email-quic_rohiagar@quicinc.com>

Add rpmhpd node and opps for this node to the SDX75 dts.

Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
 arch/arm64/boot/dts/qcom/sdx75.dtsi | 51 +++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdx75.dtsi b/arch/arm64/boot/dts/qcom/sdx75.dtsi
index 5e9602cd..3a1d37a 100644
--- a/arch/arm64/boot/dts/qcom/sdx75.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdx75.dtsi
@@ -9,6 +9,7 @@
 #include <dt-bindings/clock/qcom,rpmh.h>
 #include <dt-bindings/clock/qcom,sdx75-gcc.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/power/qcom,rpmhpd.h>
 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
 
 / {
@@ -666,6 +667,56 @@
 				clock-names = "xo";
 				#clock-cells = <1>;
 			};
+
+			rpmhpd: power-controller {
+				compatible = "qcom,sdx75-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 = <RPMH_REGULATOR_LEVEL_RETENTION>;
+					};
+
+					rpmhpd_opp_min_svs: opp2 {
+						opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
+					};
+
+					rpmhpd_opp_low_svs: opp3 {
+						opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
+					};
+
+					rpmhpd_opp_svs: opp4 {
+						opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
+					};
+
+					rpmhpd_opp_svs_l1: opp5 {
+						opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
+					};
+
+					rpmhpd_opp_nom: opp6 {
+						opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
+					};
+
+					rpmhpd_opp_nom_l1: opp7 {
+						opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
+					};
+
+					rpmhpd_opp_nom_l2: opp8 {
+						opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
+					};
+
+					rpmhpd_opp_turbo: opp9 {
+						opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
+					};
+
+					rpmhpd_opp_turbo_l1: opp10 {
+						opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
+					};
+				};
+			};
 		};
 
 		cpufreq_hw: cpufreq@17d91000 {
-- 
2.7.4


  parent reply	other threads:[~2023-08-02 10:02 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-02  9:59 [PATCH 0/8] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
2023-08-02  9:59 ` [PATCH 1/8] arm64: dts: qcom: sdx75: Add spmi node Rohit Agarwal
2023-08-02 12:40   ` Konrad Dybcio
2023-08-02 13:07     ` Rohit Agarwal
2023-08-02  9:59 ` [PATCH 2/8] arm64: dts: qcom: Add pinctrl gpio support for pm7250b Rohit Agarwal
2023-08-02 12:41   ` Konrad Dybcio
2023-08-02  9:59 ` [PATCH 3/8] arm64: dts: qcom: Add PMIC pm7550ba dtsi Rohit Agarwal
2023-08-02 12:42   ` Konrad Dybcio
2023-08-02 13:13     ` Rohit Agarwal
2023-08-02 13:14       ` Konrad Dybcio
2023-08-02 13:19         ` Rohit Agarwal
2023-08-03  5:06         ` Pavan Kondeti
2023-08-04 16:58           ` Konrad Dybcio
2023-08-07  4:41             ` Pavan Kondeti
2023-08-02  9:59 ` [PATCH 4/8] arm64: dts: qcom: Add PMIC pmx75 dtsi Rohit Agarwal
2023-08-02 12:46   ` Konrad Dybcio
2023-08-02 13:13     ` Rohit Agarwal
2023-08-02  9:59 ` [PATCH 5/8] ARM: dts: qcom: sdx65-mtp: Update the pmic used in sdx65 Rohit Agarwal
2023-08-02 12:46   ` Konrad Dybcio
2023-08-02 13:17     ` Rohit Agarwal
2023-08-02  9:59 ` [PATCH 6/8] arm64: dts: qcom: sdx75-idp: Add pmics supported in SDX75 Rohit Agarwal
2023-08-02  9:59 ` Rohit Agarwal [this message]
2023-08-02 12:48   ` [PATCH 7/8] arm64: dts: qcom: sdx75: Add rpmhpd node Konrad Dybcio
2023-08-02 13:17     ` Rohit Agarwal
2023-08-02  9:59 ` [PATCH 8/8] arm64: dts: qcom: sdx75-idp: Add regulator nodes Rohit Agarwal
2023-08-02 12:49   ` Konrad Dybcio
2023-08-02 17:57     ` Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1690970366-30982-8-git-send-email-quic_rohiagar@quicinc.com \
    --to=quic_rohiagar@quicinc.com \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®