116 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/mediatek,mt8188-mt6359.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: MediaTek MT8188 ASoC sound card8 9maintainers:10 - Trevor Wu <trevor.wu@mediatek.com>11 12allOf:13 - $ref: sound-card-common.yaml#14 15properties:16 compatible:17 enum:18 - mediatek,mt8188-es832619 - mediatek,mt8188-mt6359-evb20 - mediatek,mt8188-nau882521 - mediatek,mt8188-rt5682s22 23 audio-routing:24 description:25 Valid names could be the input or output widgets of audio components,26 power supplies, MicBias of codec and the software switch.27 28 mediatek,platform:29 $ref: /schemas/types.yaml#/definitions/phandle30 description: The phandle of MT8188 ASoC platform.31 32patternProperties:33 "^dai-link-[0-9]+$":34 type: object35 description:36 Container for dai-link level properties and CODEC sub-nodes.37 38 properties:39 link-name:40 description:41 This property corresponds to the name of the BE dai-link to which42 we are going to update parameters in this node.43 items:44 enum:45 - DPTX_BE46 - ETDM1_IN_BE47 - ETDM2_IN_BE48 - ETDM1_OUT_BE49 - ETDM2_OUT_BE50 - ETDM3_OUT_BE51 - PCM1_BE52 53 codec:54 description: Holds subnode which indicates codec dai.55 type: object56 additionalProperties: false57 properties:58 sound-dai:59 minItems: 160 maxItems: 261 required:62 - sound-dai63 64 dai-format:65 description: audio format.66 items:67 enum:68 - i2s69 - right_j70 - left_j71 - dsp_a72 - dsp_b73 74 mediatek,clk-provider:75 $ref: /schemas/types.yaml#/definitions/string76 description: Indicates dai-link clock master.77 items:78 enum:79 - cpu80 - codec81 82 additionalProperties: false83 84 required:85 - link-name86 87unevaluatedProperties: false88 89required:90 - compatible91 - mediatek,platform92 93examples:94 - |95 sound {96 compatible = "mediatek,mt8188-mt6359-evb";97 model = "MT6359-EVB";98 mediatek,platform = <&afe>;99 pinctrl-names = "default";100 pinctrl-0 = <&aud_pins_default>;101 audio-routing =102 "Headphone", "Headphone L",103 "Headphone", "Headphone R",104 "AIN1", "Headset Mic";105 dai-link-0 {106 link-name = "ETDM3_OUT_BE";107 dai-format = "i2s";108 mediatek,clk-provider = "cpu";109 codec {110 sound-dai = <&hdmi0>;111 };112 };113 };114 115...116