[PATCH] soc: qcom: pd-mapper: Add support for SM7635

Alexander Koskovich posted 1 patch 1 month, 3 weeks ago
drivers/soc/qcom/qcom_pd_mapper.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] soc: qcom: pd-mapper: Add support for SM7635
Posted by Alexander Koskovich 1 month, 3 weeks ago
Add support for the Qualcomm SM7635 SoC to the protection domain
mapper. SM7635 shares the same protection domain configuration as
SM8550, so reuse the existing SM8550 domain data.

Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
---
 drivers/soc/qcom/qcom_pd_mapper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_mapper.c
index 6384f271953d..7cc7f261f6ba 100644
--- a/drivers/soc/qcom/qcom_pd_mapper.c
+++ b/drivers/soc/qcom/qcom_pd_mapper.c
@@ -552,6 +552,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = {
 	{ .compatible = "qcom,apq8074", .data = NULL, },
 	{ .compatible = "qcom,apq8084", .data = NULL, },
 	{ .compatible = "qcom,apq8096", .data = msm8996_domains, },
+	{ .compatible = "qcom,milos", .data = sm8550_domains, },
 	{ .compatible = "qcom,msm8226", .data = NULL, },
 	{ .compatible = "qcom,msm8909", .data = NULL, },
 	{ .compatible = "qcom,msm8916", .data = NULL, },
-- 
2.47.3
Re: [PATCH] soc: qcom: pd-mapper: Add support for SM7635
Posted by Luca Weiss 1 month, 3 weeks ago
On Sun Dec 14, 2025 at 8:47 AM CET, Alexander Koskovich wrote:
> Add support for the Qualcomm SM7635 SoC to the protection domain
> mapper. SM7635 shares the same protection domain configuration as
> SM8550, so reuse the existing SM8550 domain data.

I'm a bit questioning mentioning SM7635 in the subject and here, might
not be immediately be obvious for people that SM7635=Milos, but fine
with me.

>
> Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
> ---
>  drivers/soc/qcom/qcom_pd_mapper.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_mapper.c
> index 6384f271953d..7cc7f261f6ba 100644
> --- a/drivers/soc/qcom/qcom_pd_mapper.c
> +++ b/drivers/soc/qcom/qcom_pd_mapper.c
> @@ -552,6 +552,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = {
>  	{ .compatible = "qcom,apq8074", .data = NULL, },
>  	{ .compatible = "qcom,apq8084", .data = NULL, },
>  	{ .compatible = "qcom,apq8096", .data = msm8996_domains, },
> +	{ .compatible = "qcom,milos", .data = sm8550_domains, },

That's also what I have in my milos-mainline tree

https://github.com/milos-mainline/linux/commit/77083786532c6871e2a966aacd2f797208f27ae9

Not sure what tree you're using since milos is not fully upstream yet
(waiting for maintainers...), but worth checking my tree before
developing commits in your side.

Reviewed-by: Luca Weiss <luca.weiss@fairphone.com>

But your patch won't apply to v6.19-rc1 due to conflicts so you'll want
to rebase.

Regards
Luca


>  	{ .compatible = "qcom,msm8226", .data = NULL, },
>  	{ .compatible = "qcom,msm8909", .data = NULL, },
>  	{ .compatible = "qcom,msm8916", .data = NULL, },
Re: [PATCH] soc: qcom: pd-mapper: Add support for SM7635
Posted by Alexander Koskovich 1 month, 3 weeks ago
On Tuesday, December 16th, 2025 at 4:18 AM, Luca Weiss <luca.weiss@fairphone.com> wrote:
> Not sure what tree you're using since milos is not fully upstream yet
> (waiting for maintainers...), but worth checking my tree before
> developing commits in your side.

Sorry about that! Was referencing a stale tree and didn't notice the change already exists elsewhere, will drop this patch.
Re: [PATCH] soc: qcom: pd-mapper: Add support for SM7635
Posted by Dmitry Baryshkov 1 month, 3 weeks ago
On Sun, Dec 14, 2025 at 07:47:45AM +0000, Alexander Koskovich wrote:
> Add support for the Qualcomm SM7635 SoC to the protection domain
> mapper. SM7635 shares the same protection domain configuration as
> SM8550, so reuse the existing SM8550 domain data.
> 
> Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
> ---
>  drivers/soc/qcom/qcom_pd_mapper.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry