From 0da076193b00e75b9cac4e3ce209249ecd3ec001 Mon Sep 17 00:00:00 2001 From: Chris Lew Date: Fri, 27 Mar 2020 14:03:09 -0700 Subject: [PATCH] dt-bindings: net: Add bindings for qcom,qrtr-haven Add bindings for QRTR Haven Transport Change-Id: Ia4ec63b6fde006aef891c28702d384aec3dd2f00 --- bindings/net/qcom-qrtr-haven.yaml | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 bindings/net/qcom-qrtr-haven.yaml diff --git a/bindings/net/qcom-qrtr-haven.yaml b/bindings/net/qcom-qrtr-haven.yaml new file mode 100644 index 00000000..f24db6da --- /dev/null +++ b/bindings/net/qcom-qrtr-haven.yaml @@ -0,0 +1,52 @@ +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/neuron.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: QRTR Haven Transport Configuration + +maintainers: + - Chris Lew + +description: | + Configuration properties for the qrtr Haven Transport. This configuration is + to instantiate a transport for IPC Router protocol communication between + virtual machines on top of the Haven hypervisor. + +properties: + compatible: + const: qcom,qrtr-haven + + qcom,master: + description: Specify if this device is on the primary virtual machine. + + haven-label: + $ref: '/schemas/types.yaml#/definitions/u32' + maxItems: 1 + description: The label qrtr should request interrupts with from the haven + doorbell driver. + + shared-buffer: + $ref: '/schemas/types.yaml#/definitions/phandle' + maxItems: 1 + description: phandle reference to a reserved memory region for sharing + between vms + +required: + -compatible + -haven-label + -shared-buffer + +examples: + - | + qrtr_shbuf: qrtr-shmem { + no-map; + reg = <0x0 0xd7ef7000 0x0 0x9000>; + }; + + qrtr-haven { + compatible = "qcom,qrtr-haven"; + qcom,master; + haven-label = <0>; + shared-buffer = <&qrtr_shbuf>; + };