arm64: dts: qcom: qcs8300: Add ADSP and CDSP0 fastrpc nodes
authorLing Xu <quic_lxu5@quicinc.com>
Tue, 19 Nov 2024 12:06:35 +0000 (17:36 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 26 Dec 2024 05:50:43 +0000 (23:50 -0600)
Add ADSP and CDSP0 fastrpc nodes for QCS8300 platform.

Signed-off-by: Ling Xu <quic_lxu5@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20241119120635.687936-1-quic_lxu5@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcs8300.dtsi

index fba8423a4f80955d5a6daacf4e9bdf82ec9fc3c0..c7cd8afbf289bc6a658dc98d431c3ddb5b856f96 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/clock/qcom,qcs8300-gcc.h>
 #include <dt-bindings/clock/qcom,rpmh.h>
+#include <dt-bindings/firmware/qcom,scm.h>
 #include <dt-bindings/interconnect/qcom,icc.h>
 #include <dt-bindings/interconnect/qcom,qcs8300-rpmh.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 
                                label = "lpass";
                                qcom,remote-pid = <2>;
+
+                               fastrpc {
+                                       compatible = "qcom,fastrpc";
+                                       qcom,glink-channels = "fastrpcglink-apps-dsp";
+                                       label = "adsp";
+                                       memory-region = <&adsp_rpc_remote_heap_mem>;
+                                       qcom,vmids = <QCOM_SCM_VMID_LPASS
+                                                     QCOM_SCM_VMID_ADSP_HEAP>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       compute-cb@3 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <3>;
+                                               iommus = <&apps_smmu 0x2003 0x0>;
+                                               dma-coherent;
+                                       };
+
+                                       compute-cb@4 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <4>;
+                                               iommus = <&apps_smmu 0x2004 0x0>;
+                                               dma-coherent;
+                                       };
+
+                                       compute-cb@5 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <5>;
+                                               iommus = <&apps_smmu 0x2005 0x0>;
+                                               dma-coherent;
+                                       };
+                               };
                        };
                };
 
 
                                label = "cdsp";
                                qcom,remote-pid = <5>;
+
+                               fastrpc {
+                                       compatible = "qcom,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 0x19c1 0x0440>,
+                                                        <&apps_smmu 0x1961 0x0400>;
+                                               dma-coherent;
+                                       };
+
+                                       compute-cb@2 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <2>;
+                                               iommus = <&apps_smmu 0x19c2 0x0440>,
+                                                        <&apps_smmu 0x1962 0x0400>;
+                                               dma-coherent;
+                                       };
+
+                                       compute-cb@3 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <3>;
+                                               iommus = <&apps_smmu 0x19c3 0x0440>,
+                                                        <&apps_smmu 0x1963 0x0400>;
+                                               dma-coherent;
+                                       };
+
+                                       compute-cb@4 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <4>;
+                                               iommus = <&apps_smmu 0x19c4 0x0440>,
+                                                        <&apps_smmu 0x1964 0x0400>;
+                                               dma-coherent;
+                                       };
+                               };
                        };
                };
        };