1*ce038238STrevor Wu# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*ce038238STrevor Wu%YAML 1.2 3*ce038238STrevor Wu--- 4*ce038238STrevor Wu$id: http://devicetree.org/schemas/sound/mediatek,mt8188-mt6359.yaml# 5*ce038238STrevor Wu$schema: http://devicetree.org/meta-schemas/core.yaml# 6*ce038238STrevor Wu 7*ce038238STrevor Wutitle: MediaTek MT8188 ASoC sound card 8*ce038238STrevor Wu 9*ce038238STrevor Wumaintainers: 10*ce038238STrevor Wu - Trevor Wu <trevor.wu@mediatek.com> 11*ce038238STrevor Wu 12*ce038238STrevor Wuproperties: 13*ce038238STrevor Wu compatible: 14*ce038238STrevor Wu const: mediatek,mt8188-mt6359-evb 15*ce038238STrevor Wu 16*ce038238STrevor Wu model: 17*ce038238STrevor Wu $ref: /schemas/types.yaml#/definitions/string 18*ce038238STrevor Wu description: User specified audio sound card name 19*ce038238STrevor Wu 20*ce038238STrevor Wu audio-routing: 21*ce038238STrevor Wu $ref: /schemas/types.yaml#/definitions/non-unique-string-array 22*ce038238STrevor Wu description: 23*ce038238STrevor Wu A list of the connections between audio components. Each entry is a 24*ce038238STrevor Wu sink/source pair of strings. Valid names could be the input or output 25*ce038238STrevor Wu widgets of audio components, power supplies, MicBias of codec and the 26*ce038238STrevor Wu software switch. 27*ce038238STrevor Wu 28*ce038238STrevor Wu mediatek,platform: 29*ce038238STrevor Wu $ref: /schemas/types.yaml#/definitions/phandle 30*ce038238STrevor Wu description: The phandle of MT8188 ASoC platform. 31*ce038238STrevor Wu 32*ce038238STrevor WupatternProperties: 33*ce038238STrevor Wu "^dai-link-[0-9]+$": 34*ce038238STrevor Wu type: object 35*ce038238STrevor Wu description: 36*ce038238STrevor Wu Container for dai-link level properties and CODEC sub-nodes. 37*ce038238STrevor Wu 38*ce038238STrevor Wu properties: 39*ce038238STrevor Wu link-name: 40*ce038238STrevor Wu description: 41*ce038238STrevor Wu This property corresponds to the name of the BE dai-link to which 42*ce038238STrevor Wu we are going to update parameters in this node. 43*ce038238STrevor Wu items: 44*ce038238STrevor Wu enum: 45*ce038238STrevor Wu - ADDA_BE 46*ce038238STrevor Wu - DPTX_BE 47*ce038238STrevor Wu - ETDM1_IN_BE 48*ce038238STrevor Wu - ETDM2_IN_BE 49*ce038238STrevor Wu - ETDM1_OUT_BE 50*ce038238STrevor Wu - ETDM2_OUT_BE 51*ce038238STrevor Wu - ETDM3_OUT_BE 52*ce038238STrevor Wu - PCM1_BE 53*ce038238STrevor Wu 54*ce038238STrevor Wu codec: 55*ce038238STrevor Wu description: Holds subnode which indicates codec dai. 56*ce038238STrevor Wu type: object 57*ce038238STrevor Wu additionalProperties: false 58*ce038238STrevor Wu properties: 59*ce038238STrevor Wu sound-dai: 60*ce038238STrevor Wu minItems: 1 61*ce038238STrevor Wu maxItems: 2 62*ce038238STrevor Wu required: 63*ce038238STrevor Wu - sound-dai 64*ce038238STrevor Wu 65*ce038238STrevor Wu additionalProperties: false 66*ce038238STrevor Wu 67*ce038238STrevor Wu required: 68*ce038238STrevor Wu - link-name 69*ce038238STrevor Wu - codec 70*ce038238STrevor Wu 71*ce038238STrevor WuadditionalProperties: false 72*ce038238STrevor Wu 73*ce038238STrevor Wurequired: 74*ce038238STrevor Wu - compatible 75*ce038238STrevor Wu - mediatek,platform 76*ce038238STrevor Wu 77*ce038238STrevor Wuexamples: 78*ce038238STrevor Wu - | 79*ce038238STrevor Wu sound { 80*ce038238STrevor Wu compatible = "mediatek,mt8188-mt6359-evb"; 81*ce038238STrevor Wu mediatek,platform = <&afe>; 82*ce038238STrevor Wu pinctrl-names = "default"; 83*ce038238STrevor Wu pinctrl-0 = <&aud_pins_default>; 84*ce038238STrevor Wu audio-routing = 85*ce038238STrevor Wu "Headphone", "Headphone L", 86*ce038238STrevor Wu "Headphone", "Headphone R", 87*ce038238STrevor Wu "AIN1", "Headset Mic"; 88*ce038238STrevor Wu dai-link-0 { 89*ce038238STrevor Wu link-name = "ETDM3_OUT_BE"; 90*ce038238STrevor Wu 91*ce038238STrevor Wu codec { 92*ce038238STrevor Wu sound-dai = <&hdmi0>; 93*ce038238STrevor Wu }; 94*ce038238STrevor Wu }; 95*ce038238STrevor Wu }; 96*ce038238STrevor Wu 97*ce038238STrevor Wu... 98