From 40d027c5ce41bbc752516c0c68fcf2cffd2518c3 Mon Sep 17 00:00:00 2001 From: Rajeshwar Kurapaty Date: Tue, 19 May 2020 21:53:36 +0530 Subject: [PATCH] ARM: dts: msm: Add secure display heap configuration for holi Add secure display heap configuration to enable secure memory allocations for secure display/camera usecases. Change-Id: I19ae73eb8da6780e94b3f15b1c8c2cc9ed05615b --- qcom/holi-ion.dtsi | 6 ++++++ qcom/holi.dtsi | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/qcom/holi-ion.dtsi b/qcom/holi-ion.dtsi index 71bec6ce40e7..492860866012 100644 --- a/qcom/holi-ion.dtsi +++ b/qcom/holi-ion.dtsi @@ -15,5 +15,11 @@ reg = ; qcom,ion-heap-type = "SYSTEM_SECURE"; }; + + qcom,ion-heap@10 { /* SECURE DISPLAY HEAP */ + reg = <10>; + memory-region = <&secure_display_memory>; + qcom,ion-heap-type = "HYP_CMA"; + }; }; }; diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index 0c09985e443c..d6cd5ced6ef0 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -266,6 +266,14 @@ reg = <0x0 0xd0000000 0x0 0xa600000>; }; + secure_display_memory: secure_display_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0 0x00000000 0 0xffffffff>; + reusable; + alignment = <0 0x400000>; + size = <0 0x5c00000>; + }; + /* global autoconfigured region for contiguous allocations */ linux,cma { compatible = "shared-dma-pool";