diff --git a/qcom/tuna-dma-heaps.dtsi b/qcom/tuna-dma-heaps.dtsi index 6472b080..ac87057a 100644 --- a/qcom/tuna-dma-heaps.dtsi +++ b/qcom/tuna-dma-heaps.dtsi @@ -9,5 +9,11 @@ qcom,dma-heaps { compatible = "qcom,dma-heaps"; depends-on-supply = <&qcom_scm>; + + qcom,secure_cdsp { + qcom,dma-heap-name = "qcom,cma-secure-cdsp"; + qcom,dma-heap-type = ; + memory-region = <&cdsp_secure_heap_cma>; + }; }; }; diff --git a/qcom/tuna.dtsi b/qcom/tuna.dtsi index 0833118d..e0d0b7e4 100644 --- a/qcom/tuna.dtsi +++ b/qcom/tuna.dtsi @@ -701,6 +701,12 @@ interrupt-names = "smp2p-sleepstate-in"; }; + qcom,msm-adsprpc-mem { + compatible = "qcom,msm-adsprpc-mem-region"; + memory-region = <&adsp_mem_heap>; + restrict-access; + }; + clocks { xo_board: xo_board { compatible = "fixed-clock"; @@ -1407,6 +1413,22 @@ no-map; reg = <0x0 0x81c60000 0x0 0x20000>; }; + + adsp_mem_heap: adsp_heap_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment = <0x0 0x400000>; + size = <0x0 0xC00000>; + }; + + cdsp_secure_heap_cma: secure_cdsp_region { /* Secure DSP */ + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment = <0x0 0x400000>; + size = <0x0 0x4800000>; + }; }; #include "tuna-pinctrl.dtsi"