1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Mediatek MT8186 with MT6366, RT1019 and RT5682S ASoC sound card driver
8
9maintainers:
10  - Jiaxin Yu <jiaxin.yu@mediatek.com>
11
12description:
13  This binding describes the MT8186 sound card.
14
15properties:
16  compatible:
17    enum:
18      - mediatek,mt8186-mt6366-rt1019-rt5682s-sound
19
20  mediatek,platform:
21    $ref: "/schemas/types.yaml#/definitions/phandle"
22    description: The phandle of MT8186 ASoC platform.
23
24  headset-codec:
25    type: object
26    additionalProperties: false
27    properties:
28      sound-dai:
29        maxItems: 1
30    required:
31      - sound-dai
32
33  playback-codecs:
34    type: object
35    additionalProperties: false
36    properties:
37      sound-dai:
38        items:
39          - description: phandle of dp codec
40          - description: phandle of l channel speaker codec
41          - description: phandle of r channel speaker codec
42        minItems: 2
43    required:
44      - sound-dai
45
46  mediatek,adsp:
47    $ref: /schemas/types.yaml#/definitions/phandle
48    description: The phandle of MT8186 ADSP platform.
49
50  mediatek,dai-link:
51    $ref: /schemas/types.yaml#/definitions/string-array
52    description:
53      A list of the desired dai-links in the sound card. Each entry is a
54      name defined in the machine driver.
55
56additionalProperties: false
57
58required:
59  - compatible
60  - mediatek,platform
61  - headset-codec
62  - playback-codecs
63
64examples:
65  - |
66
67    sound: mt8186-sound {
68        compatible = "mediatek,mt8186-mt6366-rt1019-rt5682s-sound";
69        mediatek,platform = <&afe>;
70        pinctrl-names = "aud_clk_mosi_off",
71                        "aud_clk_mosi_on";
72        pinctrl-0 = <&aud_clk_mosi_off>;
73        pinctrl-1 = <&aud_clk_mosi_on>;
74
75        headset-codec {
76            sound-dai = <&rt5682s>;
77        };
78
79        playback-codecs {
80             sound-dai = <&it6505dptx>,
81                         <&rt1019p>;
82        };
83    };
84
85...
86