11bcca73eSJiaxin Yu# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 21bcca73eSJiaxin Yu%YAML 1.2 31bcca73eSJiaxin Yu--- 41bcca73eSJiaxin Yu$id: http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml# 51bcca73eSJiaxin Yu$schema: http://devicetree.org/meta-schemas/core.yaml# 61bcca73eSJiaxin Yu 71bcca73eSJiaxin Yutitle: Mediatek MT8186 with MT6366, RT1019 and RT5682S ASoC sound card driver 81bcca73eSJiaxin Yu 91bcca73eSJiaxin Yumaintainers: 101bcca73eSJiaxin Yu - Jiaxin Yu <jiaxin.yu@mediatek.com> 111bcca73eSJiaxin Yu 121bcca73eSJiaxin Yudescription: 131bcca73eSJiaxin Yu This binding describes the MT8186 sound card. 141bcca73eSJiaxin Yu 151bcca73eSJiaxin Yuproperties: 161bcca73eSJiaxin Yu compatible: 171bcca73eSJiaxin Yu enum: 181bcca73eSJiaxin Yu - mediatek,mt8186-mt6366-rt1019-rt5682s-sound 192d3dd559Stongjian - mediatek,mt8186-mt6366-rt5682s-max98360-sound 201bcca73eSJiaxin Yu 211bcca73eSJiaxin Yu mediatek,platform: 22*d9e909e2SRob Herring $ref: /schemas/types.yaml#/definitions/phandle 231bcca73eSJiaxin Yu description: The phandle of MT8186 ASoC platform. 241bcca73eSJiaxin Yu 25f8639c38SAjye Huang dmic-gpios: 26f8639c38SAjye Huang maxItems: 1 27f8639c38SAjye Huang description: 28f8639c38SAjye Huang dmic-gpios optional prop for switching between two DMICs. 29f8639c38SAjye Huang Ex, the GPIO can control a MUX HW component to select 30f8639c38SAjye Huang dmic clk and data form a Front or Rear dmic. 31f8639c38SAjye Huang 321bcca73eSJiaxin Yu headset-codec: 331bcca73eSJiaxin Yu type: object 341bcca73eSJiaxin Yu additionalProperties: false 351bcca73eSJiaxin Yu properties: 361bcca73eSJiaxin Yu sound-dai: 371bcca73eSJiaxin Yu maxItems: 1 381bcca73eSJiaxin Yu required: 391bcca73eSJiaxin Yu - sound-dai 401bcca73eSJiaxin Yu 411bcca73eSJiaxin Yu playback-codecs: 421bcca73eSJiaxin Yu type: object 431bcca73eSJiaxin Yu additionalProperties: false 441bcca73eSJiaxin Yu properties: 451bcca73eSJiaxin Yu sound-dai: 461bcca73eSJiaxin Yu items: 471bcca73eSJiaxin Yu - description: phandle of dp codec 481bcca73eSJiaxin Yu - description: phandle of l channel speaker codec 491bcca73eSJiaxin Yu - description: phandle of r channel speaker codec 501bcca73eSJiaxin Yu minItems: 2 511bcca73eSJiaxin Yu required: 521bcca73eSJiaxin Yu - sound-dai 531bcca73eSJiaxin Yu 541173107dSchunxu.li mediatek,adsp: 551173107dSchunxu.li $ref: /schemas/types.yaml#/definitions/phandle 561173107dSchunxu.li description: The phandle of MT8186 ADSP platform. 571173107dSchunxu.li 581173107dSchunxu.li mediatek,dai-link: 591173107dSchunxu.li $ref: /schemas/types.yaml#/definitions/string-array 601173107dSchunxu.li description: 611173107dSchunxu.li A list of the desired dai-links in the sound card. Each entry is a 621173107dSchunxu.li name defined in the machine driver. 631173107dSchunxu.li 641bcca73eSJiaxin YuadditionalProperties: false 651bcca73eSJiaxin Yu 661bcca73eSJiaxin Yurequired: 671bcca73eSJiaxin Yu - compatible 681bcca73eSJiaxin Yu - mediatek,platform 691bcca73eSJiaxin Yu - headset-codec 701bcca73eSJiaxin Yu - playback-codecs 711bcca73eSJiaxin Yu 721bcca73eSJiaxin Yuexamples: 731bcca73eSJiaxin Yu - | 74f8639c38SAjye Huang #include <dt-bindings/gpio/gpio.h> 751bcca73eSJiaxin Yu 761bcca73eSJiaxin Yu sound: mt8186-sound { 771bcca73eSJiaxin Yu compatible = "mediatek,mt8186-mt6366-rt1019-rt5682s-sound"; 781bcca73eSJiaxin Yu mediatek,platform = <&afe>; 791bcca73eSJiaxin Yu pinctrl-names = "aud_clk_mosi_off", 80f8639c38SAjye Huang "aud_clk_mosi_on", 81f8639c38SAjye Huang "aud_gpio_dmic_sec"; 821bcca73eSJiaxin Yu pinctrl-0 = <&aud_clk_mosi_off>; 831bcca73eSJiaxin Yu pinctrl-1 = <&aud_clk_mosi_on>; 84f8639c38SAjye Huang pinctrl-2 = <&aud_gpio_dmic_sec>; 85f8639c38SAjye Huang 86f8639c38SAjye Huang dmic-gpios = <&pio 23 GPIO_ACTIVE_HIGH>; 871bcca73eSJiaxin Yu 881bcca73eSJiaxin Yu headset-codec { 891bcca73eSJiaxin Yu sound-dai = <&rt5682s>; 901bcca73eSJiaxin Yu }; 911bcca73eSJiaxin Yu 921bcca73eSJiaxin Yu playback-codecs { 931bcca73eSJiaxin Yu sound-dai = <&it6505dptx>, 941bcca73eSJiaxin Yu <&rt1019p>; 951bcca73eSJiaxin Yu }; 961bcca73eSJiaxin Yu }; 971bcca73eSJiaxin Yu 981bcca73eSJiaxin Yu... 99