# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pinctrl/qcom,tlmm-vm-mem-access.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm Technologies, Inc. TLMM VM memory access driver

maintainers:
   - Murali Nalajala <quic_mnalajal@quicinc.com>
   - Cong Zhang <quic_congzhan@quicinc.com>

description: |+
   The driver facilitates initial memory access to TLMM VM driver.

properties:
  compatible:
    const: qcom,tlmm-vm-mem-access

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

patternProperties:
  "^.*$":
    type: object
    description: child node representing a VM instance

    properties:
      tlmm-vm-gpio-list:
        description: List of shared gpios.

      qcom,vmid:
        description: VMID for the VM instance
        $ref: /schemas/types.yaml#/definitions/uint32

      qcom,label:
        description: Unique label for the VM instance
        $ref: /schemas/types.yaml#/definitions/uint32

additionalProperties: false

examples:
  - |
    tlmm-vm-mem-access {
        compatible = "qcom,tlmm-vm-mem-access";
        qcom,master;
        tuivm {
            qcom,label = <0x01>;
            qcom,vmid = <45>;
            tlmm-vm-gpio-list = <&tlmm 1 0 &tlmm 2 0>;
        };
    };
...
