From 798c3428753ee66dbb454941ba0f53fa871da21f Mon Sep 17 00:00:00 2001 From: David Collins Date: Thu, 15 Jun 2023 16:38:55 -0700 Subject: [PATCH] bindings: Add altmode-glink The altmode mode 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. This is a snapshot taken as of qcom-6.1 commit 956e9008b1cf ("bindings: Add altmode-glink") which was then converted to yaml. Change-Id: Iec1cf5e64ed9b4eb93fbfa6aacc998d4f4f730e7 Signed-off-by: David Collins --- bindings/soc/qcom/qcom,altmode-glink.yaml | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 bindings/soc/qcom/qcom,altmode-glink.yaml diff --git a/bindings/soc/qcom/qcom,altmode-glink.yaml b/bindings/soc/qcom/qcom,altmode-glink.yaml new file mode 100644 index 00000000..76dca762 --- /dev/null +++ b/bindings/soc/qcom/qcom,altmode-glink.yaml @@ -0,0 +1,41 @@ +# 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 + +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"; + }; + };