blob: 7e50f5d65c8fbd235be00af5cbd7a309b7ae15bd [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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 maxItems: 1
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 required:
52 - sound-dai
53
54additionalProperties: false
55
56required:
57 - compatible
58 - mediatek,platform
59 - headset-codec
60 - speaker-codecs
61
62examples:
63 - |
64
65 sound: mt8192-sound {
66 compatible = "mediatek,mt8192_mt6359_rt1015_rt5682";
67 mediatek,platform = <&afe>;
68 mediatek,hdmi-codec = <&anx_bridge_dp>;
69 pinctrl-names = "aud_clk_mosi_off",
70 "aud_clk_mosi_on";
71 pinctrl-0 = <&aud_clk_mosi_off>;
72 pinctrl-1 = <&aud_clk_mosi_on>;
73
74 headset-codec {
75 sound-dai = <&rt5682>;
76 };
77
78 speaker-codecs {
79 sound-dai = <&rt1015_l>,
80 <&rt1015_r>;
81 };
82 };
83
84...