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.
18 - mediatek,mt8186-mt6366-rt1019-rt5682s-sound
19 - mediatek,mt8186-mt6366-rt5682s-max98360-sound
22 $ref: /schemas/types.yaml#/definitions/phandle
23 description: The phandle of MT8186 ASoC platform.
28 dmic-gpios optional prop for switching between two DMICs.
29 Ex, the GPIO can control a MUX HW component to select
30 dmic clk and data form a Front or Rear dmic.
34 additionalProperties: false
43 additionalProperties: false
47 - description: phandle of dp codec
48 - description: phandle of l channel speaker codec
49 - description: phandle of r channel speaker codec
55 $ref: /schemas/types.yaml#/definitions/phandle
56 description: The phandle of MT8186 ADSP platform.
59 $ref: /schemas/types.yaml#/definitions/string-array
61 A list of the desired dai-links in the sound card. Each entry is a
62 name defined in the machine driver.
64 additionalProperties: false
74 #include <dt-bindings/gpio/gpio.h>
77 compatible = "mediatek,mt8186-mt6366-rt1019-rt5682s-sound";
78 mediatek,platform = <&afe>;
79 pinctrl-names = "aud_clk_mosi_off",
82 pinctrl-0 = <&aud_clk_mosi_off>;
83 pinctrl-1 = <&aud_clk_mosi_on>;
84 pinctrl-2 = <&aud_gpio_dmic_sec>;
86 dmic-gpios = <&pio 23 GPIO_ACTIVE_HIGH>;
89 sound-dai = <&rt5682s>;
93 sound-dai = <&it6505dptx>,