mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300
@ 2026-06-08  8:41 Mohammad Rafi Shaik
  2026-06-08  8:41 ` [PATCH v4 1/2] soc: qcom: pd-mapper: Add support for SA8775P Mohammad Rafi Shaik
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mohammad Rafi Shaik @ 2026-06-08  8:41 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel

Add support for the Qualcomm SA8775P and QCS8300 SoCs to the
protection domain mapper. Add an entry to the kernel, to avoid
the need for userspace to provide this service.

changes in [v4]:
 - Added a gdsp protection domain for QCS8300 and cdsp1 for SA8775P.
 - Link to V3: https://lore.kernel.org/all/20260209112947.930853-1-mohammad.rafi.shaik@oss.qualcomm.com/

changes in [v3]:
 - Added a separate protection domain from QCS8300 as suggested by Dmitry.
 - Link to V2: https://lore.kernel.org/all/20260127144315.4125110-1-mohammad.rafi.shaik@oss.qualcomm.com/

changes in [v2]:
 - Added missing GPDSP protection domain configuration as suggested by Dmitry.
 - Link to V1: https://lore.kernel.org/all/20251230102508.1491296-1-mohammad.rafi.shaik@oss.qualcomm.com/

Mohammad Rafi Shaik (2):
  soc: qcom: pd-mapper: Add support for SA8775P
  soc: qcom: pd-mapper: Add support for QCS8300

 drivers/soc/qcom/qcom_pd_mapper.c | 38 +++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v4 1/2] soc: qcom: pd-mapper: Add support for SA8775P
  2026-06-08  8:41 [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300 Mohammad Rafi Shaik
@ 2026-06-08  8:41 ` Mohammad Rafi Shaik
  2026-06-08 10:17   ` Konrad Dybcio
  2026-06-08  8:41 ` [PATCH v4 2/2] soc: qcom: pd-mapper: Add support for QCS8300 Mohammad Rafi Shaik
  2026-07-08 14:56 ` [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300 Bjorn Andersson
  2 siblings, 1 reply; 6+ messages in thread
From: Mohammad Rafi Shaik @ 2026-06-08  8:41 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel

Add support for the Qualcomm SA8775P SoC to the protection
domain mapper. SA8775P share the same protection domain
configuration as SC8280XP with an additional gpdsp domain,
except for charger_pd.

Add an entry to the kernel, to avoid the need for userspace
to provide this service.

Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
 drivers/soc/qcom/qcom_pd_mapper.c | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_mapper.c
index b99718e25..03a5a3a73 100644
--- a/drivers/soc/qcom/qcom_pd_mapper.c
+++ b/drivers/soc/qcom/qcom_pd_mapper.c
@@ -311,6 +311,24 @@ static const struct qcom_pdm_domain_data cdsp_root_pd = {
 	.services = { NULL },
 };
 
+static const struct qcom_pdm_domain_data cdsp1_root_pd = {
+	.domain = "msm/cdsp1/root_pd",
+	.instance_id = 125,
+	.services = { NULL },
+};
+
+static const struct qcom_pdm_domain_data gpdsp_root_pd = {
+	.domain = "msm/gpdsp/root_pd",
+	.instance_id = 192,
+	.services = { NULL },
+};
+
+static const struct qcom_pdm_domain_data gpdsp1_root_pd = {
+	.domain = "msm/gpdsp1/root_pd",
+	.instance_id = 241,
+	.services = { NULL },
+};
+
 static const struct qcom_pdm_domain_data slpi_root_pd = {
 	.domain = "msm/slpi/root_pd",
 	.instance_id = 90,
@@ -426,6 +444,16 @@ static const struct qcom_pdm_domain_data *qcs615_domains[] = {
 	NULL,
 };
 
+static const struct qcom_pdm_domain_data *sa8775p_domains[] = {
+	&adsp_audio_pd,
+	&adsp_root_pd,
+	&cdsp_root_pd,
+	&cdsp1_root_pd,
+	&gpdsp_root_pd,
+	&gpdsp1_root_pd,
+	NULL,
+};
+
 static const struct qcom_pdm_domain_data *sc7180_domains[] = {
 	&adsp_audio_pd,
 	&adsp_root_pd_pdr,
@@ -603,6 +631,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = {
 	{ .compatible = "qcom,qcm6490", .data = sc7280_domains, },
 	{ .compatible = "qcom,qcs404", .data = qcs404_domains, },
 	{ .compatible = "qcom,qcs615", .data = qcs615_domains, },
+	{ .compatible = "qcom,sa8775p", .data = sa8775p_domains, },
 	{ .compatible = "qcom,sc7180", .data = sc7180_domains, },
 	{ .compatible = "qcom,sc7280", .data = sc7280_domains, },
 	{ .compatible = "qcom,sc8180x", .data = sc8180x_domains, },
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v4 2/2] soc: qcom: pd-mapper: Add support for QCS8300
  2026-06-08  8:41 [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300 Mohammad Rafi Shaik
  2026-06-08  8:41 ` [PATCH v4 1/2] soc: qcom: pd-mapper: Add support for SA8775P Mohammad Rafi Shaik
@ 2026-06-08  8:41 ` Mohammad Rafi Shaik
  2026-06-08 10:18   ` Konrad Dybcio
  2026-07-08 14:56 ` [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300 Bjorn Andersson
  2 siblings, 1 reply; 6+ messages in thread
From: Mohammad Rafi Shaik @ 2026-06-08  8:41 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel

Add support for the Qualcomm QCS8300 SoC to the protection
domain mapper. QCS8300 share the same protection domain
configuration as SC8280XP, except charger_pd.

Add an entry to the kernel, to avoid the need for userspace to
provide this service.

Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@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 03a5a3a73..d98c6df52 100644
--- a/drivers/soc/qcom/qcom_pd_mapper.c
+++ b/drivers/soc/qcom/qcom_pd_mapper.c
@@ -444,6 +444,14 @@ static const struct qcom_pdm_domain_data *qcs615_domains[] = {
 	NULL,
 };
 
+static const struct qcom_pdm_domain_data *qcs8300_domains[] = {
+	&adsp_audio_pd,
+	&adsp_root_pd,
+	&cdsp_root_pd,
+	&gpdsp_root_pd,
+	NULL,
+};
+
 static const struct qcom_pdm_domain_data *sa8775p_domains[] = {
 	&adsp_audio_pd,
 	&adsp_root_pd,
@@ -631,6 +639,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = {
 	{ .compatible = "qcom,qcm6490", .data = sc7280_domains, },
 	{ .compatible = "qcom,qcs404", .data = qcs404_domains, },
 	{ .compatible = "qcom,qcs615", .data = qcs615_domains, },
+	{ .compatible = "qcom,qcs8300", .data = qcs8300_domains, },
 	{ .compatible = "qcom,sa8775p", .data = sa8775p_domains, },
 	{ .compatible = "qcom,sc7180", .data = sc7180_domains, },
 	{ .compatible = "qcom,sc7280", .data = sc7280_domains, },
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 1/2] soc: qcom: pd-mapper: Add support for SA8775P
  2026-06-08  8:41 ` [PATCH v4 1/2] soc: qcom: pd-mapper: Add support for SA8775P Mohammad Rafi Shaik
@ 2026-06-08 10:17   ` Konrad Dybcio
  0 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2026-06-08 10:17 UTC (permalink / raw)
  To: Mohammad Rafi Shaik, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-kernel

On 6/8/26 10:41 AM, Mohammad Rafi Shaik wrote:
> Add support for the Qualcomm SA8775P SoC to the protection
> domain mapper. SA8775P share the same protection domain
> configuration as SC8280XP with an additional gpdsp domain,
> except for charger_pd.
> 
> Add an entry to the kernel, to avoid the need for userspace
> to provide this service.
> 
> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 2/2] soc: qcom: pd-mapper: Add support for QCS8300
  2026-06-08  8:41 ` [PATCH v4 2/2] soc: qcom: pd-mapper: Add support for QCS8300 Mohammad Rafi Shaik
@ 2026-06-08 10:18   ` Konrad Dybcio
  0 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2026-06-08 10:18 UTC (permalink / raw)
  To: Mohammad Rafi Shaik, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-kernel

On 6/8/26 10:41 AM, Mohammad Rafi Shaik wrote:
> Add support for the Qualcomm QCS8300 SoC to the protection
> domain mapper. QCS8300 share the same protection domain
> configuration as SC8280XP, except charger_pd.
> 
> Add an entry to the kernel, to avoid the need for userspace to
> provide this service.
> 
> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300
  2026-06-08  8:41 [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300 Mohammad Rafi Shaik
  2026-06-08  8:41 ` [PATCH v4 1/2] soc: qcom: pd-mapper: Add support for SA8775P Mohammad Rafi Shaik
  2026-06-08  8:41 ` [PATCH v4 2/2] soc: qcom: pd-mapper: Add support for QCS8300 Mohammad Rafi Shaik
@ 2026-07-08 14:56 ` Bjorn Andersson
  2 siblings, 0 replies; 6+ messages in thread
From: Bjorn Andersson @ 2026-07-08 14:56 UTC (permalink / raw)
  To: Konrad Dybcio, Mohammad Rafi Shaik; +Cc: linux-arm-msm, linux-kernel


On Mon, 08 Jun 2026 14:11:37 +0530, Mohammad Rafi Shaik wrote:
> Add support for the Qualcomm SA8775P and QCS8300 SoCs to the
> protection domain mapper. Add an entry to the kernel, to avoid
> the need for userspace to provide this service.
> 
> changes in [v4]:
>  - Added a gdsp protection domain for QCS8300 and cdsp1 for SA8775P.
>  - Link to V3: https://lore.kernel.org/all/20260209112947.930853-1-mohammad.rafi.shaik@oss.qualcomm.com/
> 
> [...]

Applied, thanks!

[1/2] soc: qcom: pd-mapper: Add support for SA8775P
      commit: 63fba7528f2c329595321187a92b2caf16141be0
[2/2] soc: qcom: pd-mapper: Add support for QCS8300
      commit: 17e26dfa92a502212577c4dbdb55426f1476d521

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-08 14:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-08  8:41 [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300 Mohammad Rafi Shaik
2026-06-08  8:41 ` [PATCH v4 1/2] soc: qcom: pd-mapper: Add support for SA8775P Mohammad Rafi Shaik
2026-06-08 10:17   ` Konrad Dybcio
2026-06-08  8:41 ` [PATCH v4 2/2] soc: qcom: pd-mapper: Add support for QCS8300 Mohammad Rafi Shaik
2026-06-08 10:18   ` Konrad Dybcio
2026-07-08 14:56 ` [PATCH v4 0/2] soc: qcom: pd-mapper: Add support for SA8775P and QCS8300 Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®