xref: /linux/Documentation/devicetree/bindings/sound/qcom,q6afe.yaml (revision 77e67d5daaf155f7d0f99f4e797c4842169ec19e)
1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/qcom,q6afe.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Audio FrontEnd (Q6AFE)
8
9maintainers:
10  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
12
13allOf:
14  - $ref: /schemas/soc/qcom/qcom,apr-services.yaml#
15
16properties:
17  compatible:
18    enum:
19      - qcom,q6afe
20
21  clock-controller:
22    $ref: /schemas/sound/qcom,q6dsp-lpass-clocks.yaml#
23    unevaluatedProperties: false
24    description: Qualcomm DSP LPASS clock controller
25
26  dais:
27    type: object
28    $ref: /schemas/sound/qcom,q6dsp-lpass-ports.yaml#
29    unevaluatedProperties: false
30    description: Qualcomm DSP audio ports
31
32  usbd:
33    type: object
34    $ref: /schemas/sound/qcom,q6usb.yaml#
35    unevaluatedProperties: false
36    description: Qualcomm DSP USB audio ports
37
38required:
39  - compatible
40  - dais
41
42unevaluatedProperties: false
43
44examples:
45  - |
46    #include <dt-bindings/soc/qcom,apr.h>
47    #include <dt-bindings/sound/qcom,q6afe.h>
48    apr {
49        #address-cells = <1>;
50        #size-cells = <0>;
51
52        service@4 {
53            compatible = "qcom,q6afe";
54            reg = <APR_SVC_AFE>;
55            qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";
56
57            clock-controller {
58                compatible = "qcom,q6afe-clocks";
59                #clock-cells = <2>;
60            };
61
62            dais {
63                compatible = "qcom,q6afe-dais";
64                #address-cells = <1>;
65                #size-cells = <0>;
66                #sound-dai-cells = <1>;
67
68                dai@22 {
69                    reg = <QUATERNARY_MI2S_RX>;
70                    qcom,sd-lines = <0 1 2 3>;
71                };
72            };
73
74            usbd {
75                compatible = "qcom,q6usb";
76                #sound-dai-cells = <1>;
77                iommus = <&apps_smmu 0x180f 0x0>;
78                qcom,usb-audio-intr-idx = /bits/ 16 <2>;
79            };
80        };
81    };
82