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

Srinivas Kandagatla posted 1 patch 1 week, 3 days ago
drivers/soc/qcom/qcom_pd_mapper.c | 9 +++++++++
1 file changed, 9 insertions(+)
[PATCH] soc: qcom: pd-mapper: Add support for Glymur
Posted by Srinivas Kandagatla 1 week, 3 days ago
Add Protection Domains for Qualcomm Glymur SoC which has both ADSP and
CDSP.

Adding this entry to the kernel driver will avoid the need for userspace
to provide this service.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
---
 drivers/soc/qcom/qcom_pd_mapper.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_mapper.c
index 05e66c497691..dbe4622a1bd7 100644
--- a/drivers/soc/qcom/qcom_pd_mapper.c
+++ b/drivers/soc/qcom/qcom_pd_mapper.c
@@ -360,6 +360,14 @@ static const struct qcom_pdm_domain_data mpss_wlan_pd = {
 	},
 };
 
+static const struct qcom_pdm_domain_data *glymur_domains[] = {
+	&adsp_audio_pd,
+	&adsp_root_pd,
+	&adsp_sensor_pd,
+	&cdsp_root_pd,
+	NULL,
+};
+
 static const struct qcom_pdm_domain_data *kaanapali_domains[] = {
 	&adsp_audio_pd,
 	&adsp_root_pd,
@@ -571,6 +579,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,glymur", .data = glymur_domains, },
 	{ .compatible = "qcom,kaanapali", .data = kaanapali_domains, },
 	{ .compatible = "qcom,milos", .data = sm8550_domains, },
 	{ .compatible = "qcom,msm8226", .data = NULL, },
-- 
2.47.3
Re: [PATCH] soc: qcom: pd-mapper: Add support for Glymur
Posted by Dmitry Baryshkov 1 week, 3 days ago
On Mon, Mar 23, 2026 at 11:05:23PM +0000, Srinivas Kandagatla wrote:
> Add Protection Domains for Qualcomm Glymur SoC which has both ADSP and
> CDSP.
> 
> Adding this entry to the kernel driver will avoid the need for userspace
> to provide this service.
> 
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
> ---
>  drivers/soc/qcom/qcom_pd_mapper.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> +	{ .compatible = "qcom,glymur", .data = glymur_domains, },

Please add an entry for qcom,mahua too. 

Other than that LGTM.

>  	{ .compatible = "qcom,kaanapali", .data = kaanapali_domains, },
>  	{ .compatible = "qcom,milos", .data = sm8550_domains, },
>  	{ .compatible = "qcom,msm8226", .data = NULL, },
> -- 
> 2.47.3
> 

-- 
With best wishes
Dmitry