From 1c5ce4e94ce6aff3afa4f6595093ba08c51582ae Mon Sep 17 00:00:00 2001 From: Kishore Kumar Ravi Date: Thu, 9 Nov 2023 14:57:25 +0530 Subject: [PATCH] ARM: dts: msm: Add nodes for qmsgq gunyah on sun Add the device nodes on sun oemvm and vm to enable qmsgq socket communication over gunyah message queues. Change-Id: Ib28b1204006819ef9fe044586dbaada64d826b4a Signed-off-by: Kishore Kumar Ravi --- qcom/sun-oemvm.dtsi | 14 ++++++++++++++ qcom/sun-vm.dtsi | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/qcom/sun-oemvm.dtsi b/qcom/sun-oemvm.dtsi index 1b5590f0..c22eb38a 100644 --- a/qcom/sun-oemvm.dtsi +++ b/qcom/sun-oemvm.dtsi @@ -168,6 +168,15 @@ peer-default; }; + msgqsock-msgq-pair { + vdevice-type = "message-queue-pair"; + generate = "/hypervisor/msgqsock-msgq-pair"; + message-size = <0xf0>; + queue-depth = <0x8>; + peer = "vm-name:qcom,trustedvm"; + qcom,label = <0x3>; + }; + qrtr-shm { vdevice-type = "shm-doorbell"; generate = "/hypervisor/qrtr-shm"; @@ -250,4 +259,9 @@ compatible = "qcom,qrtr-gunyah"; gunyah-label = <8>; }; + + qmsgq-gunyah { + compatible = "qcom,qmsgq-gh"; + msgq-label = <3>; + }; }; diff --git a/qcom/sun-vm.dtsi b/qcom/sun-vm.dtsi index 4872a9f5..117e3a0f 100644 --- a/qcom/sun-vm.dtsi +++ b/qcom/sun-vm.dtsi @@ -249,6 +249,15 @@ peer-default; qcom,label = <0xA>; }; + + msgqsock-msgq { + vdevice-type = "message-queue-pair"; + generate = "/hypervisor/msgqsock-msgq-pair"; + message-size = <0xf0>; + queue-depth = <0x8>; + peer = "vm-name:qcom,oemvm"; + qcom,label = <0x3>; + }; }; }; @@ -396,6 +405,12 @@ dma-coherent; }; + qmsgq-gunyah { + compatible = "qcom,qmsgq-gh"; + qcom,master; + msgq-label = <3>; + }; + qcom_smcinvoke { compatible = "qcom,smcinvoke"; };