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
20 - mediatek,mt8186-mt6366-rt5650-sound
23 $ref: /schemas/types.yaml#/definitions/phandle
24 description: The phandle of MT8186 ASoC platform.
29 dmic-gpios optional prop for switching between two DMICs.
30 Ex, the GPIO can control a MUX HW component to select
31 dmic clk and data form a Front or Rear dmic.
35 additionalProperties: false
44 additionalProperties: false
48 - description: phandle of dp codec
49 - description: phandle of l channel speaker codec
50 - description: phandle of r channel speaker codec
56 $ref: /schemas/types.yaml#/definitions/phandle
57 description: The phandle of MT8186 ADSP platform.
60 $ref: /schemas/types.yaml#/definitions/string-array
62 A list of the desired dai-links in the sound card. Each entry is a
63 name defined in the machine driver.
65 additionalProperties: false
75 #include <dt-bindings/gpio/gpio.h>
78 compatible = "mediatek,mt8186-mt6366-rt1019-rt5682s-sound";
79 mediatek,platform = <&afe>;
80 pinctrl-names = "aud_clk_mosi_off",
83 pinctrl-0 = <&aud_clk_mosi_off>;
84 pinctrl-1 = <&aud_clk_mosi_on>;
85 pinctrl-2 = <&aud_gpio_dmic_sec>;
87 dmic-gpios = <&pio 23 GPIO_ACTIVE_HIGH>;
90 sound-dai = <&rt5682s>;
94 sound-dai = <&it6505dptx>,