# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/soc/qcom/qcom,gh-large-dmabuf-test.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: QTI Gunyah Hypervisor Large DMA-BUF Test Driver

maintainers:
  - Georgi Djakov <quic_c_gdjako@quicinc.com>

description: |
  The Gunyah Hypervisor Test Driver is used to validate gunyah hypervisor
  functionality. It includes test nodes for transferring large dma-bufs
  between VMs.

properties:
  compatible:
    const: qcom,gh-large-dmabuf-test

  gunyah-label:
    $ref: '/schemas/types.yaml#/definitions/uint32'
    description: The test driver will request interrupts with this label
                 from the gunyah doorbell driver.

  qcom,primary:
    type: boolean
    description: Specify if this device is on the primary virtual machine.

required:
  - compatible

additionalProperties: false

examples:
  - |
    Master: qcom,test-large-dmabuf {
      compatible = "qcom,gh-large-dmabuf-test";
      gunyah-label = <4>;
      qcom,primary;
    };
    Client: qcom,test-large-dmabuf {
      compatible = "qcom,gh-large-dmabuf-test";
      gunyah-label = <4>;
    };
