1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/qcom,q6asm.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Audio Stream Manager (Q6ASM)
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,q6asm
20
21  dais:
22    type: object
23    $ref: /schemas/sound/qcom,q6asm-dais.yaml#
24    unevaluatedProperties: false
25    description: Qualcomm DSP audio ports
26
27required:
28  - compatible
29  - dais
30
31unevaluatedProperties: false
32
33examples:
34  - |
35    #include <dt-bindings/soc/qcom,apr.h>
36
37    apr {
38        #address-cells = <1>;
39        #size-cells = <0>;
40
41        service@7 {
42            compatible = "qcom,q6asm";
43            reg = <APR_SVC_ASM>;
44            qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";
45
46            dais {
47                compatible = "qcom,q6asm-dais";
48                iommus = <&apps_smmu 0x1821 0x0>;
49                #address-cells = <1>;
50                #size-cells = <0>;
51                #sound-dai-cells = <1>;
52
53                dai@0 {
54                    reg = <0>;
55                };
56
57                dai@1 {
58                    reg = <1>;
59                };
60
61                dai@2 {
62                    reg = <2>;
63                    is-compress-dai;
64                    direction = <1>;
65                };
66            };
67        };
68    };
69