From 53eb0440cb33c63a51208a2e77706a9d06dc34fd Mon Sep 17 00:00:00 2001 From: Anmolpreet Kaur Date: Wed, 9 Dec 2020 17:29:30 +0530 Subject: [PATCH] ARM: dts: msm: Enable qseecom on sdxlemur Add device tree entries to enable qseecom on sdxlemur target. Change-Id: Idba0e66e50d55fa75b9cd762a1b1efde75863436 --- qcom/sdxlemur-ion.dtsi | 17 +++++++++++++++++ qcom/sdxlemur.dtsi | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/qcom/sdxlemur-ion.dtsi b/qcom/sdxlemur-ion.dtsi index 3ad735dd3ecb..81fca5839dc6 100644 --- a/qcom/sdxlemur-ion.dtsi +++ b/qcom/sdxlemur-ion.dtsi @@ -14,6 +14,23 @@ qcom,ion-heap@8 { /* AUDIO HEAP */ reg = ; memory-region = <&audio_mem>; + }; + + qcom,ion-heap@26 { /* USER CONTIG HEAP */ + reg = ; + memory-region = <&user_contig_mem>; + qcom,ion-heap-type = "DMA"; + }; + + qcom,ion-heap@27 { /* QSEECOM HEAP */ + reg = ; + memory-region = <&qseecom_mem>; + qcom,ion-heap-type = "DMA"; + }; + + qcom,ion-heap@19 { /* QSEECOM TA HEAP */ + reg = ; + memory-region = <&qseecom_ta_mem>; qcom,ion-heap-type = "DMA"; }; }; diff --git a/qcom/sdxlemur.dtsi b/qcom/sdxlemur.dtsi index 79f8c949ba0a..067723731d36 100644 --- a/qcom/sdxlemur.dtsi +++ b/qcom/sdxlemur.dtsi @@ -53,6 +53,31 @@ linux,cma-default; }; + user_contig_mem: user_contig_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x00000000 0xffffffff>; + reusable; + alignment = <0x400000>; + size = <0x1400000>; + }; + + qseecom_mem: qseecom_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x00000000 0xffffffff>; + reusable; + alignment = <0x400000>; + size = <0x1400000>; + }; + + qseecom_ta_mem: qseecom_ta_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x00000000 0xffffffff>; + reusable; + alignment = <0x400000>; + size = <0x1000000>; + }; + + audio_mem: audio_region@0 { compatible = "shared-dma-pool"; alloc-ranges = <0x00000000 0xffffffff>; @@ -1344,6 +1369,21 @@ <&apps_smmu 0x0074 0x0011>; }; + qcom_qseecom: qseecom@90000000 { + compatible = "qcom,qseecom"; + reg = <0x90000000 0x500000>; + reg-names = "secapp-region"; + memory-region = <&qseecom_mem>; + qcom,hlos-num-ce-hw-instances = <1>; + qcom,hlos-ce-hw-instance = <0>; + qcom,qsee-ce-hw-instance = <0>; + qcom,disk-encrypt-pipe-pair = <2>; + qcom,no-clock-support; + qcom,qsee-reentrancy-support = <2>; + interconnect-names = "data_path"; + interconnects = <&system_noc MASTER_CRYPTO &mc_virt SLAVE_EBI1>; + }; + qcom,rmtfs_sharedmem@0 { compatible = "qcom,sharedmem-uio"; reg = <0x0 0x400000>;