1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/mt8192-mt6359-rt1015-rt5682.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Mediatek MT8192 with MT6359, RT1015 and RT5682 ASoC sound card driver
8
9maintainers:
10  - Jiaxin Yu <jiaxin.yu@mediatek.com>
11  - Shane Chien <shane.chien@mediatek.com>
12
13description:
14  This binding describes the MT8192 sound card.
15
16properties:
17  compatible:
18    enum:
19      - mediatek,mt8192_mt6359_rt1015_rt5682
20      - mediatek,mt8192_mt6359_rt1015p_rt5682
21      - mediatek,mt8192_mt6359_rt1015p_rt5682s
22
23  mediatek,platform:
24    $ref: "/schemas/types.yaml#/definitions/phandle"
25    description: The phandle of MT8192 ASoC platform.
26
27  mediatek,hdmi-codec:
28    $ref: "/schemas/types.yaml#/definitions/phandle"
29    description: The phandle of HDMI codec.
30
31  headset-codec:
32    type: object
33    additionalProperties: false
34
35    properties:
36      sound-dai:
37        $ref: /schemas/types.yaml#/definitions/phandle
38    required:
39      - sound-dai
40
41  speaker-codecs:
42    type: object
43    additionalProperties: false
44
45    properties:
46      sound-dai:
47        minItems: 1
48        maxItems: 2
49        items:
50          maxItems: 1
51        $ref: /schemas/types.yaml#/definitions/phandle-array
52    required:
53      - sound-dai
54
55additionalProperties: false
56
57required:
58  - compatible
59  - mediatek,platform
60  - headset-codec
61  - speaker-codecs
62
63examples:
64  - |
65
66    sound: mt8192-sound {
67        compatible = "mediatek,mt8192_mt6359_rt1015_rt5682";
68        mediatek,platform = <&afe>;
69        mediatek,hdmi-codec = <&anx_bridge_dp>;
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 = <&rt5682>;
77        };
78
79        speaker-codecs {
80            sound-dai = <&rt1015_l>,
81                        <&rt1015_r>;
82        };
83    };
84
85...
86