From ffce3361b22dfae349d3cc2799643e91492d0812 Mon Sep 17 00:00:00 2001 From: Anmolpreet Kaur Date: Thu, 14 Sep 2023 21:05:49 +0530 Subject: [PATCH] ARM: dts: qcom: Add device tree entries for QTEE drivers Add device tree entries for smcinvoke, shmbridge and tz-log drivers and qseecom heaps. Change-Id: I1a427c66e12a02532097db352a1d26fe5ececb9f Signed-off-by: Anmolpreet Kaur --- qcom/sun-dma-heaps.dtsi | 10 ++++++++++ qcom/sun.dtsi | 35 ++++++++++++++++++++++++++++++++--- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/qcom/sun-dma-heaps.dtsi b/qcom/sun-dma-heaps.dtsi index d9284d65..2b46e4bc 100644 --- a/qcom/sun-dma-heaps.dtsi +++ b/qcom/sun-dma-heaps.dtsi @@ -8,6 +8,16 @@ &soc { qcom,dma-heaps { compatible = "qcom,dma-heaps"; + qcom,qseecom { + qcom,dma-heap-name = "qcom,qseecom"; + qcom,dma-heap-type = ; + memory-region = <&qseecom_mem>; + }; + qcom,qseecom_ta { + qcom,dma-heap-name = "qcom,qseecom-ta"; + qcom,dma-heap-type = ; + memory-region = <&qseecom_ta_mem>; + }; }; }; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 7ed4c38e..ccc5359c 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -168,6 +168,14 @@ qcom-scm { compatible = "qcom,scm"; }; + + qcom_smcinvoke { + compatible = "qcom,smcinvoke"; + }; + + qtee_shmbridge { + compatible = "qcom,tee-shared-memory-bridge"; + }; }; &soc { @@ -345,6 +353,14 @@ }; }; + qcom_tzlog: tz-log@14680720 { + compatible = "qcom,tz-log"; + reg = <0x14680720 0x3000>; + qcom,hyplog-enabled; + hyplog-address-offset = <0x410>; + hyplog-size-offset = <0x414>; + }; + tlmm: pinctrl@f000000 { compatible = "qcom,sun-tlmm"; reg = <0xf000000 0x202000>; @@ -469,9 +485,6 @@ clock-frequency = <19200000>; }; - qcom_tzlog: tz-log@0 { - }; - clk_virt: interconnect@0 { compatible = "qcom,sun-clk_virt"; #interconnect-cells = <1>; @@ -1400,6 +1413,22 @@ reg = <0x0 0x81c60000 0x0 0x20000>; }; + 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>; + }; + /* merged aop_config, tme_crash_dump, tme_log and uefi_log regions */ aop_tme_uefi_merged_mem: aop_tme_uefi_merged_region@81c80000 { no-map;