1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Mediatek MT8186 with MT6366, RT1019 and RT5682S ASoC sound card driver
10 - Jiaxin Yu <jiaxin.yu@mediatek.com>
13 This binding describes the MT8186 sound card.
16 - $ref: sound-card-common.yaml#
21 - mediatek,mt8186-mt6366-rt1019-rt5682s-sound
22 - mediatek,mt8186-mt6366-rt5682s-max98360-sound
23 - mediatek,mt8186-mt6366-rt5650-sound
26 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
28 A list of the connections between audio components. Each entry is a
29 pair of strings, the first being the connection's sink, the second
30 being the connection's source.
31 Valid names could be the input or output widgets of audio components,
32 power supplies, MicBias of codec and the software switch.
54 $ref: /schemas/types.yaml#/definitions/phandle
55 description: The phandle of MT8186 ASoC platform.
60 dmic-gpios optional prop for switching between two DMICs.
61 Ex, the GPIO can control a MUX HW component to select
62 dmic clk and data form a Front or Rear dmic.
67 additionalProperties: false
77 additionalProperties: false
81 - description: phandle of dp codec
82 - description: phandle of l channel speaker codec
83 - description: phandle of r channel speaker codec
89 $ref: /schemas/types.yaml#/definitions/phandle
90 description: The phandle of MT8186 ADSP platform.
93 $ref: /schemas/types.yaml#/definitions/string-array
95 A list of the desired dai-links in the sound card. Each entry is a
96 name defined in the machine driver.
101 additionalProperties: false
103 Container for dai-link level properties and CODEC sub-nodes.
107 description: Indicates dai-link name and PCM stream name
108 enum: [ I2S0, I2S1, I2S2, I2S3 ]
111 description: Holds subnode which indicates codec dai.
113 additionalProperties: false
122 description: audio format
123 enum: [ i2s, right_j, left_j, dsp_a, dsp_b ]
125 mediatek,clk-provider:
126 $ref: /schemas/types.yaml#/definitions/string
127 description: Indicates dai-link clock master.
133 unevaluatedProperties: false
139 # Disallow legacy properties if xxx-dai-link nodes are specified
143 ".*-dai-link$": false
147 speaker-codecs: false
151 #include <dt-bindings/gpio/gpio.h>
153 sound: mt8186-sound {
154 compatible = "mediatek,mt8186-mt6366-rt1019-rt5682s-sound";
155 model = "mt8186_rt1019_rt5682s";
156 pinctrl-names = "aud_clk_mosi_off",
159 pinctrl-0 = <&aud_clk_mosi_off>;
160 pinctrl-1 = <&aud_clk_mosi_on>;
161 pinctrl-2 = <&aud_gpio_dmic_sec>;
162 mediatek,platform = <&afe>;
164 dmic-gpios = <&pio 23 GPIO_ACTIVE_HIGH>;
169 "IN1P", "Headset Mic",
170 "Speakers", "Speaker",
173 hs-playback-dai-link {
176 mediatek,clk-provider = "cpu";
178 sound-dai = <&rt5682s 0>;
182 hs-capture-dai-link {
185 mediatek,clk-provider = "cpu";
187 sound-dai = <&rt5682s 0>;
191 spk-hdmi-playback-dai-link {
194 mediatek,clk-provider = "cpu";
196 sound-dai = <&it6505dptx>, <&rt1019p>;