1ce038238STrevor Wu# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2ce038238STrevor Wu%YAML 1.2
3ce038238STrevor Wu---
4ce038238STrevor Wu$id: http://devicetree.org/schemas/sound/mediatek,mt8188-mt6359.yaml#
5ce038238STrevor Wu$schema: http://devicetree.org/meta-schemas/core.yaml#
6ce038238STrevor Wu
7ce038238STrevor Wutitle: MediaTek MT8188 ASoC sound card
8ce038238STrevor Wu
9ce038238STrevor Wumaintainers:
10ce038238STrevor Wu  - Trevor Wu <trevor.wu@mediatek.com>
11ce038238STrevor Wu
12*34e7bf1aSKrzysztof KozlowskiallOf:
13*34e7bf1aSKrzysztof Kozlowski  - $ref: sound-card-common.yaml#
14*34e7bf1aSKrzysztof Kozlowski
15ce038238STrevor Wuproperties:
16ce038238STrevor Wu  compatible:
17ee02b869STrevor Wu    enum:
18ee02b869STrevor Wu      - mediatek,mt8188-mt6359-evb
19ee02b869STrevor Wu      - mediatek,mt8188-nau8825
20ce038238STrevor Wu
21ce038238STrevor Wu  audio-routing:
22ce038238STrevor Wu    description:
23*34e7bf1aSKrzysztof Kozlowski      Valid names could be the input or output widgets of audio components,
24*34e7bf1aSKrzysztof Kozlowski      power supplies, MicBias of codec and the software switch.
25ce038238STrevor Wu
26ce038238STrevor Wu  mediatek,platform:
27ce038238STrevor Wu    $ref: /schemas/types.yaml#/definitions/phandle
28ce038238STrevor Wu    description: The phandle of MT8188 ASoC platform.
29ce038238STrevor Wu
30ce038238STrevor WupatternProperties:
31ce038238STrevor Wu  "^dai-link-[0-9]+$":
32ce038238STrevor Wu    type: object
33ce038238STrevor Wu    description:
34ce038238STrevor Wu      Container for dai-link level properties and CODEC sub-nodes.
35ce038238STrevor Wu
36ce038238STrevor Wu    properties:
37ce038238STrevor Wu      link-name:
38ce038238STrevor Wu        description:
39ce038238STrevor Wu          This property corresponds to the name of the BE dai-link to which
40ce038238STrevor Wu          we are going to update parameters in this node.
41ce038238STrevor Wu        items:
42ce038238STrevor Wu          enum:
43ce038238STrevor Wu            - DPTX_BE
44ce038238STrevor Wu            - ETDM1_IN_BE
45ce038238STrevor Wu            - ETDM2_IN_BE
46ce038238STrevor Wu            - ETDM1_OUT_BE
47ce038238STrevor Wu            - ETDM2_OUT_BE
48ce038238STrevor Wu            - ETDM3_OUT_BE
49ce038238STrevor Wu            - PCM1_BE
50ce038238STrevor Wu
51ce038238STrevor Wu      codec:
52ce038238STrevor Wu        description: Holds subnode which indicates codec dai.
53ce038238STrevor Wu        type: object
54ce038238STrevor Wu        additionalProperties: false
55ce038238STrevor Wu        properties:
56ce038238STrevor Wu          sound-dai:
57ce038238STrevor Wu            minItems: 1
58ce038238STrevor Wu            maxItems: 2
59ce038238STrevor Wu        required:
60ce038238STrevor Wu          - sound-dai
61ce038238STrevor Wu
62ee02b869STrevor Wu      dai-format:
63ee02b869STrevor Wu        description: audio format.
64ee02b869STrevor Wu        items:
65ee02b869STrevor Wu          enum:
66ee02b869STrevor Wu            - i2s
67ee02b869STrevor Wu            - right_j
68ee02b869STrevor Wu            - left_j
69ee02b869STrevor Wu            - dsp_a
70ee02b869STrevor Wu            - dsp_b
71ee02b869STrevor Wu
72ee02b869STrevor Wu      mediatek,clk-provider:
73ee02b869STrevor Wu        $ref: /schemas/types.yaml#/definitions/string
74ee02b869STrevor Wu        description: Indicates dai-link clock master.
75ee02b869STrevor Wu        items:
76ee02b869STrevor Wu          enum:
77ee02b869STrevor Wu            - cpu
78ee02b869STrevor Wu            - codec
79ee02b869STrevor Wu
80ce038238STrevor Wu    additionalProperties: false
81ce038238STrevor Wu
82ce038238STrevor Wu    required:
83ce038238STrevor Wu      - link-name
84ce038238STrevor Wu
85*34e7bf1aSKrzysztof KozlowskiunevaluatedProperties: false
86ce038238STrevor Wu
87ce038238STrevor Wurequired:
88ce038238STrevor Wu  - compatible
89ce038238STrevor Wu  - mediatek,platform
90ce038238STrevor Wu
91ce038238STrevor Wuexamples:
92ce038238STrevor Wu  - |
93ce038238STrevor Wu    sound {
94ce038238STrevor Wu        compatible = "mediatek,mt8188-mt6359-evb";
95*34e7bf1aSKrzysztof Kozlowski        model = "MT6359-EVB";
96ce038238STrevor Wu        mediatek,platform = <&afe>;
97ce038238STrevor Wu        pinctrl-names = "default";
98ce038238STrevor Wu        pinctrl-0 = <&aud_pins_default>;
99ce038238STrevor Wu        audio-routing =
100ce038238STrevor Wu            "Headphone", "Headphone L",
101ce038238STrevor Wu            "Headphone", "Headphone R",
102ce038238STrevor Wu            "AIN1", "Headset Mic";
103ce038238STrevor Wu        dai-link-0 {
104ce038238STrevor Wu            link-name = "ETDM3_OUT_BE";
105ee02b869STrevor Wu            dai-format = "i2s";
106ee02b869STrevor Wu            mediatek,clk-provider = "cpu";
107ce038238STrevor Wu            codec {
108ce038238STrevor Wu                sound-dai = <&hdmi0>;
109ce038238STrevor Wu            };
110ce038238STrevor Wu        };
111ce038238STrevor Wu    };
112ce038238STrevor Wu
113ce038238STrevor Wu...
114