ARM: dts: msm: Add support for QSEECom, TA, and Secure Display DMA Heaps

Add support for QSEECom, QSEECom TA, and display DMA heaps for the
AutoGVM platforms.

Change-Id: I68e3b7febb7f45f3c1e3abaf4ffc3bde7258f4e4
This commit is contained in:
Anant Goel
2022-07-28 17:37:45 -07:00
committed by Gerrit - the friendly Code Review server
parent 55bfb2c746
commit 07743391a5
2 changed files with 50 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/arm/msm/qcom_dma_heap_dt_constants.h>
/ {
#address-cells = <2>;
@@ -16,7 +17,7 @@
soc: soc { };
reserved-memory {
reserved_memory: reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
@@ -28,13 +29,28 @@
alignment = <0x0 0x400000>;
size = <0x0 0x2000000>;
linux,cma-default;
phandle = <0x4>;
};
pmem_shared: pmem_shared_region {
reg = <0x1 0x6a500000 0x0 0x51400000>;
label = "pmem_shared_mem";
};
qseecom_mem: qseecom_region {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
reusable;
alignment = <0x0 0x400000>;
size = <0x0 0x1400000>;
};
qseecom_ta_mem: qseecom_ta_region {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
reusable;
alignment = <0x0 0x400000>;
size = <0x0 0x1000000>;
};
};
};
@@ -51,8 +67,20 @@
interrupt-controller;
};
qcom,dma-heaps {
qcom_dma_heaps: qcom,dma-heaps {
compatible = "qcom,dma-heaps";
qcom,qseecom {
qcom,dma-heap-name = "qcom,qseecom";
qcom,dma-heap-type = <HEAP_TYPE_CMA>;
memory-region = <&qseecom_mem>;
};
qcom,qseecom_ta {
qcom,dma-heap-name = "qcom,qseecom-ta";
qcom,dma-heap-type = <HEAP_TYPE_CMA>;
memory-region = <&qseecom_ta_mem>;
};
};
qcom,msm-imem@14680000 {

View File

@@ -1,2 +1,21 @@
&reserved_memory {
secure_display_memory: secure_display_region {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
reusable;
alignment = <0x0 0x400000>;
size = <0x0 0x0a000000>;
};
};
&qcom_dma_heaps {
qcom,display {
qcom,dma-heap-name = "qcom,display";
qcom,dma-heap-type = <HEAP_TYPE_CMA>;
qcom,max-align = <9>;
memory-region = <&secure_display_memory>;
};
};
&soc {
};