Enable ADSP and CDSP for Glymur SoC
Subsystems (5)
v4 cover Enable ADSP and CDSP for Glymur SoC
Qualcomm Glymur SoC variants predominantly boot Linux at EL2. This means that the firmware streams of the remote processors are managed in kernel and not in Gunyah hypervisor. Given that the Peripheral Image Loader for Qualcomm SoCs now support running Linux Host at EL2 [1], this series documents and enables ADSP and CDSP on Qualcomm Glymur SoCs with its fastrpc nodes. A few variants of the SoC are expected to run Linux at EL1 hence the iommus properties are left optional.
[1] - https://lore.kernel.org/all/[email protected]/
Changes in v4:
- Fix SID used in ADSP/CDSP for correctness [Konrad]
-Link to v3: https://lore.kernel.org/lkml/[email protected]/
Changes in v3:
- A few variants of the SoC are expected to run Linux at EL1 hence the
iommus properties are left optional.
- Add fastrpc bindings and nodes.
- Link to v2: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- Combined into Kaanapali series since they are fully compatible.
- Link to v1: https://lore.kernel.org/all/[email protected]/
Sibi Sankar (5):
dt-bindings: remoteproc: qcom,sm8550-pas: Add Glymur ADSP
dt-bindings: remoteproc: qcom,sm8550-pas: Add Glymur CDSP
dt-bindings: misc: qcom,fastrpc: Add compatible for Glymur
arm64: dts: qcom: glymur: Add ADSP and CDSP for Glymur SoC
arm64: dts: qcom: glymur-crd: Enable ADSP and CDSP
.../bindings/misc/qcom,fastrpc.yaml | 11 +- .../bindings/remoteproc/qcom,sm8550-pas.yaml | 4 + arch/arm64/boot/dts/qcom/glymur-crd.dts | 14 + arch/arm64/boot/dts/qcom/glymur.dtsi | 286 ++++++++++++++++++ 4 files changed, 312 insertions(+), 3 deletions(-)
base-commit: a0ae2a256046c0c5d3778d1a194ff2e171f16e5f
Signature · 1 line
2.34.1
PATCH v4 1/5 dt-bindings: remoteproc: qcom,sm8550-pas: Add Glymur ADSP
Document compatible for Qualcomm Glymur ADSP PAS which is fully compatible with Qualcomm Kaanapali ADSP PAS.
--- .../devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml +2 -0
@@ -29,6 +29,7 @@ properties: - qcom,x1e80100-cdsp-pas - items: - enum: + - qcom,glymur-adsp-pas - qcom,kaanapali-adsp-pas - qcom,sm8750-adsp-pas - const: qcom,sm8550-adsp-pas
@@ -101,6 +102,7 @@ allOf: compatible: contains: enum: + - qcom,glymur-adsp-pas - qcom,kaanapali-adsp-pas - qcom,kaanapali-cdsp-pas - qcom,sm8750-adsp-pas
Signature · 1 line
2.34.1
Re: [PATCH V4 1/5] dt-bindings: remoteproc: qcom,sm8550-pas: Add Glymur ADSP
Quoted 2 lines · Sibi Sankar
Document compatible for Qualcomm Glymur ADSP PAS which is fully compatible with Qualcomm Kaanapali ADSP PAS.
Kaanapali here...
Quoted 11 lines
Signed-off-by Sibi Sankar <[email protected]>--- .../devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml +0
-0
Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml properties: · line 35
Quoted 7 lines
Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml +1
-0@@ -29,6 +29,7 @@ properties: - qcom,x1e80100-cdsp-pas - items: - enum: + - qcom,glymur-adsp-pas - qcom,kaanapali-adsp-pas - qcom,sm8750-adsp-pas - const: qcom,sm8550-adsp-pas
but not here, so fully compatible with Kaanapali or SM8550?
Best regards,
Krzysztof
Re: [PATCH V4 1/5] dt-bindings: remoteproc: qcom,sm8550-pas: Add Glymur ADSP
Quoted 9 lines · Krzysztof Kozlowski
Quoted 2 lines · Sibi Sankar
Document compatible for Qualcomm Glymur ADSP PAS which is fully compatible with Qualcomm Kaanapali ADSP PAS.
Kaanapali here...
Quoted 5 lines
Signed-off-by Sibi Sankar <[email protected]>--- .../devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml | 2 ++ 1 file changed, 2 insertions(+)
Quoted 13 lines
Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml properties: · line 35
Quoted 12 lines
Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml +1
-0@@ -29,6 +29,7 @@ properties: - qcom,x1e80100-cdsp-pas - items: - enum: + - qcom,glymur-adsp-pas - qcom,kaanapali-adsp-pas - qcom,sm8750-adsp-pas - const: qcom,sm8550-adsp-pasbut not here, so fully compatible with Kaanapali or SM8550?
It is the same as on Kaanapali which is fully compatible with SM8550, so applied transitivity to the commit message. Anyway will get the commit message updated to reflect ^^.
Quoted 4 lines
Best regards,
Krzysztof
PATCH v4 2/5 dt-bindings: remoteproc: qcom,sm8550-pas: Add Glymur CDSP
In reply to Sibi SankarDocument compatible for Qualcomm Glymur CDSP PAS which is fully compatible with Qualcomm Kaanapali CDSP PAS.
--- .../devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml +2 -0
@@ -35,6 +35,7 @@ properties: - const: qcom,sm8550-adsp-pas - items: - enum: + - qcom,glymur-cdsp-pas - qcom,kaanapali-cdsp-pas - const: qcom,sm8550-cdsp-pas - items:
@@ -103,6 +104,7 @@ allOf: contains: enum: - qcom,glymur-adsp-pas + - qcom,glymur-cdsp-pas - qcom,kaanapali-adsp-pas - qcom,kaanapali-cdsp-pas - qcom,sm8750-adsp-pas
Signature · 1 line
2.34.1
PATCH v4 3/5 dt-bindings: misc: qcom,fastrpc: Add compatible for Glymur
In reply to Sibi SankarDocument compatible for Qualcomm Glymur fastrpc which is fully compatible with Qualcomm Kaanapali fastrpc.
--- .../devicetree/bindings/misc/qcom,fastrpc.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml +8 -3
@@ -18,9 +18,14 @@ description: | properties: compatible: - enum: - - qcom,kaanapali-fastrpc - - qcom,fastrpc + oneOf: + - enum: + - qcom,kaanapali-fastrpc + - qcom,fastrpc + - items: + - enum: + - qcom,glymur-fastrpc + - const: qcom,kaanapali-fastrpc label: enum:
Signature · 1 line
2.34.1
Re: [PATCH V4 3/5] dt-bindings: misc: qcom,fastrpc: Add compatible for Glymur
Quoted 7 lines · Sibi Sankar
Document compatible for Qualcomm Glymur fastrpc which is fully compatible with Qualcomm Kaanapali fastrpc.
Signed-off-by Sibi Sankar <[email protected]>--- .../devicetree/bindings/misc/qcom,fastrpc.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
Best regards,
Krzysztof
PATCH v4 4/5 arm64: dts: qcom: glymur: Add ADSP and CDSP for Glymur SoC
In reply to Sibi SankarAdd remoteproc PAS loader for ADSP and CDSP with its fastrpc nodes.
--- arch/arm64/boot/dts/qcom/glymur.dtsi | 286 +++++++++++++++++++++++++++ 1 file changed, 286 insertions(+)
arch/arm64/boot/dts/qcom/glymur.dtsi +286 -0
@@ -3346,6 +3346,122 @@ ipcc: mailbox@3e04000 { #mbox-cells = <2>; }; + remoteproc_adsp: remoteproc@6800000 { + compatible = "qcom,glymur-adsp-pas", "qcom,sm8550-adsp-pas"; + reg = <0x0 0x06800000 0x0 0x10000>; + + iommus = <&apps_smmu 0x1000 0x0>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack", + "shutdown-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interconnects = <&lpass_lpicx_noc MASTER_LPASS_PROC QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + power-domains = <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", + "lmx"; + + memory-region = <&adspslpi_mem>, <&q6_adsp_dtb_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + remoteproc_adsp_glink: glink-edge { + interrupts-extended = <&ipcc IPCC_MPROC_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + + mboxes = <&ipcc IPCC_MPROC_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + qcom,remote-pid = <2>; + + label = "lpass"; + + fastrpc { + compatible = "qcom,glymur-fastrpc", "qcom,kaanapali-fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "adsp"; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + + iommus = <&apps_smmu 0x1003 0x80>, + <&apps_smmu 0x1063 0x20>; + dma-coherent; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + + iommus = <&apps_smmu 0x1004 0x80>, + <&apps_smmu 0x1064 0x20>; + dma-coherent; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + + iommus = <&apps_smmu 0x1005 0x80>, + <&apps_smmu 0x1065 0x20>; + dma-coherent; + }; + + compute-cb@6 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <6>; + + iommus = <&apps_smmu 0x1006 0x80>, + <&apps_smmu 0x1066 0x20>; + dma-coherent; + }; + + compute-cb@7 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <7>; + + iommus = <&apps_smmu 0x1007 0x40>, + <&apps_smmu 0x1067 0x0>, + <&apps_smmu 0x1087 0x0>; + dma-coherent; + }; + + compute-cb@8 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <8>; + + iommus = <&apps_smmu 0x1008 0x80>, + <&apps_smmu 0x1068 0x20>; + dma-coherent; + }; + }; + }; + }; + lpass_lpiaon_noc: interconnect@7400000 { compatible = "qcom,glymur-lpass-lpiaon-noc"; reg = <0x0 0x07400000 0x0 0x19080>;
@@ -4692,6 +4808,176 @@ nsp_noc: interconnect@320c0000 { #interconnect-cells = <2>; }; + remoteproc_cdsp: remoteproc@32300000 { + compatible = "qcom,glymur-cdsp-pas", "qcom,sm8550-cdsp-pas"; + reg = <0x0 0x32300000 0x0 0x10000>; + + iommus = <&apps_smmu 0x2400 0x400>; + + interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 3 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack", + "shutdown-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interconnects = <&nsp_noc MASTER_CDSP_PROC QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + power-domains = <&rpmhpd RPMHPD_CX>, + <&rpmhpd RPMHPD_MXC>, + <&rpmhpd RPMHPD_NSP>; + power-domain-names = "cx", + "mxc", + "nsp"; + + memory-region = <&cdsp_mem>, <&q6_cdsp_dtb_mem>; + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_cdsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_MPROC_CDSP + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_MPROC_CDSP + IPCC_MPROC_SIGNAL_GLINK_QMP>; + qcom,remote-pid = <5>; + label = "cdsp"; + + fastrpc { + compatible = "qcom,glymur-fastrpc", "qcom,kaanapali-fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "cdsp"; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + + iommus = <&apps_smmu 0x2401 0x440>, + <&apps_smmu 0x1961 0x0>, + <&apps_smmu 0x19c1 0x0>; + dma-coherent; + }; + + compute-cb@2 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <2>; + + iommus = <&apps_smmu 0x2402 0x440>, + <&apps_smmu 0x1962 0x0>, + <&apps_smmu 0x19c2 0x0>; + dma-coherent; + }; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + + iommus = <&apps_smmu 0x2403 0x440>, + <&apps_smmu 0x1963 0x0>, + <&apps_smmu 0x19c3 0x0>; + dma-coherent; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + + iommus = <&apps_smmu 0x2404 0x440>, + <&apps_smmu 0x1964 0x0>, + <&apps_smmu 0x19c4 0x0>; + dma-coherent; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + + iommus = <&apps_smmu 0x2405 0x440>, + <&apps_smmu 0x1965 0x0>, + <&apps_smmu 0x19c5 0x0>; + dma-coherent; + }; + + compute-cb@6 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <6>; + + iommus = <&apps_smmu 0x2406 0x440>, + <&apps_smmu 0x1966 0x0>, + <&apps_smmu 0x19c6 0x0>; + dma-coherent; + }; + + compute-cb@7 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <7>; + + iommus = <&apps_smmu 0x2407 0x440>, + <&apps_smmu 0x1967 0x0>, + <&apps_smmu 0x19c7 0x0>; + dma-coherent; + }; + + compute-cb@8 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <8>; + + iommus = <&apps_smmu 0x2408 0x440>, + <&apps_smmu 0x1968 0x0>, + <&apps_smmu 0x19c8 0x0>; + dma-coherent; + }; + + /* note: compute-cb@9 is secure */ + + compute-cb@10 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <10>; + + iommus = <&apps_smmu 0x240c 0x440>, + <&apps_smmu 0x196c 0x0>, + <&apps_smmu 0x19cc 0x0>; + dma-coherent; + }; + + compute-cb@11 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <11>; + + iommus = <&apps_smmu 0x240d 0x440>, + <&apps_smmu 0x196d 0x0>, + <&apps_smmu 0x19cd 0x0>; + dma-coherent; + }; + + compute-cb@12 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <12>; + + iommus = <&apps_smmu 0x240e 0x440>, + <&apps_smmu 0x196e 0x0>, + <&apps_smmu 0x19ce 0x0>; + dma-coherent; + }; + }; + }; + }; + imem: sram@81e08000 { compatible = "mmio-sram"; reg = <0x0 0x81e08600 0x0 0x300>;
Signature · 1 line
2.34.1
PATCH v4 5/5 arm64: dts: qcom: glymur-crd: Enable ADSP and CDSP
In reply to Sibi SankarEnable ADSP and CDSP on Glymur CRD board.
--- arch/arm64/boot/dts/qcom/glymur-crd.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/qcom/glymur-crd.dts +14 -0
@@ -485,6 +485,20 @@ &pon_resin { status = "okay"; }; +&remoteproc_adsp { + firmware-name = "qcom/glymur/adsp.mbn", + "qcom/glymur/adsp_dtb.mbn"; + + status = "okay"; +}; + +&remoteproc_cdsp { + firmware-name = "qcom/glymur/cdsp.mbn", + "qcom/glymur/cdsp_dtb.mbn"; + + status = "okay"; +}; + &tlmm { gpio-reserved-ranges = <4 4>, /* EC TZ Secure I3C */ <10 2>, /* OOB UART */
Signature · 1 line
2.34.1