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
This commit is contained in:
Govindaraj Rajagopal
2022-05-09 20:32:14 +05:30
parent 73ea8d26a5
commit b0d0e34e95
2 changed files with 60 additions and 0 deletions

View File

@@ -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 = <HEAP_TYPE_SECURE_CARVEOUT>;
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 = <HEAP_TYPE_SECURE_CARVEOUT>;
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 = <HEAP_TYPE_SECURE_CARVEOUT>;
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 = <HEAP_TYPE_SECURE_CARVEOUT>;
memory-region = <&secure_lsr_misc_mem_heap>;
qcom,token = <0x80000>;
};
qcom,user_contig {
qcom,dma-heap-name = "qcom,user-contig";
qcom,dma-heap-type = <HEAP_TYPE_CMA>;

View File

@@ -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 {