From f9d2f1d0760e65d0abcb02ca9c590fd63a7e745a Mon Sep 17 00:00:00 2001 From: Wesley Cheng Date: Wed, 1 Nov 2023 17:37:01 -0700 Subject: [PATCH] dt-bindings: Add USB QMI audio DT bindings Introduce bindings for the USB QMI audio offload driver. Defines the required properties, as well as lists an example of the node definition. Change-Id: I43a7dadc8ac45a26de00f295c0bed0ae20e6075c Signed-off-by: Wesley Cheng --- bindings/sound/qcom,usb-audio-qmi-dev.yaml | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 bindings/sound/qcom,usb-audio-qmi-dev.yaml diff --git a/bindings/sound/qcom,usb-audio-qmi-dev.yaml b/bindings/sound/qcom,usb-audio-qmi-dev.yaml new file mode 100644 index 00000000..cbbfd6a7 --- /dev/null +++ b/bindings/sound/qcom,usb-audio-qmi-dev.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,usb-audio-qmi-dev.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: QTI USB Audio QMI Device + +maintainers: + - Wesley Cheng + +properties: + compatible: + items: + - enum: + - qcom,usb-audio-qmi-dev + + iommus: + maxItems: 1 + + qcom,usb-audio-stream-id: + description: + Stream id is prepended to iova before passing + iova to remote processor. This allows remote processor to access iova. + $ref: /schemas/types.yaml#/definitions/uint32 + + qcom,usb-audio-intr-num: + description: + Interrupter number for external sub system + destination. + $ref: /schemas/types.yaml#/definitions/uint32 + +additionalProperties: false + +required: + - compatible + - iommus + - qcom,usb-audio-stream-id + +examples: + - | + usb_audio_qmi_dev { + compatible = "qcom,usb-audio-qmi-dev"; + iommus = <&lpass_q6_smmu 12>; + qcom,usb-audio-stream-id = <12>; + qcom,usb-audio-intr-num = <1>; + };