xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mediatek,mt8188-mt6359.yaml (revision 734e82fe33aa764367791a7d603b383996c6b40b)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/mediatek,mt8188-mt6359.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek MT8188 ASoC sound card
8
9maintainers:
10  - Trevor Wu <trevor.wu@mediatek.com>
11
12properties:
13  compatible:
14    const: mediatek,mt8188-mt6359-evb
15
16  model:
17    $ref: /schemas/types.yaml#/definitions/string
18    description: User specified audio sound card name
19
20  audio-routing:
21    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
22    description:
23      A list of the connections between audio components. Each entry is a
24      sink/source pair of strings. Valid names could be the input or output
25      widgets of audio components, power supplies, MicBias of codec and the
26      software switch.
27
28  mediatek,platform:
29    $ref: /schemas/types.yaml#/definitions/phandle
30    description: The phandle of MT8188 ASoC platform.
31
32patternProperties:
33  "^dai-link-[0-9]+$":
34    type: object
35    description:
36      Container for dai-link level properties and CODEC sub-nodes.
37
38    properties:
39      link-name:
40        description:
41          This property corresponds to the name of the BE dai-link to which
42          we are going to update parameters in this node.
43        items:
44          enum:
45            - ADDA_BE
46            - DPTX_BE
47            - ETDM1_IN_BE
48            - ETDM2_IN_BE
49            - ETDM1_OUT_BE
50            - ETDM2_OUT_BE
51            - ETDM3_OUT_BE
52            - PCM1_BE
53
54      codec:
55        description: Holds subnode which indicates codec dai.
56        type: object
57        additionalProperties: false
58        properties:
59          sound-dai:
60            minItems: 1
61            maxItems: 2
62        required:
63          - sound-dai
64
65    additionalProperties: false
66
67    required:
68      - link-name
69      - codec
70
71additionalProperties: false
72
73required:
74  - compatible
75  - mediatek,platform
76
77examples:
78  - |
79    sound {
80        compatible = "mediatek,mt8188-mt6359-evb";
81        mediatek,platform = <&afe>;
82        pinctrl-names = "default";
83        pinctrl-0 = <&aud_pins_default>;
84        audio-routing =
85            "Headphone", "Headphone L",
86            "Headphone", "Headphone R",
87            "AIN1", "Headset Mic";
88        dai-link-0 {
89            link-name = "ETDM3_OUT_BE";
90
91            codec {
92                sound-dai = <&hdmi0>;
93            };
94        };
95    };
96
97...
98