From b0d0e34e95454efc87b077cbaa2bc961bcfb4e6d Mon Sep 17 00:00:00 2001 From: Govindaraj Rajagopal Date: Mon, 9 May 2022 20:32:14 +0530 Subject: [PATCH] ARM: dts: msm: Add secure dma-buf heap support for neo Added below secure dma-buf pool support for neo. 1. qcom,secure_lsr_lefteye 2. qcom,secure_lsr_righteye 3. qcom,secure_lsr_depth 4. qcom,secure_lsr_misc Usecase demands contigious memory, so allocated from HEAP_TYPE_SECURE_CARVEOUT. Change-Id: I0cb82251f7fa00cb9b75dcf6faac35758b330acb --- qcom/neo-dma-heaps.dtsi | 28 ++++++++++++++++++++++++++++ qcom/neo.dtsi | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/qcom/neo-dma-heaps.dtsi b/qcom/neo-dma-heaps.dtsi index 82abb6bb..a08f9c5c 100644 --- a/qcom/neo-dma-heaps.dtsi +++ b/qcom/neo-dma-heaps.dtsi @@ -28,6 +28,34 @@ memory-region = <&lsr_misc_mem_heap>; }; + qcom,secure_lsr_lefteye { + qcom,dma-heap-name = "qcom,secure_lsr_lefteye"; + qcom,dma-heap-type = ; + memory-region = <&secure_lsr_lefteye_mem_heap>; + qcom,token = <0x80000>; + }; + + qcom,secure_lsr_righteye { + qcom,dma-heap-name = "qcom,secure_lsr_righteye"; + qcom,dma-heap-type = ; + memory-region = <&secure_lsr_righteye_mem_heap>; + qcom,token = <0x80000>; + }; + + qcom,secure_lsr_depth { + qcom,dma-heap-name = "qcom,secure_lsr_depth"; + qcom,dma-heap-type = ; + memory-region = <&secure_lsr_depth_mem_heap>; + qcom,token = <0x80000>; + }; + + qcom,secure_lsr_misc { + qcom,dma-heap-name = "qcom,secure_lsr_misc"; + qcom,dma-heap-type = ; + memory-region = <&secure_lsr_misc_mem_heap>; + qcom,token = <0x80000>; + }; + qcom,user_contig { qcom,dma-heap-name = "qcom,user-contig"; qcom,dma-heap-type = ; diff --git a/qcom/neo.dtsi b/qcom/neo.dtsi index 53b068eb..f640c4f8 100644 --- a/qcom/neo.dtsi +++ b/qcom/neo.dtsi @@ -331,6 +331,38 @@ alignment = <0x0 0x400000>; size = <0x0 0x2800000>; }; + + secure_lsr_lefteye_mem_heap: secure_lsr_lefteye_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + no-map; + alignment = <0x0 0x400000>; + size = <0x0 0xC00000>; + }; + + secure_lsr_righteye_mem_heap: secure_lsr_righteye_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + no-map; + alignment = <0x0 0x400000>; + size = <0x0 0xC00000>; + }; + + secure_lsr_depth_mem_heap: secure_lsr_depth_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + no-map; + alignment = <0x0 0x400000>; + size = <0x0 0x100000>; + }; + + secure_lsr_misc_mem_heap: secure_lsr_misc_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + no-map; + alignment = <0x0 0x400000>; + size = <0x0 0x2800000>; + }; }; &soc {