From a00d39d0a8781aee74c7e15d84d11be62842c6c3 Mon Sep 17 00:00:00 2001 From: Murali Nalajala Date: Mon, 8 Jun 2020 16:27:22 -0700 Subject: [PATCH] ARM: dts: msm: Add RM(Resource Manager) device for the trusted VM Add RM device node to probe RM driver to initialize various hypervisor resources like doorbell and message queues. This node should overlay by RM-VM dynamically when the primary vm load the VM image into memory. Until this support is ready in RMVM, statically maintain the node information in the DT. Change-Id: I8d8c39eb2b7b435f6f99ddc3677003fbd88b5199 --- qcom/trustedvm.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/qcom/trustedvm.dtsi b/qcom/trustedvm.dtsi index f6277120aee3..327352272abc 100644 --- a/qcom/trustedvm.dtsi +++ b/qcom/trustedvm.dtsi @@ -193,6 +193,34 @@ }; }; + /* Temporary node until RM dynamic overlay support present */ + hypervisor { + #address-cells = <2>; + #size-cells = <0>; + compatible = "qcom,haven-hypervisor-1.0", "qcom,haven-hypervisor", "simple-bus"; + name = "hypervisor"; + + qcom,haven-vm { + compatible = "qcom,haven-vm-id-1.0", "qcom,haven-vm-id"; + qcom,vendor = "Qualcomm Technologies, Inc."; + qcom,vmid = <45>; + qcom,owner-vmid = <3>; + }; + + qcom,resource-manager-rpc@0000000000000001 { + compatible = "qcom,resource-manager-1-0", "qcom,resource-manager", "qcom,haven-message-queue", "qcom,haven-capability"; + interrupts = , /* TX full IRQ */ + ; /* RX empty IRQ */ + reg = <0x00000000 0x00000000>, <0x00000000 0x00000001>; /* TX, RX cap ids */ + qcom,is-full-duplex; + qcom,free-irq-start = <0>; + qcom,tx-queue-depth = <8>; + qcom,tx-message-size = <0xf0>; + qcom,rx-queue-depth = <8>; + qcom,rx-message-size = <0xf0>; + }; + }; + soc: soc { }; };