xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mediatek,mt7986-wm8960.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*aa1a8ff2SEmmanuel Vadot%YAML 1.2
3*aa1a8ff2SEmmanuel Vadot---
4*aa1a8ff2SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml#
5*aa1a8ff2SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*aa1a8ff2SEmmanuel Vadot
7*aa1a8ff2SEmmanuel Vadottitle: MediaTek MT7986 sound card with WM8960 codec
8*aa1a8ff2SEmmanuel Vadot
9*aa1a8ff2SEmmanuel Vadotmaintainers:
10*aa1a8ff2SEmmanuel Vadot  - Maso Huang <maso.huang@mediatek.com>
11*aa1a8ff2SEmmanuel Vadot
12*aa1a8ff2SEmmanuel VadotallOf:
13*aa1a8ff2SEmmanuel Vadot  - $ref: sound-card-common.yaml#
14*aa1a8ff2SEmmanuel Vadot
15*aa1a8ff2SEmmanuel Vadotproperties:
16*aa1a8ff2SEmmanuel Vadot  compatible:
17*aa1a8ff2SEmmanuel Vadot    const: mediatek,mt7986-wm8960-sound
18*aa1a8ff2SEmmanuel Vadot
19*aa1a8ff2SEmmanuel Vadot  platform:
20*aa1a8ff2SEmmanuel Vadot    type: object
21*aa1a8ff2SEmmanuel Vadot    additionalProperties: false
22*aa1a8ff2SEmmanuel Vadot    properties:
23*aa1a8ff2SEmmanuel Vadot      sound-dai:
24*aa1a8ff2SEmmanuel Vadot        description: The phandle of MT7986 platform.
25*aa1a8ff2SEmmanuel Vadot        maxItems: 1
26*aa1a8ff2SEmmanuel Vadot    required:
27*aa1a8ff2SEmmanuel Vadot      - sound-dai
28*aa1a8ff2SEmmanuel Vadot
29*aa1a8ff2SEmmanuel Vadot  codec:
30*aa1a8ff2SEmmanuel Vadot    type: object
31*aa1a8ff2SEmmanuel Vadot    additionalProperties: false
32*aa1a8ff2SEmmanuel Vadot    properties:
33*aa1a8ff2SEmmanuel Vadot      sound-dai:
34*aa1a8ff2SEmmanuel Vadot        description: The phandle of wm8960 codec.
35*aa1a8ff2SEmmanuel Vadot        maxItems: 1
36*aa1a8ff2SEmmanuel Vadot    required:
37*aa1a8ff2SEmmanuel Vadot      - sound-dai
38*aa1a8ff2SEmmanuel Vadot
39*aa1a8ff2SEmmanuel VadotunevaluatedProperties: false
40*aa1a8ff2SEmmanuel Vadot
41*aa1a8ff2SEmmanuel Vadotrequired:
42*aa1a8ff2SEmmanuel Vadot  - compatible
43*aa1a8ff2SEmmanuel Vadot  - audio-routing
44*aa1a8ff2SEmmanuel Vadot  - platform
45*aa1a8ff2SEmmanuel Vadot  - codec
46*aa1a8ff2SEmmanuel Vadot
47*aa1a8ff2SEmmanuel Vadotexamples:
48*aa1a8ff2SEmmanuel Vadot  - |
49*aa1a8ff2SEmmanuel Vadot    sound {
50*aa1a8ff2SEmmanuel Vadot        compatible = "mediatek,mt7986-wm8960-sound";
51*aa1a8ff2SEmmanuel Vadot        model = "mt7986-wm8960";
52*aa1a8ff2SEmmanuel Vadot        audio-routing =
53*aa1a8ff2SEmmanuel Vadot            "Headphone", "HP_L",
54*aa1a8ff2SEmmanuel Vadot            "Headphone", "HP_R",
55*aa1a8ff2SEmmanuel Vadot            "LINPUT1", "AMIC",
56*aa1a8ff2SEmmanuel Vadot            "RINPUT1", "AMIC";
57*aa1a8ff2SEmmanuel Vadot
58*aa1a8ff2SEmmanuel Vadot        platform {
59*aa1a8ff2SEmmanuel Vadot            sound-dai = <&afe>;
60*aa1a8ff2SEmmanuel Vadot        };
61*aa1a8ff2SEmmanuel Vadot
62*aa1a8ff2SEmmanuel Vadot        codec {
63*aa1a8ff2SEmmanuel Vadot            sound-dai = <&wm8960>;
64*aa1a8ff2SEmmanuel Vadot        };
65*aa1a8ff2SEmmanuel Vadot    };
66*aa1a8ff2SEmmanuel Vadot
67*aa1a8ff2SEmmanuel Vadot...
68