From b228b1409c8259aa8f3faf7a84672e41bde71919 Mon Sep 17 00:00:00 2001 From: Kishore Kumar Ravi Date: Thu, 9 Nov 2023 14:38:23 +0530 Subject: [PATCH] ARM: dts: msm: Add oemvm qrtr gunyah node for sun Add the nodes for enable qrtr communication between primary vm and oemvm on sun. This adds platform devices and vdevice descriptions to start the qrtr gunyah transport on both primary vm and oemvm device trees. This also adds the device tree node to configure qrtr as node id 21 on oem vm. Change-Id: I1575853a67fe9edbcb751dbb71062b6da624d9be Signed-off-by: Kishore Kumar Ravi --- qcom/sun-oemvm.dtsi | 21 +++++++++++++++++++++ qcom/sun.dtsi | 7 +++++++ 2 files changed, 28 insertions(+) diff --git a/qcom/sun-oemvm.dtsi b/qcom/sun-oemvm.dtsi index b7028dc2..daa0af65 100644 --- a/qcom/sun-oemvm.dtsi +++ b/qcom/sun-oemvm.dtsi @@ -167,6 +167,17 @@ qcom,label = <0x5>; peer-default; }; + + qrtr-shm { + vdevice-type = "shm-doorbell"; + generate = "/hypervisor/qrtr-shm"; + push-compatible = "qcom,qrtr-gunyah-gen"; + peer-default; + memory { + qcom,label = <0x8>; + allocate-base; + }; + }; }; }; @@ -229,4 +240,14 @@ interrupt-names = "qcom,qtmr-intr"; qcom,secondary; }; + + qcom,qrtr { + compatible = "qcom,qrtr"; + qcom,node-id = <21>; + }; + + qrtr-gunyah { + compatible = "qcom,qrtr-gunyah"; + gunyah-label = <8>; + }; }; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 7a2c0a75..dc2b57a6 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -2959,6 +2959,13 @@ qcom,count-unit = <0x10000>; qcom,target-dev = <&qcom_llcc_dcvs_hw>; }; + + qcom,qrtr-gunyah-oemvm { + compatible = "qcom,qrtr-gunyah"; + qcom,master; + gunyah-label = <8>; + peer-name = <4>; + }; }; &reserved_memory {