From bf8896d6ab47e9e6da79c7bceabef9ae8a131892 Mon Sep 17 00:00:00 2001 From: leihan Date: Fri, 22 Sep 2023 18:54:53 +0800 Subject: [PATCH] dt-bindings: net: Add snapshot for qrtr-gunyah bindings qrtr-gunyah bindings snapshot from msm-pineapple branch commit 374f1536a784("ARM: dts: msm: Add snapshot of memshare dt documentation"). Then fix format isuues to pass YAML validation. Change-Id: Ifb5591d83877e5454874d24827b7ebcaaba8d4bc Signed-off-by: leihan --- bindings/net/qcom-qrtr-gunyah.yaml | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 bindings/net/qcom-qrtr-gunyah.yaml diff --git a/bindings/net/qcom-qrtr-gunyah.yaml b/bindings/net/qcom-qrtr-gunyah.yaml new file mode 100644 index 00000000..4a6612a9 --- /dev/null +++ b/bindings/net/qcom-qrtr-gunyah.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/net/qrtr-gunyah.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: QRTR Gunyah Transport Configuration + +maintainers: + - Chris Lew + - Lei Han + +description: | + Configuration properties for the qrtr Gunyah Transport. This configuration is + to instantiate a transport for IPC Router protocol communication between + virtual machines on top of the Gunyah hypervisor. + +properties: + compatible: + const: qcom,qrtr-gunyah + + qcom,master: + type: boolean + description: Specify if this device is on the primary virtual machine. + + gunyah-label: + $ref: '/schemas/types.yaml#/definitions/uint32' + maxItems: 1 + description: The label qrtr should request interrupts with from the gunyah + 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 + - gunyah-label + - shared-buffer + +additionalProperties: false + +examples: + - | + qrtr_shbuf: qrtr-shmem { + no-map; + reg = <0x0 0xd7ef7000 0x0 0x9000>; + }; + + qrtr-gunyah { + compatible = "qcom,qrtr-gunyah"; + qcom,master; + gunyah-label = <0>; + shared-buffer = <&qrtr_shbuf>; + };