From 7401ecc8dc0f33d694236a1ff6c1f2c25d2bbbce Mon Sep 17 00:00:00 2001 From: Kishore Kumar Ravi Date: Tue, 7 Nov 2023 10:55:29 +0530 Subject: [PATCH] dt-bindings: Add bindings for qmsgq gunyah transport Add the bindings to describe a device node for the qmsgq gunyah transport. This device enables communication between VMs through gunyah message queues. Change-Id: I4ee9b8b7d7069580a3f43eb9452b17ee13b74805 Signed-off-by: Kishore Kumar Ravi --- bindings/net/qcom-qmsgq-gunyah.yaml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 bindings/net/qcom-qmsgq-gunyah.yaml diff --git a/bindings/net/qcom-qmsgq-gunyah.yaml b/bindings/net/qcom-qmsgq-gunyah.yaml new file mode 100644 index 00000000..fa92d7d3 --- /dev/null +++ b/bindings/net/qcom-qmsgq-gunyah.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/net/qcom-qmsgq-gunyah.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Gunyah QMSGQ Transport Configuration + +maintainers: + - Chris Lew + +description: | + Configuration properties for the QMSGQ Gunyah Transport. This configuration + is to instantiate a transport for communication over vsock between primary + and secondary virtual machines on top of the Gunyah hypervisor. + +properties: + compatible: + const: qcom,qmsgq-gh + + qcom,master: + type: boolean + description: Specify if this device is on the primary virtual machine. + + msgq-label: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: The label gunyah qmsgq transport should request msgq with + from the gunyah message queue driver. + +required: + - compatible + - msgq-label + +additionalProperties: false + +examples: + - | + qmsgq-gunyah { + compatible = "qcom,qmsgq-gh"; + qcom,master; + msgq-label = <3>; + };