Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: dt-bindings: Add Q6USB backend

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>

authored by

Wesley Cheng and committed by
Greg Kroah-Hartman
58c7ea6a 9affb1d9

+55
+55
Documentation/devicetree/bindings/sound/qcom,q6usb.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/qcom,q6usb.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm ASoC DPCM USB backend DAI 8 + 9 + maintainers: 10 + - Wesley Cheng <quic_wcheng@quicinc.com> 11 + 12 + description: 13 + The USB port is a supported AFE path on the Q6 DSP. This ASoC DPCM 14 + backend DAI will communicate the required settings to initialize the 15 + XHCI host controller properly for enabling the offloaded audio stream. 16 + Parameters defined under this node will carry settings, which will be 17 + passed along during the QMI stream enable request and configuration of 18 + the XHCI host controller. 19 + 20 + allOf: 21 + - $ref: dai-common.yaml# 22 + 23 + properties: 24 + compatible: 25 + enum: 26 + - qcom,q6usb 27 + 28 + iommus: 29 + maxItems: 1 30 + 31 + "#sound-dai-cells": 32 + const: 1 33 + 34 + qcom,usb-audio-intr-idx: 35 + description: 36 + Desired XHCI interrupter number to use. Depending on the audio DSP 37 + on the platform, it will operate on a specific XHCI interrupter. 38 + $ref: /schemas/types.yaml#/definitions/uint16 39 + maximum: 8 40 + 41 + required: 42 + - compatible 43 + - "#sound-dai-cells" 44 + - qcom,usb-audio-intr-idx 45 + 46 + additionalProperties: false 47 + 48 + examples: 49 + - | 50 + dais { 51 + compatible = "qcom,q6usb"; 52 + #sound-dai-cells = <1>; 53 + iommus = <&apps_smmu 0x180f 0x0>; 54 + qcom,usb-audio-intr-idx = /bits/ 16 <2>; 55 + };