arm64: dts: qcom: sc7280: Add ADSP node
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 8 Dec 2023 15:08:04 +0000 (16:08 +0100)
committerBjorn Andersson <andersson@kernel.org>
Sat, 9 Dec 2023 03:58:41 +0000 (19:58 -0800)
Add the node for the ADSP found on the SC7280 SoC, using standard
Qualcomm firmware.

Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20231208-sc7280-remoteprocs-v3-8-6aa394d33edf@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
arch/arm64/boot/dts/qcom/qcm6490-idp.dts
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi
arch/arm64/boot/dts/qcom/sc7280.dtsi

index 85391bed6376eb618687f5b2648ff7f8ce39f277..7a8fdebd94d38ea15d9c1bcb17ec238f0ea0f9c4 100644 (file)
                        no-map;
                };
 
-               adsp_mem: adsp@86700000 {
-                       reg = <0x0 0x86700000 0x0 0x2800000>;
-                       no-map;
-               };
-
                cdsp_mem: cdsp@88f00000 {
                        reg = <0x0 0x88f00000 0x0 0x1e00000>;
                        no-map;
index 2a5631b0fa40f9b16a306b60f1b099ba434fbdcc..662b5f757542265a18dd97dc3a5be185d2c0e48f 100644 (file)
@@ -13,6 +13,7 @@
 
 /delete-node/ &ipa_fw_mem;
 /delete-node/ &rmtfs_mem;
+/delete-node/ &adsp_mem;
 /delete-node/ &video_mem;
 /delete-node/ &wlan_ce_mem;
 /delete-node/ &xbl_mem;
index 0beab54c051ec146ef4568fd4baa532a95e09b46..c54b1ff8b857c9182821a80052520c376aab67cf 100644 (file)
@@ -19,6 +19,7 @@
 /delete-node/ &ipa_fw_mem;
 /delete-node/ &remoteproc_mpss;
 /delete-node/ &rmtfs_mem;
+/delete-node/ &adsp_mem;
 /delete-node/ &video_mem;
 /delete-node/ &wlan_ce_mem;
 /delete-node/ &xbl_mem;
index 9845638b344a32e362779eabfcec205123e78895..6e05bf024cc688d30453f4b775b034c2ecaab866 100644 (file)
 
 / {
        reserved-memory {
-               adsp_mem: memory@86700000 {
-                       reg = <0x0 0x86700000 0x0 0x2800000>;
-                       no-map;
-               };
-
                camera_mem: memory@8ad00000 {
                        reg = <0x0 0x8ad00000 0x0 0x500000>;
                        no-map;
index 132b55e64579126dda7f05599e86546f3f67c2b3..91f009cd1a86f38a9f59119b463c0a564ce23e19 100644 (file)
                        no-map;
                };
 
+               adsp_mem: adsp@86700000 {
+                       reg = <0x0 0x86700000 0x0 0x2800000>;
+                       no-map;
+               };
+
                video_mem: memory@8b200000 {
                        reg = <0x0 0x8b200000 0x0 0x500000>;
                        no-map;
                        status = "disabled";
                };
 
+               remoteproc_adsp: remoteproc@3700000 {
+                       compatible = "qcom,sc7280-adsp-pas";
+                       reg = <0 0x03700000 0 0x100>;
+
+                       interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>,
+                                             <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
+                                             <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
+                                             <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
+                                             <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>,
+                                             <&adsp_smp2p_in 7 IRQ_TYPE_EDGE_RISING>;
+                       interrupt-names = "wdog", "fatal", "ready", "handover",
+                                         "stop-ack", "shutdown-ack";
+
+                       clocks = <&rpmhcc RPMH_CXO_CLK>;
+                       clock-names = "xo";
+
+                       power-domains = <&rpmhpd SC7280_LCX>,
+                                       <&rpmhpd SC7280_LMX>;
+                       power-domain-names = "lcx", "lmx";
+
+                       memory-region = <&adsp_mem>;
+
+                       qcom,qmp = <&aoss_qmp>;
+
+                       qcom,smem-states = <&adsp_smp2p_out 0>;
+                       qcom,smem-state-names = "stop";
+
+                       status = "disabled";
+
+                       glink-edge {
+                               interrupts-extended = <&ipcc IPCC_CLIENT_LPASS
+                                                            IPCC_MPROC_SIGNAL_GLINK_QMP
+                                                            IRQ_TYPE_EDGE_RISING>;
+
+                               mboxes = <&ipcc IPCC_CLIENT_LPASS
+                                               IPCC_MPROC_SIGNAL_GLINK_QMP>;
+
+                               label = "lpass";
+                               qcom,remote-pid = <2>;
+
+                               fastrpc {
+                                       compatible = "qcom,fastrpc";
+                                       qcom,glink-channels = "fastrpcglink-apps-dsp";
+                                       label = "adsp";
+                                       qcom,non-secure-domain;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       compute-cb@3 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <3>;
+                                               iommus = <&apps_smmu 0x1803 0x0>;
+                                       };
+
+                                       compute-cb@4 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <4>;
+                                               iommus = <&apps_smmu 0x1804 0x0>;
+                                       };
+
+                                       compute-cb@5 {
+                                               compatible = "qcom,fastrpc-compute-cb";
+                                               reg = <5>;
+                                               iommus = <&apps_smmu 0x1805 0x0>;
+                                       };
+                               };
+                       };
+               };
+
                remoteproc_wpss: remoteproc@8a00000 {
                        compatible = "qcom,sc7280-wpss-pas";
                        reg = <0 0x08a00000 0 0x10000>;