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

title: Qualcomm Technologies, Inc. Type-C Alternate Mode GLINK device

maintainers:
  - Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>

description: |
  The Qualcomm Technologies, Inc. Type-C Alternate (Alt) Mode GLINK device
  provides an interface for Type-C alternate mode clients to receive data such
  as Pin Assignment Notifications from the Type-C stack running on a remote
  subsystem (e.g. DSP) via the PMIC GLINK interface.

properties:
  compatible:
    const: qcom,altmode-glink

  qcom,altmode-name:
    description: Alt-mode name
    $ref: /schemas/types.yaml#/definitions/string
    enum: [altmode_0, altmode_1, altmode_2, altmode_3, altmode_4,
           altmode_5, altmode_6, altmode_7, altmode_8, altmode_9]

required:
  - compatible
  - qcom,altmode-name

additionalProperties: false

examples:
  - |
    pmic_glink {
      altmode {
        compatible = "qcom,altmode-glink";
        qcom,altmode-name = "altmode_0";
      };
    };
