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