blob: 09247ceea3f7490561ecd4c0c31f146933a7b7d8 [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/mediatek,mt7986-wm8960.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek MT7986 sound card with WM8960 codec
8
9maintainers:
10 - Maso Huang <maso.huang@mediatek.com>
11
12allOf:
13 - $ref: sound-card-common.yaml#
14
15properties:
16 compatible:
17 const: mediatek,mt7986-wm8960-sound
18
19 platform:
20 type: object
21 additionalProperties: false
22 properties:
23 sound-dai:
24 description: The phandle of MT7986 platform.
25 maxItems: 1
26 required:
27 - sound-dai
28
29 codec:
30 type: object
31 additionalProperties: false
32 properties:
33 sound-dai:
34 description: The phandle of wm8960 codec.
35 maxItems: 1
36 required:
37 - sound-dai
38
39unevaluatedProperties: false
40
41required:
42 - compatible
43 - audio-routing
44 - platform
45 - codec
46
47examples:
48 - |
49 sound {
50 compatible = "mediatek,mt7986-wm8960-sound";
51 model = "mt7986-wm8960";
52 audio-routing =
53 "Headphone", "HP_L",
54 "Headphone", "HP_R",
55 "LINPUT1", "AMIC",
56 "RINPUT1", "AMIC";
57
58 platform {
59 sound-dai = <&afe>;
60 };
61
62 codec {
63 sound-dai = <&wm8960>;
64 };
65 };
66
67...