1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/sound/mediatek,mt8365-mt6357.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: MediaTek MT8365 ASoC sound card 8 9maintainers: 10 - Alexandre Mergnat <amergnat@baylibre.com> 11 12properties: 13 compatible: 14 const: mediatek,mt8365-mt6357 15 16 pinctrl-names: 17 minItems: 1 18 items: 19 - const: default 20 - const: dmic 21 - const: miso_off 22 - const: miso_on 23 - const: mosi_off 24 - const: mosi_on 25 26 mediatek,platform: 27 $ref: /schemas/types.yaml#/definitions/phandle 28 description: The phandle of MT8365 ASoC platform. 29 30patternProperties: 31 "^dai-link-[0-9]+$": 32 type: object 33 description: 34 Container for dai-link level properties and CODEC sub-nodes. 35 36 properties: 37 codec: 38 type: object 39 description: Holds subnode which indicates codec dai. 40 41 properties: 42 sound-dai: 43 maxItems: 1 44 description: phandle of the codec DAI 45 46 additionalProperties: false 47 48 link-name: 49 description: Indicates dai-link name and PCM stream name 50 enum: 51 - I2S_IN_BE 52 - I2S_OUT_BE 53 - PCM1_BE 54 - PDM1_BE 55 - PDM2_BE 56 - PDM3_BE 57 - PDM4_BE 58 - SPDIF_IN_BE 59 - SPDIF_OUT_BE 60 - TDM_IN_BE 61 - TDM_OUT_BE 62 63 sound-dai: 64 maxItems: 1 65 description: phandle of the CPU DAI 66 67 required: 68 - link-name 69 - sound-dai 70 71 additionalProperties: false 72 73required: 74 - compatible 75 - pinctrl-names 76 - mediatek,platform 77 78additionalProperties: false 79 80examples: 81 - | 82 sound { 83 compatible = "mediatek,mt8365-mt6357"; 84 pinctrl-names = "default", 85 "dmic", 86 "miso_off", 87 "miso_on", 88 "mosi_off", 89 "mosi_on"; 90 pinctrl-0 = <&aud_default_pins>; 91 pinctrl-1 = <&aud_dmic_pins>; 92 pinctrl-2 = <&aud_miso_off_pins>; 93 pinctrl-3 = <&aud_miso_on_pins>; 94 pinctrl-4 = <&aud_mosi_off_pins>; 95 pinctrl-5 = <&aud_mosi_on_pins>; 96 mediatek,platform = <&afe>; 97 98 /* hdmi interface */ 99 dai-link-0 { 100 link-name = "I2S_OUT_BE"; 101 sound-dai = <&afe>; 102 103 codec { 104 sound-dai = <&it66121hdmitx>; 105 }; 106 }; 107 }; 108