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