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