From 5a26118c595b0fef9799cbde74931504aa3bc4e3 Mon Sep 17 00:00:00 2001 From: Ramkumar Radhakrishnan Date: Tue, 14 Jul 2020 15:56:41 -0700 Subject: [PATCH] ARM: dts: msm: Add entry for non secure display heap memory 1. Add entry to reserve 100 MB contiguous memory from non secure display heap to allocate demura buffers and image buffer for TUI use case 2. Allocated buffers from this heap will be exported to secondary VM to use it for composition during TUI session Change-Id: I02df4631610099fbb7c01a716b4c2144db5c8722 --- qcom/lahaina-ion.dtsi | 5 +++++ qcom/lahaina.dtsi | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/qcom/lahaina-ion.dtsi b/qcom/lahaina-ion.dtsi index 9940320817a4..e85391beee9b 100644 --- a/qcom/lahaina-ion.dtsi +++ b/qcom/lahaina-ion.dtsi @@ -67,5 +67,10 @@ qcom,ion-heap-type = "DMA"; }; + qcom,ion-heap@3 { /* NON SECURE DISPLAY HEAP */ + reg = ; + memory-region = <&non_secure_display_memory>; + qcom,ion-heap-type = "DMA"; + }; }; }; diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index 0b9a463ccb02..d4776466f6c9 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -517,6 +517,14 @@ reg = <0x0 0xe3300000 0x0 0x0100000>; label = "dfps_data_region"; }; + + non_secure_display_memory: non_secure_display_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment = <0x0 0x400000>; + size = <0x0 0x6400000>; + }; }; chosen {