arm64: dts: qcom: sm8150: Add fastrpc nodes
authorBhupesh Sharma <bhupesh.sharma@linaro.org>
Tue, 28 Sep 2021 14:09:28 +0000 (19:39 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 24 Oct 2021 02:59:50 +0000 (21:59 -0500)
Add fastrpc nodes for sDSP, cDSP, and aDSP.

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210928140929.2549459-2-bhupesh.sharma@linaro.org
arch/arm64/boot/dts/qcom/sm8150.dtsi

index 123d6412ac2f9cc60817e20ea9fadeff3da196e4..2a10e77a98c1897c7baf3a31b9b939ce6769b368 100644 (file)
                                label = "dsps";
                                qcom,remote-pid = <3>;
                                mboxes = <&apss_shared 24>;
+
+                               fastrpc {
+                                       compatible = "qcom,fastrpc";
+                                       qcom,glink-channels = "fastrpcglink-apps-dsp";
+                                       label = "sdsp";
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       compute-cb@1 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <1>;
+                                               iommus = <&apps_smmu 0x05a1 0x0>;
+                                       };
+
+                                       compute-cb@2 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <2>;
+                                               iommus = <&apps_smmu 0x05a2 0x0>;
+                                       };
+
+                                       compute-cb@3 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <3>;
+                                               iommus = <&apps_smmu 0x05a3 0x0>;
+                                               /* note: shared-cb = <4> in downstream */
+                                       };
+                               };
                        };
                };
 
                                label = "cdsp";
                                qcom,remote-pid = <5>;
                                mboxes = <&apss_shared 4>;
+
+                               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 0x1401 0x2040>,
+                                                        <&apps_smmu 0x1421 0x0>,
+                                                        <&apps_smmu 0x2001 0x420>,
+                                                        <&apps_smmu 0x2041 0x0>;
+                                       };
+
+                                       compute-cb@2 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <2>;
+                                               iommus = <&apps_smmu 0x2 0x3440>,
+                                                        <&apps_smmu 0x22 0x3400>;
+                                       };
+
+                                       compute-cb@3 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <3>;
+                                               iommus = <&apps_smmu 0x3 0x3440>,
+                                                        <&apps_smmu 0x1423 0x0>,
+                                                        <&apps_smmu 0x2023 0x0>;
+                                       };
+
+                                       compute-cb@4 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <4>;
+                                               iommus = <&apps_smmu 0x4 0x3440>,
+                                                        <&apps_smmu 0x24 0x3400>;
+                                       };
+
+                                       compute-cb@5 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <5>;
+                                               iommus = <&apps_smmu 0x5 0x3440>,
+                                                        <&apps_smmu 0x25 0x3400>;
+                                       };
+
+                                       compute-cb@6 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <6>;
+                                               iommus = <&apps_smmu 0x6 0x3460>;
+                                       };
+
+                                       compute-cb@7 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <7>;
+                                               iommus = <&apps_smmu 0x7 0x3460>;
+                                       };
+
+                                       compute-cb@8 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <8>;
+                                               iommus = <&apps_smmu 0x8 0x3460>;
+                                       };
+
+                                       /* note: secure cb9 in downstream */
+                               };
                        };
                };
 
                                label = "lpass";
                                qcom,remote-pid = <2>;
                                mboxes = <&apss_shared 8>;
+
+                               fastrpc {
+                                       compatible = "qcom,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 0x1b23 0x0>;
+                                       };
+
+                                       compute-cb@4 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <4>;
+                                               iommus = <&apps_smmu 0x1b24 0x0>;
+                                       };
+
+                                       compute-cb@5 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <5>;
+                                               iommus = <&apps_smmu 0x1b25 0x0>;
+                                       };
+                               };
                        };
                };