From 9ecc282c1ac8cc23146782fc210437a6ff6d7d20 Mon Sep 17 00:00:00 2001 From: Mahadevan Date: Tue, 7 Dec 2021 14:23:03 +0530 Subject: [PATCH] ARM: dts: msm: add display and demura heap for diwali This changes adds display and demura heap region for diwali target. Change-Id: Ib986c6db54fca84ab3d3b9d33577424352c682d7 --- qcom/diwali-dma-heaps.dtsi | 14 ++++++++++++++ qcom/diwali.dtsi | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/qcom/diwali-dma-heaps.dtsi b/qcom/diwali-dma-heaps.dtsi index 0ae9fffa..b7faba12 100644 --- a/qcom/diwali-dma-heaps.dtsi +++ b/qcom/diwali-dma-heaps.dtsi @@ -35,6 +35,20 @@ memory-region = <&qseecom_ta_mem>; }; + qcom,display { + qcom,dma-heap-name = "qcom,display"; + qcom,dma-heap-type = ; + qcom,max-align = <9>; + memory-region = <&non_secure_display_memory>; + }; + + qcom,demura { + qcom,dma-heap-name = "qcom,demura"; + qcom,dma-heap-type = ; + qcom,max-align = <9>; + memory-region = <&demura_heap_memory>; + }; + qcom,audio_ml { qcom,dma-heap-name = "qcom,audio-ml"; qcom,dma-heap-type = ; diff --git a/qcom/diwali.dtsi b/qcom/diwali.dtsi index 45976b9b..c49049c8 100644 --- a/qcom/diwali.dtsi +++ b/qcom/diwali.dtsi @@ -384,6 +384,22 @@ mem-type = <2>; }; + non_secure_display_memory: non_secure_display_region { + compatible = "shared-dma-pool"; + reusable; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + size = <0x0 0xa400000>; + alignment = <0x0 0x400000>; + }; + + demura_heap_memory: demura_heap_region { + compatible = "shared-dma-pool"; + reusable; + alloc-ranges = <0x1 0x00000000 0xfffffffe 0xffffffff>; + size = <0x0 0x2800000>; + alignment = <0x0 0x400000>; + }; + va_md_mem: va_md_mem_region { compatible = "shared-dma-pool"; alloc-ranges = <0x1 0x00000000 0xfffffffe 0xffffffff>;