Skip to content

Commit

Permalink
ASoC: dt-bindings: Add Q6USB backend
Browse files Browse the repository at this point in the history
Add a dt-binding to describe the definition of enabling the Q6 USB backend
device for audio offloading.  The node carries information, which is passed
along to the QC USB SND class driver counterpart.  These parameters will be
utilized during QMI stream enable requests.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20240217001017.29969-36-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wesley Cheng authored and Greg Kroah-Hartman committed Feb 17, 2024
1 parent 9affb1d commit 58c7ea6
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions Documentation/devicetree/bindings/sound/qcom,q6usb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/qcom,q6usb.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm ASoC DPCM USB backend DAI

maintainers:
- Wesley Cheng <quic_wcheng@quicinc.com>

description:
The USB port is a supported AFE path on the Q6 DSP. This ASoC DPCM
backend DAI will communicate the required settings to initialize the
XHCI host controller properly for enabling the offloaded audio stream.
Parameters defined under this node will carry settings, which will be
passed along during the QMI stream enable request and configuration of
the XHCI host controller.

allOf:
- $ref: dai-common.yaml#

properties:
compatible:
enum:
- qcom,q6usb

iommus:
maxItems: 1

"#sound-dai-cells":
const: 1

qcom,usb-audio-intr-idx:
description:
Desired XHCI interrupter number to use. Depending on the audio DSP
on the platform, it will operate on a specific XHCI interrupter.
$ref: /schemas/types.yaml#/definitions/uint16
maximum: 8

required:
- compatible
- "#sound-dai-cells"
- qcom,usb-audio-intr-idx

additionalProperties: false

examples:
- |
dais {
compatible = "qcom,q6usb";
#sound-dai-cells = <1>;
iommus = <&apps_smmu 0x180f 0x0>;
qcom,usb-audio-intr-idx = /bits/ 16 <2>;
};

0 comments on commit 58c7ea6

Please sign in to comment.