Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/2] remoteproc: qcom: pas: Add support for CDSP on Eliza SoC
@ 2026-07-21  8:23 Abel Vesa
  2026-07-21  8:23 ` [PATCH v2 1/2] dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible Abel Vesa
  2026-07-21  8:23 ` [PATCH v2 2/2] remoteproc: qcom: pas: Add Eliza CDSP support Abel Vesa
  0 siblings, 2 replies; 4+ messages in thread
From: Abel Vesa @ 2026-07-21  8:23 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
	Luca Weiss
  Cc: linux-arm-msm, linux-remoteproc, devicetree, linux-kernel,
	Abel Vesa, Konrad Dybcio

First, document the compatible and add the DSM memory region
and the NSP power domain, both needed on Eliza.

Then, add the driver data and tie it to the compatible.

Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
---
Changes in v2:
- Rebased on next-20260720.
- Picked Konrad's R-b tag for the driver patch.
- Added maxItems constrain for devices with only 2 memory-regions,
  as per sashiko's suggestion.
- Link to v1: https://patch.msgid.link/20260714-remoteproc-eliza-cdsp-v1-0-32eb7a1f2c59@oss.qualcomm.com

---
Abel Vesa (2):
      dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible
      remoteproc: qcom: pas: Add Eliza CDSP support

 .../bindings/remoteproc/qcom,milos-pas.yaml        | 42 +++++++++++++++++++++-
 drivers/remoteproc/qcom_q6v5_pas.c                 | 26 ++++++++++++++
 2 files changed, 67 insertions(+), 1 deletion(-)
---
base-commit: 3fe08b9796f36ef437ab9328e7dd1e5ff2d66603
change-id: 20260713-remoteproc-eliza-cdsp-07701ba2b956

Best regards,
--  
Abel Vesa <abel.vesa@oss.qualcomm.com>


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

* [PATCH v2 1/2] dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible
  2026-07-21  8:23 [PATCH v2 0/2] remoteproc: qcom: pas: Add support for CDSP on Eliza SoC Abel Vesa
@ 2026-07-21  8:23 ` Abel Vesa
  2026-07-21  8:37   ` sashiko-bot
  2026-07-21  8:23 ` [PATCH v2 2/2] remoteproc: qcom: pas: Add Eliza CDSP support Abel Vesa
  1 sibling, 1 reply; 4+ messages in thread
From: Abel Vesa @ 2026-07-21  8:23 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
	Luca Weiss
  Cc: linux-arm-msm, linux-remoteproc, devicetree, linux-kernel,
	Abel Vesa

Document compatible string for the CDSP Peripheral Authentication
Service on the Eliza SoC. It needs a third memory region (DSM) and
the NSP power domain. Rework the schema to accommodate these.

Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
---
 .../bindings/remoteproc/qcom,milos-pas.yaml        | 42 +++++++++++++++++++++-
 1 file changed, 41 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml
index 99d7337e58ec..97bcfb3bdf11 100644
--- a/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml
@@ -17,6 +17,7 @@ properties:
   compatible:
     enum:
       - qcom,eliza-adsp-pas
+      - qcom,eliza-cdsp-pas
       - qcom,milos-adsp-pas
       - qcom,milos-cdsp-pas
       - qcom,milos-mpss-pas
@@ -68,6 +69,7 @@ properties:
     items:
       - description: Memory region for core Firmware authentication
       - description: Memory region for Devicetree Firmware authentication
+      - description: DSM Memory region
 
   qcom,smem-states:
     maxItems: 1
@@ -95,9 +97,29 @@ allOf:
       properties:
         memory-region:
           minItems: 2
+          maxItems: 2
         firmware-name:
           minItems: 2
-    else:
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - qcom,eliza-cdsp-pas
+    then:
+      properties:
+        memory-region:
+          minItems: 3
+        firmware-name:
+          minItems: 2
+
+  - if:
+      properties:
+        compatible:
+          enum:
+            - qcom,milos-mpss-pas
+            - qcom,milos-wpss-pas
+    then:
       properties:
         memory-region:
           maxItems: 1
@@ -122,6 +144,24 @@ allOf:
             - const: lcx
             - const: lmx
 
+  - if:
+      properties:
+        compatible:
+          enum:
+            - qcom,eliza-cdsp-pas
+    then:
+      properties:
+        power-domains:
+          items:
+            - description: CX power domain
+            - description: MX power domain
+            - description: NSP power domain
+        power-domain-names:
+          items:
+            - const: cx
+            - const: mx
+            - const: nsp
+
   - if:
       properties:
         compatible:

-- 
2.54.0


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

* [PATCH v2 2/2] remoteproc: qcom: pas: Add Eliza CDSP support
  2026-07-21  8:23 [PATCH v2 0/2] remoteproc: qcom: pas: Add support for CDSP on Eliza SoC Abel Vesa
  2026-07-21  8:23 ` [PATCH v2 1/2] dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible Abel Vesa
@ 2026-07-21  8:23 ` Abel Vesa
  1 sibling, 0 replies; 4+ messages in thread
From: Abel Vesa @ 2026-07-21  8:23 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
	Luca Weiss
  Cc: linux-arm-msm, linux-remoteproc, devicetree, linux-kernel,
	Abel Vesa, Konrad Dybcio

Add dedicated driver data for the Eliza CDSP remote processor. It looks
almost the same as for Milos, except Eliza needs region assign.
Tie the new driver data to the Eliza specific compatible.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
---
 drivers/remoteproc/qcom_q6v5_pas.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c
index 25599d728208..c8313c61da94 100644
--- a/drivers/remoteproc/qcom_q6v5_pas.c
+++ b/drivers/remoteproc/qcom_q6v5_pas.c
@@ -1687,8 +1687,34 @@ static const struct qcom_pas_data glymur_soccp_resource = {
 	.needs_tzmem = true,
 };
 
+static const struct qcom_pas_data eliza_cdsp_resource = {
+	.crash_reason_smem = 601,
+	.firmware_name = "cdsp.mbn",
+	.dtb_firmware_name = "cdsp_dtb.mbn",
+	.pas_id = 18,
+	.dtb_pas_id = 0x25,
+	.minidump_id = 7,
+	.auto_boot = true,
+	.proxy_pd_names = (char*[]){
+		"cx",
+		"mx",
+		"nsp",
+		NULL
+	},
+	.load_state = "cdsp",
+	.ssr_name = "cdsp",
+	.sysmon_name = "cdsp",
+	.ssctl_id = 0x17,
+	.smem_host_id = 5,
+	.region_assign_idx = 2,
+	.region_assign_count = 1,
+	.region_assign_shared = true,
+	.region_assign_vmid = QCOM_SCM_VMID_CDSP,
+};
+
 static const struct of_device_id qcom_pas_of_match[] = {
 	{ .compatible = "qcom,eliza-adsp-pas", .data = &sm8550_adsp_resource },
+	{ .compatible = "qcom,eliza-cdsp-pas", .data = &eliza_cdsp_resource },
 	{ .compatible = "qcom,glymur-soccp-pas", .data = &glymur_soccp_resource },
 	{ .compatible = "qcom,kaanapali-soccp-pas", .data = &kaanapali_soccp_resource },
 	{ .compatible = "qcom,milos-adsp-pas", .data = &sm8550_adsp_resource },

-- 
2.54.0


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

* Re: [PATCH v2 1/2] dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible
  2026-07-21  8:23 ` [PATCH v2 1/2] dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible Abel Vesa
@ 2026-07-21  8:37   ` sashiko-bot
  0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-07-21  8:37 UTC (permalink / raw)
  To: Abel Vesa; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The new conditional block for `qcom,eliza-cdsp-pas` does not enforce the required number of power domains, allowing incomplete DT nodes to pass validation.
--

--- Patch [1]: [PATCH v2 1/2] dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible ---
commit fa71a885d3daa5490a402fba5912c99b4478260e
Author: Abel Vesa <abel.vesa@oss.qualcomm.com>

dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible

This commit documents the compatible string for the CDSP Peripheral
Authentication Service on the Eliza SoC. It adds a third memory region (DSM)
and the NSP power domain to the schema.

> diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml
> index 99d7337e58ec5..97bcfb3bdf115 100644
> --- a/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml
> +++ b/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml
[ ... ]
> @@ -122,6 +144,24 @@ allOf:
>              - const: lcx
>              - const: lmx
>  
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - qcom,eliza-cdsp-pas
> +    then:
> +      properties:
> +        power-domains:
> +          items:
> +            - description: CX power domain
> +            - description: MX power domain
> +            - description: NSP power domain
> +        power-domain-names:
> +          items:
> +            - const: cx
> +            - const: mx
> +            - const: nsp

[Severity: Medium]
Should power-domains and power-domain-names be appended to the required list
for this compatible string?

Without specifying minItems: 3 and adding the required directive for the
power domains, would an incomplete device tree node that omits the NSP power
domain silently pass schema validation?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260721-remoteproc-eliza-cdsp-v2-0-f3345405e4da@oss.qualcomm.com?part=1

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

end of thread, other threads:[~2026-07-21  8:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-21  8:23 [PATCH v2 0/2] remoteproc: qcom: pas: Add support for CDSP on Eliza SoC Abel Vesa
2026-07-21  8:23 ` [PATCH v2 1/2] dt-bindings: remoteproc: qcom,milos-pas: Add Eliza CDSP compatible Abel Vesa
2026-07-21  8:37   ` sashiko-bot
2026-07-21  8:23 ` [PATCH v2 2/2] remoteproc: qcom: pas: Add Eliza CDSP support Abel Vesa

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