This series adds RPMH support for Qualcomm SM7150 SoC.
Changes in v2:
- Use generic RPMh PD indexes.
- Link to v1:
https://lore.kernel.org/all/[email protected]/
Danila Tikhonov (2):
dt-bindings: power: qcom,rpmpd: Add SM7150
pmdomain: qcom: rpmhpd: Add support for SM7150 rpmh clocks
.../devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
drivers/pmdomain/qcom/rpmhpd.c | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
--
2.41.0
This adds the RPMH clocks present in SM7150 SoC.
Signed-off-by: Danila Tikhonov <[email protected]>
---
drivers/pmdomain/qcom/rpmhpd.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c
index a87e336d5e33..ec2582f7225c 100644
--- a/drivers/pmdomain/qcom/rpmhpd.c
+++ b/drivers/pmdomain/qcom/rpmhpd.c
@@ -337,6 +337,23 @@ static const struct rpmhpd_desc sm6350_desc = {
.num_pds = ARRAY_SIZE(sm6350_rpmhpds),
};
+/* SM7150 RPMH powerdomains */
+static struct rpmhpd *sm7150_rpmhpds[] = {
+ [RPMHPD_CX] = &cx_w_mx_parent,
+ [RPMHPD_CX_AO] = &cx_ao_w_mx_parent,
+ [RPMHPD_GFX] = &gfx,
+ [RPMHPD_LCX] = &lcx,
+ [RPMHPD_LMX] = &lmx,
+ [RPMHPD_MX] = &mx,
+ [RPMHPD_MX_AO] = &mx_ao,
+ [RPMHPD_MSS] = &mss,
+};
+
+static const struct rpmhpd_desc sm7150_desc = {
+ .rpmhpds = sm7150_rpmhpds,
+ .num_pds = ARRAY_SIZE(sm7150_rpmhpds),
+};
+
/* SM8150 RPMH powerdomains */
static struct rpmhpd *sm8150_rpmhpds[] = {
[SM8150_CX] = &cx_w_mx_parent,
@@ -562,6 +579,7 @@ static const struct of_device_id rpmhpd_match_table[] = {
{ .compatible = "qcom,sdx65-rpmhpd", .data = &sdx65_desc},
{ .compatible = "qcom,sdx75-rpmhpd", .data = &sdx75_desc},
{ .compatible = "qcom,sm6350-rpmhpd", .data = &sm6350_desc },
+ { .compatible = "qcom,sm7150-rpmhpd", .data = &sm7150_desc },
{ .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
{ .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
{ .compatible = "qcom,sm8350-rpmhpd", .data = &sm8350_desc },
--
2.41.0
On Sat, 16 Sept 2023 at 19:59, Danila Tikhonov <[email protected]> wrote:
>
> This series adds RPMH support for Qualcomm SM7150 SoC.
>
> Changes in v2:
> - Use generic RPMh PD indexes.
> - Link to v1:
> https://lore.kernel.org/all/[email protected]/
>
> Danila Tikhonov (2):
> dt-bindings: power: qcom,rpmpd: Add SM7150
> pmdomain: qcom: rpmhpd: Add support for SM7150 rpmh clocks
>
> .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
> drivers/pmdomain/qcom/rpmhpd.c | 18 ++++++++++++++++++
> 2 files changed, 19 insertions(+)
>
Applied for next, thanks!
Kind regards
Uffe
On 16.09.2023 19:59, Danila Tikhonov wrote:
> This adds the RPMH clocks present in SM7150 SoC.
>
> Signed-off-by: Danila Tikhonov <[email protected]>
> ---
Reviewed-by: Konrad Dybcio <[email protected]>
Konrad