From 7aa4cffcc7f65b7d4f0dc57dc38d4bc77bbf8b0b Mon Sep 17 00:00:00 2001 From: Hrishabh Rajput Date: Thu, 26 Sep 2024 12:04:48 +0530 Subject: [PATCH] ARM: dts: msm: Add oemvm support for Tuna Add device-tree nodes required to support oemvm on Tuna SoC. Change-Id: I338429e2a15405b328106634a2b50290fd975023 Signed-off-by: Hrishabh Rajput --- qcom/tuna.dtsi | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/qcom/tuna.dtsi b/qcom/tuna.dtsi index cdfcf995..020e452c 100644 --- a/qcom/tuna.dtsi +++ b/qcom/tuna.dtsi @@ -1849,6 +1849,47 @@ &trust_ui_vm_virt_be2>; }; + oem_vm_vblk0_ring: oem_vm_vblk0_ring { + size = <0x4000>; + gunyah-label = <0x16>; + }; + + oem_vm_vblk1_ring: oem_vm_vblk1_ring { + size = <0x4000>; + gunyah-label = <0x13>; + }; + + oem_vm_swiotlb: oem_vm_swiotlb { + size = <0x100000>; + gunyah-label = <0x14>; + }; + + oem_vm: qcom,oem_vm { + vm_name = "oemvm"; + shared-buffers-size = <0x108000>; + shared-buffers = <&oem_vm_vblk0_ring &oem_vm_vblk1_ring &oem_vm_swiotlb>; + }; + + oem_vm_virt_be0: oem_vm_virt_be0@16 { + qcom,vm = <&oem_vm>; + qcom,label = <0x16>; + }; + + oem_vm_virt_be1: oem_vm_virt_be1@13 { + qcom,vm = <&oem_vm>; + qcom,label = <0x13>; + }; + + gh-secure-vm-loader@1 { + compatible = "qcom,gh-secure-vm-loader"; + qcom,pas-id = <34>; + qcom,vmid = <49>; + qcom,firmware-name = "oemvm"; + qcom,keep-running; + memory-region = <&oem_vm_mem &vm_comm_mem>; + virtio-backends = <&oem_vm_virt_be0 &oem_vm_virt_be1>; + }; + gh-secure-vm-loader@2 { compatible = "qcom,gh-secure-vm-loader"; qcom,pas-id = <35>; @@ -2017,6 +2058,13 @@ alignment = <0x0 0x400000>; }; + oem_vm_mem: oem_vm_region@f7c00000 { + compatible = "shared-dma-pool"; + reg = <0x0 0xf7c00000 0x0 0x4c00000>; + reusable; + alignment = <0x0 0x400000>; + }; + vm_comm_mem: vm_comm_mem_region { compatible = "shared-dma-pool"; alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;