diff mbox series

[1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding

Message ID 20210120225037.1611353-1-bjorn.andersson@linaro.org
State New
Headers show
Series [1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding | expand

Commit Message

Bjorn Andersson Jan. 20, 2021, 10:50 p.m. UTC
Add compatible and constants for the power domains exposed by the RPMH
in the Qualcomm SC8180X platform.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

---
 .../devicetree/bindings/power/qcom,rpmpd.yaml       |  1 +
 include/dt-bindings/power/qcom-rpmpd.h              | 13 +++++++++++++
 2 files changed, 14 insertions(+)

-- 
2.29.2

Comments

Rob Herring (Arm) Feb. 9, 2021, 2:34 a.m. UTC | #1
On Wed, 20 Jan 2021 14:50:36 -0800, Bjorn Andersson wrote:
> Add compatible and constants for the power domains exposed by the RPMH
> in the Qualcomm SC8180X platform.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---
>  .../devicetree/bindings/power/qcom,rpmpd.yaml       |  1 +
>  include/dt-bindings/power/qcom-rpmpd.h              | 13 +++++++++++++
>  2 files changed, 14 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>
Shawn Guo May 11, 2021, 5 a.m. UTC | #2
On Wed, Jan 20, 2021 at 02:50:36PM -0800, Bjorn Andersson wrote:
> Add compatible and constants for the power domains exposed by the RPMH

> in the Qualcomm SC8180X platform.

> 

> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>


Looks good to me.  For both patches:

Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Vinod Koul May 11, 2021, 9:11 a.m. UTC | #3
On 20-01-21, 14:50, Bjorn Andersson wrote:
> Add compatible and constants for the power domains exposed by the RPMH

> in the Qualcomm SC8180X platform.


Reviewed-by: Vinod Koul <vkoul@kernel.org>


-- 
~Vinod
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index 64825128ee97..bdf454712b10 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -24,6 +24,7 @@  properties:
       - qcom,qcs404-rpmpd
       - qcom,sdm660-rpmpd
       - qcom,sc7180-rpmhpd
+      - qcom,sc8180x-rpmhpd
       - qcom,sdm845-rpmhpd
       - qcom,sdx55-rpmhpd
       - qcom,sm8150-rpmhpd
diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
index 7714487ac76b..5f07dc16f863 100644
--- a/include/dt-bindings/power/qcom-rpmpd.h
+++ b/include/dt-bindings/power/qcom-rpmpd.h
@@ -55,6 +55,19 @@ 
 #define SC7180_LCX	6
 #define SC7180_MSS	7
 
+/* SC8180X Power Domain Indexes */
+#define SC8180X_CX	0
+#define SC8180X_CX_AO	1
+#define SC8180X_EBI	2
+#define SC8180X_GFX	3
+#define SC8180X_LCX	4
+#define SC8180X_LMX	5
+#define SC8180X_MMCX	6
+#define SC8180X_MMCX_AO	7
+#define SC8180X_MSS	8
+#define SC8180X_MX	9
+#define SC8180X_MX_AO	10
+
 /* SDM845 Power Domain performance levels */
 #define RPMH_REGULATOR_LEVEL_RETENTION	16
 #define RPMH_REGULATOR_LEVEL_MIN_SVS	48