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-da7219-max98357.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Mediatek MT8186 with MT6366, DA7219 and MAX98357 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-da7219-max98357-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
46additionalProperties: false
47
48required:
49  - compatible
50  - mediatek,platform
51  - headset-codec
52  - playback-codecs
53
54examples:
55  - |
56
57    sound: mt8186-sound {
58        compatible = "mediatek,mt8186-mt6366-da7219-max98357-sound";
59        mediatek,platform = <&afe>;
60        pinctrl-names = "aud_clk_mosi_off",
61                        "aud_clk_mosi_on";
62        pinctrl-0 = <&aud_clk_mosi_off>;
63        pinctrl-1 = <&aud_clk_mosi_on>;
64
65        headset-codec {
66            sound-dai = <&da7219>;
67        };
68
69        playback-codecs {
70            sound-dai = <&anx_bridge_dp>,
71                        <&max98357a>;
72        };
73    };
74
75...
76