From ae187048421afc6cc1cb58d5989c70e3b6fbf4a0 Mon Sep 17 00:00:00 2001 From: Anirudh Raghavendra Date: Thu, 25 Jan 2024 15:41:51 -0800 Subject: [PATCH] ARM: dts: msm: Add CMA node for secure DSP Add CMA memory node for secure fastrpc usecases. Change-Id: I3c8cf93a91025ebbcb570db6d7b0b82a1554bbb7 Signed-off-by: Anirudh Raghavendra --- qcom/sun-dma-heaps.dtsi | 8 +++++++- qcom/sun.dtsi | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/qcom/sun-dma-heaps.dtsi b/qcom/sun-dma-heaps.dtsi index 25350f01..26cc40fc 100644 --- a/qcom/sun-dma-heaps.dtsi +++ b/qcom/sun-dma-heaps.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -48,5 +48,11 @@ memory-region = <&spu_modem_shared_mem>; qcom,token = <0x10800000>; }; + + 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/sun.dtsi b/qcom/sun.dtsi index 5bcfc69c..78974edf 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -3709,6 +3709,14 @@ alignment = <0x0 0x400000>; size = <0x0 0x1000000>; }; + + 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 "sun-dma-heaps.dtsi"