* [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document the SM8650 RPMh Power Domains
2023-10-25 7:32 [PATCH 0/2] pmdomain: qcom: rpmhpd: Introduce Power Domains support for SM8650 Neil Armstrong
@ 2023-10-25 7:32 ` Neil Armstrong
2023-10-25 7:32 ` [PATCH 2/2] pmdomain: qcom: rpmhpd: Add " Neil Armstrong
2023-10-26 14:27 ` [PATCH 0/2] pmdomain: qcom: rpmhpd: Introduce Power Domains support for SM8650 Ulf Hansson
2 siblings, 0 replies; 5+ messages in thread
From: Neil Armstrong @ 2023-10-25 7:32 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Ulf Hansson
Cc: linux-arm-msm, devicetree, linux-kernel, linux-pm, Neil Armstrong
Document the RPMh Power Domains on the SM8650 Platform.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
include/dt-bindings/power/qcom,rpmhpd.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index d38c762e1280..2803f7d56821 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -55,6 +55,7 @@ properties:
- qcom,sm8350-rpmhpd
- qcom,sm8450-rpmhpd
- qcom,sm8550-rpmhpd
+ - qcom,sm8650-rpmhpd
- items:
- enum:
- qcom,msm8937-rpmpd
diff --git a/include/dt-bindings/power/qcom,rpmhpd.h b/include/dt-bindings/power/qcom,rpmhpd.h
index 7c201a66bc69..0f6a74e09970 100644
--- a/include/dt-bindings/power/qcom,rpmhpd.h
+++ b/include/dt-bindings/power/qcom,rpmhpd.h
@@ -26,5 +26,6 @@
#define RPMHPD_QPHY 16
#define RPMHPD_DDR 17
#define RPMHPD_XO 18
+#define RPMHPD_NSP2 19
#endif
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] pmdomain: qcom: rpmhpd: Add SM8650 RPMh Power Domains
2023-10-25 7:32 [PATCH 0/2] pmdomain: qcom: rpmhpd: Introduce Power Domains support for SM8650 Neil Armstrong
2023-10-25 7:32 ` [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document the SM8650 RPMh Power Domains Neil Armstrong
@ 2023-10-25 7:32 ` Neil Armstrong
2023-10-25 8:36 ` Dmitry Baryshkov
2023-10-26 14:27 ` [PATCH 0/2] pmdomain: qcom: rpmhpd: Introduce Power Domains support for SM8650 Ulf Hansson
2 siblings, 1 reply; 5+ messages in thread
From: Neil Armstrong @ 2023-10-25 7:32 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Ulf Hansson
Cc: linux-arm-msm, devicetree, linux-kernel, linux-pm, Neil Armstrong
Add RPMh Power Domains support for the SM8650 platform.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
drivers/pmdomain/qcom/rpmhpd.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c
index a631fe1f9a06..cf25ba1cac66 100644
--- a/drivers/pmdomain/qcom/rpmhpd.c
+++ b/drivers/pmdomain/qcom/rpmhpd.c
@@ -197,6 +197,11 @@ static struct rpmhpd nsp1 = {
.res_name = "nsp1.lvl",
};
+static struct rpmhpd nsp2 = {
+ .pd = { .name = "nsp2", },
+ .res_name = "nsp2.lvl",
+};
+
static struct rpmhpd qphy = {
.pd = { .name = "qphy", },
.res_name = "qphy.lvl",
@@ -475,6 +480,30 @@ static const struct rpmhpd_desc sm8550_desc = {
.num_pds = ARRAY_SIZE(sm8550_rpmhpds),
};
+/* SM8650 RPMH powerdomains */
+static struct rpmhpd *sm8650_rpmhpds[] = {
+ [RPMHPD_CX] = &cx,
+ [RPMHPD_CX_AO] = &cx_ao,
+ [RPMHPD_EBI] = &ebi,
+ [RPMHPD_GFX] = &gfx,
+ [RPMHPD_LCX] = &lcx,
+ [RPMHPD_LMX] = &lmx,
+ [RPMHPD_MMCX] = &mmcx_w_cx_parent,
+ [RPMHPD_MMCX_AO] = &mmcx_ao_w_cx_parent,
+ [RPMHPD_MSS] = &mss,
+ [RPMHPD_MX] = &mx,
+ [RPMHPD_MX_AO] = &mx_ao,
+ [RPMHPD_MXC] = &mxc,
+ [RPMHPD_MXC_AO] = &mxc_ao,
+ [RPMHPD_NSP] = &nsp,
+ [RPMHPD_NSP2] = &nsp2,
+};
+
+static const struct rpmhpd_desc sm8650_desc = {
+ .rpmhpds = sm8650_rpmhpds,
+ .num_pds = ARRAY_SIZE(sm8650_rpmhpds),
+};
+
/* QDU1000/QRU1000 RPMH powerdomains */
static struct rpmhpd *qdu1000_rpmhpds[] = {
[QDU1000_CX] = &cx,
@@ -585,6 +614,7 @@ static const struct of_device_id rpmhpd_match_table[] = {
{ .compatible = "qcom,sm8350-rpmhpd", .data = &sm8350_desc },
{ .compatible = "qcom,sm8450-rpmhpd", .data = &sm8450_desc },
{ .compatible = "qcom,sm8550-rpmhpd", .data = &sm8550_desc },
+ { .compatible = "qcom,sm8650-rpmhpd", .data = &sm8650_desc },
{ }
};
MODULE_DEVICE_TABLE(of, rpmhpd_match_table);
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] pmdomain: qcom: rpmhpd: Introduce Power Domains support for SM8650
2023-10-25 7:32 [PATCH 0/2] pmdomain: qcom: rpmhpd: Introduce Power Domains support for SM8650 Neil Armstrong
2023-10-25 7:32 ` [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document the SM8650 RPMh Power Domains Neil Armstrong
2023-10-25 7:32 ` [PATCH 2/2] pmdomain: qcom: rpmhpd: Add " Neil Armstrong
@ 2023-10-26 14:27 ` Ulf Hansson
2 siblings, 0 replies; 5+ messages in thread
From: Ulf Hansson @ 2023-10-26 14:27 UTC (permalink / raw)
To: Neil Armstrong
Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
linux-kernel, linux-pm
On Wed, 25 Oct 2023 at 09:32, Neil Armstrong <neil.armstrong@linaro.org> wrote:
>
> Add Power Domains and Bindings for SM8650 platform, it uses
> a new NSP2 power domain.
>
> Dependencies: None
>
> For convenience, a regularly refreshed linux-next based git tree containing
> all the SM8650 related work is available at:
> https://git.codelinaro.org/neil.armstrong/linux/-/tree/topic/sm85650/upstream/integ
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> Neil Armstrong (2):
> dt-bindings: power: qcom,rpmpd: document the SM8650 RPMh Power Domains
> pmdomain: qcom: rpmhpd: Add SM8650 RPMh Power Domains
>
> .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
> drivers/pmdomain/qcom/rpmhpd.c | 30 ++++++++++++++++++++++
> include/dt-bindings/power/qcom,rpmhpd.h | 1 +
> 3 files changed, 32 insertions(+)
Applied for next, thanks!
Kind regards
Uffe
^ permalink raw reply [flat|nested] 5+ messages in thread