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

title: Qualcomm Technologies Inc. Tmecom qmp client

maintainers:
  - Gaurav Kashyap <quic_gaurkash@quicinc.com>
  - Kuldeep Singh <quic_kuldsing@quicinc.com>

description:
  QTI Messaging Protocol(QMP) TMECom client is an interface for other clients
  to send data to Trust Management Engine (TME) on MSM platforms

properties:
  compatible:
    const: qcom,tmecom-qmp-client

  label:
    $ref: '/schemas/types.yaml#/definitions/string'
    maxItems: 1
    description: The name of the remote proc this link connects to.

  mboxes:
    maxItems: 1
    description: QMP mailbox phandle and channel identifier tuples

  mbox-names:
    maxItems: 1
    description: Name for listed mail boxes

required:
  - compatible
  - label
  - mboxes
  - mbox-names

additionalProperties: false

examples:
  - |
    qmp_tme: qcom,qmp-tme {
        compatible = "qcom,qmp-mbox";
        qcom,remote-pid = <14>;
        mboxes = <&ipcc_mproc IPCC_CLIENT_TME
              IPCC_MPROC_SIGNAL_GLINK_QMP>;
        mbox-names = "tme_qmp";
        label = "tme";
        mbox-desc-offset = <0x0>;
        #mbox-cells = <1>;
    };

    qcom,tmecom-qmp-client {
        compatible = "qcom,tmecom-qmp-client";
        mboxes = <&qmp_tme 0>;
        mbox-names = "tmecom";
        label = "tmecom";
        depends-on-supply = <&qmp_tme>;
    };
