]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Bindings/sound/mt8186-mt6366-rt1019-rt5682s.yaml
Import device-tree files from Linux 6.0
[FreeBSD/FreeBSD.git] / Bindings / sound / mt8186-mt6366-rt1019-rt5682s.yaml
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
7 title: Mediatek MT8186 with MT6366, RT1019 and RT5682S ASoC sound card driver
8
9 maintainers:
10   - Jiaxin Yu <jiaxin.yu@mediatek.com>
11
12 description:
13   This binding describes the MT8186 sound card.
14
15 properties:
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 additionalProperties: false
47
48 required:
49   - compatible
50   - mediatek,platform
51   - headset-codec
52   - playback-codecs
53
54 examples:
55   - |
56
57     sound: mt8186-sound {
58         compatible = "mediatek,mt8186-mt6366-rt1019-rt5682s-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 = <&rt5682s>;
67         };
68
69         playback-codecs {
70              sound-dai = <&it6505dptx>,
71                          <&rt1019p>;
72         };
73     };
74
75 ...