1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/mt8195-mt6359.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT8195 ASoC sound card driver
10 - Trevor Wu <trevor.wu@mediatek.com>
13 This binding describes the MT8195 sound card.
16 - $ref: sound-card-common.yaml#
21 - mediatek,mt8195_mt6359_rt1019_rt5682
22 - mediatek,mt8195_mt6359_rt1011_rt5682
23 - mediatek,mt8195_mt6359_max98390_rt5682
26 $ref: /schemas/types.yaml#/definitions/string
27 description: User specified audio sound card name
31 A list of the connections between audio components. Each entry is a
32 pair of strings, the first being the connection's sink, the second
33 being the connection's source.
34 Valid names could be the input or output widgets of audio components,
35 power supplies, MicBias of codec and the software switch.
57 $ref: /schemas/types.yaml#/definitions/phandle
58 description: The phandle of MT8195 ASoC platform.
61 $ref: /schemas/types.yaml#/definitions/phandle
62 description: The phandle of MT8195 Display Port Tx codec node.
66 $ref: /schemas/types.yaml#/definitions/phandle
67 description: The phandle of MT8195 HDMI codec node.
71 $ref: /schemas/types.yaml#/definitions/phandle
72 description: The phandle of MT8195 ADSP platform.
75 $ref: /schemas/types.yaml#/definitions/string-array
77 A list of the desired dai-links in the sound card. Each entry is a
78 name defined in the machine driver.
83 additionalProperties: false
85 Container for dai-link level properties and CODEC sub-nodes.
89 description: Indicates dai-link name and PCM stream name
100 description: Holds subnode which indicates codec dai.
102 additionalProperties: false
111 description: audio format
112 enum: [ i2s, right_j, left_j, dsp_a, dsp_b ]
114 mediatek,clk-provider:
115 $ref: /schemas/types.yaml#/definitions/string
116 description: Indicates dai-link clock master.
122 additionalProperties: false
128 # Disallow legacy properties if xxx-dai-link nodes are specified
132 ".*-dai-link$": false
135 mediatek,dptx-codec: false
136 mediatek,hdmi-codec: false
141 sound: mt8195-sound {
142 compatible = "mediatek,mt8195_mt6359_rt1019_rt5682";
143 model = "mt8195_r1019_5682";
144 mediatek,platform = <&afe>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&aud_pins_default>;
151 "IN1P", "Headset Mic",
152 "Ext Spk", "Speaker";
155 link-name = "ETDM1_IN_BE";
156 mediatek,clk-provider = "cpu";
159 hs-playback-dai-link {
160 link-name = "ETDM1_OUT_BE";
161 mediatek,clk-provider = "cpu";
163 sound-dai = <&headset_codec>;
167 hs-capture-dai-link {
168 link-name = "ETDM2_IN_BE";
169 mediatek,clk-provider = "cpu";
171 sound-dai = <&headset_codec>;
175 spk-playback-dai-link {
176 link-name = "ETDM2_OUT_BE";
177 mediatek,clk-provider = "cpu";
179 sound-dai = <&spk_amplifier>;
184 link-name = "ETDM3_OUT_BE";
186 sound-dai = <&hdmi_tx>;
190 displayport-dai-link {
191 link-name = "DPTX_BE";
193 sound-dai = <&dp_tx>;