From f71bb8e08f025f905a30b6364fc20d20b2e23633 Mon Sep 17 00:00:00 2001 From: Patan Saddam Date: Fri, 16 Aug 2024 13:04:00 +0530 Subject: [PATCH] ARM: dts: msm: Add adsprpc-mem and adsprpc-mem CMA nodes Add adsprpc-mem and CMA nodes for kera target. Change-Id: Ic1f0d3962281cb31cbddaeddf53fefa2ae1ef830 Signed-off-by: Patan Saddam --- qcom/kera-dma-heaps.dtsi | 6 ++++++ qcom/kera.dtsi | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/qcom/kera-dma-heaps.dtsi b/qcom/kera-dma-heaps.dtsi index 6472b080..ac87057a 100644 --- a/qcom/kera-dma-heaps.dtsi +++ b/qcom/kera-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/kera.dtsi b/qcom/kera.dtsi index d75b7787..6b7c0c1f 100644 --- a/qcom/kera.dtsi +++ b/qcom/kera.dtsi @@ -489,6 +489,12 @@ status = "ok"; }; + 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"; @@ -721,6 +727,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 "kera-pinctrl.dtsi"