* [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding
@ 2021-03-02 5:48 Rajendra Nayak
2021-03-02 5:48 ` [PATCH 2/2] soc: qcom: rpmhpd: Add sc7280 powerdomains Rajendra Nayak
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Rajendra Nayak @ 2021-03-02 5:48 UTC (permalink / raw)
To: agross, bjorn.andersson, robh+dt
Cc: linux-arm-msm, devicetree, linux-kernel, Rajendra Nayak
Add compatible and constants for the power domains exposed by the RPMH
in the Qualcomm Technologies Inc sc7280 platform.
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
---
Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
include/dt-bindings/power/qcom-rpmpd.h | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index 1ea21ac..e2179a6 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -25,6 +25,7 @@ properties:
- qcom,qcs404-rpmpd
- qcom,sdm660-rpmpd
- qcom,sc7180-rpmhpd
+ - qcom,sc7280-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 d711e25..0679fd1 100644
--- a/include/dt-bindings/power/qcom-rpmpd.h
+++ b/include/dt-bindings/power/qcom-rpmpd.h
@@ -55,6 +55,17 @@
#define SC7180_LCX 6
#define SC7180_MSS 7
+/* SC7280 Power Domain Indexes */
+#define SC7280_CX 0
+#define SC7280_CX_AO 1
+#define SC7280_EBI 2
+#define SC7280_GFX 3
+#define SC7280_MX 4
+#define SC7280_MX_AO 5
+#define SC7280_LMX 6
+#define SC7280_LCX 7
+#define SC7280_MSS 8
+
/* SDM845 Power Domain performance levels */
#define RPMH_REGULATOR_LEVEL_RETENTION 16
#define RPMH_REGULATOR_LEVEL_MIN_SVS 48
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] soc: qcom: rpmhpd: Add sc7280 powerdomains
2021-03-02 5:48 [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding Rajendra Nayak
@ 2021-03-02 5:48 ` Rajendra Nayak
2021-03-08 18:39 ` [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding Rob Herring
2021-03-08 18:50 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: Rajendra Nayak @ 2021-03-02 5:48 UTC (permalink / raw)
To: agross, bjorn.andersson, robh+dt
Cc: linux-arm-msm, devicetree, linux-kernel, Rajendra Nayak
Add the power domains exposed by RPMH in the Qualcomm Technologies Inc
sc7280 platform
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
---
drivers/soc/qcom/rpmhpd.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
index 7ce0635..2a0c55f 100644
--- a/drivers/soc/qcom/rpmhpd.c
+++ b/drivers/soc/qcom/rpmhpd.c
@@ -217,8 +217,27 @@ static const struct rpmhpd_desc sc7180_desc = {
.num_pds = ARRAY_SIZE(sc7180_rpmhpds),
};
+/* SC7280 RPMH powerdomains */
+static struct rpmhpd *sc7280_rpmhpds[] = {
+ [SC7280_CX] = &sdm845_cx,
+ [SC7280_CX_AO] = &sdm845_cx_ao,
+ [SC7280_EBI] = &sdm845_ebi,
+ [SC7280_GFX] = &sdm845_gfx,
+ [SC7280_MX] = &sdm845_mx,
+ [SC7280_MX_AO] = &sdm845_mx_ao,
+ [SC7280_LMX] = &sdm845_lmx,
+ [SC7280_LCX] = &sdm845_lcx,
+ [SC7280_MSS] = &sdm845_mss,
+};
+
+static const struct rpmhpd_desc sc7280_desc = {
+ .rpmhpds = sc7280_rpmhpds,
+ .num_pds = ARRAY_SIZE(sc7280_rpmhpds),
+};
+
static const struct of_device_id rpmhpd_match_table[] = {
{ .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },
+ { .compatible = "qcom,sc7280-rpmhpd", .data = &sc7280_desc },
{ .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
{ .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc},
{ .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding
2021-03-02 5:48 [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding Rajendra Nayak
2021-03-02 5:48 ` [PATCH 2/2] soc: qcom: rpmhpd: Add sc7280 powerdomains Rajendra Nayak
@ 2021-03-08 18:39 ` Rob Herring
2021-03-08 18:50 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2021-03-08 18:39 UTC (permalink / raw)
To: Rajendra Nayak
Cc: devicetree, linux-kernel, linux-arm-msm, bjorn.andersson, agross,
robh+dt
On Tue, 02 Mar 2021 11:18:11 +0530, Rajendra Nayak wrote:
> Add compatible and constants for the power domains exposed by the RPMH
> in the Qualcomm Technologies Inc sc7280 platform.
>
> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
> ---
> Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
> include/dt-bindings/power/qcom-rpmpd.h | 11 +++++++++++
> 2 files changed, 12 insertions(+)
>
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding
2021-03-02 5:48 [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding Rajendra Nayak
2021-03-02 5:48 ` [PATCH 2/2] soc: qcom: rpmhpd: Add sc7280 powerdomains Rajendra Nayak
2021-03-08 18:39 ` [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding Rob Herring
@ 2021-03-08 18:50 ` patchwork-bot+linux-arm-msm
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2021-03-08 18:50 UTC (permalink / raw)
To: Rajendra Nayak; +Cc: linux-arm-msm
Hello:
This series was applied to qcom/linux.git (refs/heads/for-next):
On Tue, 2 Mar 2021 11:18:11 +0530 you wrote:
> Add compatible and constants for the power domains exposed by the RPMH
> in the Qualcomm Technologies Inc sc7280 platform.
>
> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
> ---
> Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
> include/dt-bindings/power/qcom-rpmpd.h | 11 +++++++++++
> 2 files changed, 12 insertions(+)
Here is the summary with links:
- [1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding
https://git.kernel.org/qcom/c/29c8bf8b73e8
- [2/2] soc: qcom: rpmhpd: Add sc7280 powerdomains
https://git.kernel.org/qcom/c/cab641cbea3e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-08 18:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 5:48 [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding Rajendra Nayak
2021-03-02 5:48 ` [PATCH 2/2] soc: qcom: rpmhpd: Add sc7280 powerdomains Rajendra Nayak
2021-03-08 18:39 ` [PATCH 1/2] dt-bindings: power: rpmpd: Add sc7280 to rpmpd binding Rob Herring
2021-03-08 18:50 ` patchwork-bot+linux-arm-msm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).