[PATCH] soc: qcom: pd-mapper: Add support for SDM630/636

Alexey Minnekhanov posted 1 patch 10 months ago
drivers/soc/qcom/qcom_pd_mapper.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
[PATCH] soc: qcom: pd-mapper: Add support for SDM630/636
Posted by Alexey Minnekhanov 10 months ago
Add missing compatibles and pdm_domain_data for SDM630 and SDM636.

Unlike their older brother (SDM660) these two cut down SoCs lack CDSP.
Other protection domains are the same as the ones for SDM660.

Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
---
 drivers/soc/qcom/qcom_pd_mapper.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_mapper.c
index 154ca5beb471..1d1c438be3e7 100644
--- a/drivers/soc/qcom/qcom_pd_mapper.c
+++ b/drivers/soc/qcom/qcom_pd_mapper.c
@@ -429,6 +429,16 @@ static const struct qcom_pdm_domain_data *sc8280xp_domains[] = {
 	NULL,
 };
 
+/* Unlike SDM660, SDM630/636 lack CDSP */
+static const struct qcom_pdm_domain_data *sdm630_domains[] = {
+	&adsp_audio_pd,
+	&adsp_root_pd,
+	&adsp_sensor_pd,
+	&mpss_root_pd,
+	&mpss_wlan_pd,
+	NULL,
+};
+
 static const struct qcom_pdm_domain_data *sdm660_domains[] = {
 	&adsp_audio_pd,
 	&adsp_root_pd,
@@ -546,6 +556,8 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = {
 	{ .compatible = "qcom,sc7280", .data = sc7280_domains, },
 	{ .compatible = "qcom,sc8180x", .data = sc8180x_domains, },
 	{ .compatible = "qcom,sc8280xp", .data = sc8280xp_domains, },
+	{ .compatible = "qcom,sdm630", .data = sdm630_domains, },
+	{ .compatible = "qcom,sdm636", .data = sdm630_domains, },
 	{ .compatible = "qcom,sda660", .data = sdm660_domains, },
 	{ .compatible = "qcom,sdm660", .data = sdm660_domains, },
 	{ .compatible = "qcom,sdm670", .data = sdm670_domains, },
-- 
2.45.3
Re: [PATCH] soc: qcom: pd-mapper: Add support for SDM630/636
Posted by Bjorn Andersson 9 months, 1 week ago
On Mon, 17 Feb 2025 08:02:50 +0300, Alexey Minnekhanov wrote:
> Add missing compatibles and pdm_domain_data for SDM630 and SDM636.
> 
> Unlike their older brother (SDM660) these two cut down SoCs lack CDSP.
> Other protection domains are the same as the ones for SDM660.
> 
> 

Applied, thanks!

[1/1] soc: qcom: pd-mapper: Add support for SDM630/636
      commit: d4471b988582db2689692c81a577ce0421b60256

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>
Re: [PATCH] soc: qcom: pd-mapper: Add support for SDM630/636
Posted by Dmitry Baryshkov 10 months ago
On Mon, Feb 17, 2025 at 08:02:50AM +0300, Alexey Minnekhanov wrote:
> Add missing compatibles and pdm_domain_data for SDM630 and SDM636.
> 
> Unlike their older brother (SDM660) these two cut down SoCs lack CDSP.
> Other protection domains are the same as the ones for SDM660.
> 
> Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
> ---
>  drivers/soc/qcom/qcom_pd_mapper.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

-- 
With best wishes
Dmitry