| 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,mt8188-mt6359.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: MediaTek MT8188 ASoC sound card |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Trevor Wu <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: sound-card-common.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
oneOf: |
| 18 |
- enum: |
| 19 |
- mediatek,mt8188-es8326 |
| 20 |
- mediatek,mt8188-mt6359-evb |
| 21 |
- mediatek,mt8188-nau8825 |
| 22 |
- mediatek,mt8188-rt5682s |
| 23 |
- items: |
| 24 |
- const: mediatek,mt8390-mt6359-evk |
| 25 |
- const: mediatek,mt8188-mt6359-evb |
| 26 |
|
| 27 |
audio-routing: |
| 28 |
description: |
| 29 |
Valid names could be the input or output widgets of audio components, |
| 30 |
power supplies, MicBias of codec and the software switch. |
| 31 |
|
| 32 |
mediatek,platform: |
| 33 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 34 |
description: The phandle of MT8188 ASoC platform. |
| 35 |
|
| 36 |
mediatek,adsp: |
| 37 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 38 |
description: |
| 39 |
The phandle of the MT8188 ADSP platform, which is the optional Audio DSP |
| 40 |
hardware that provides additional audio functionalities if present. |
| 41 |
The AFE will link to ADSP when the phandle is provided. |
| 42 |
|
| 43 |
mediatek,accdet: |
| 44 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 45 |
description: |
| 46 |
The phandle to the MT6359 accessory detection block, which detects audio |
| 47 |
jack insertion and removal. This property should only be present if the |
| 48 |
accdet block is actually wired to the audio jack pins and to be used for |
| 49 |
jack detection. |
| 50 |
|
| 51 |
patternProperties: |
| 52 |
"^dai-link-[0-9]+$": |
| 53 |
type: object |
| 54 |
description: |
| 55 |
Container for dai-link level properties and CODEC sub-nodes. |
| 56 |
|
| 57 |
properties: |
| 58 |
link-name: |
| 59 |
description: |
| 60 |
This property corresponds to the name of the BE dai-link to which |
| 61 |
we are going to update parameters in this node. |
| 62 |
items: |
| 63 |
enum: |
| 64 |
- DPTX_BE |
| 65 |
- ETDM1_IN_BE |
| 66 |
- ETDM2_IN_BE |
| 67 |
- ETDM1_OUT_BE |
| 68 |
- ETDM2_OUT_BE |
| 69 |
- ETDM3_OUT_BE |
| 70 |
- PCM1_BE |
| 71 |
- DL_SRC_BE |
| 72 |
- UL_SRC_BE |
| 73 |
- DMIC_BE |
| 74 |
|
| 75 |
codec: |
| 76 |
description: Holds subnode which indicates codec dai. |
| 77 |
type: object |
| 78 |
additionalProperties: false |
| 79 |
properties: |
| 80 |
sound-dai: |
| 81 |
minItems: 1 |
| 82 |
maxItems: 2 |
| 83 |
required: |
| 84 |
- sound-dai |
| 85 |
|
| 86 |
dai-format: |
| 87 |
description: audio format. |
| 88 |
items: |
| 89 |
enum: |
| 90 |
- i2s |
| 91 |
- right_j |
| 92 |
- left_j |
| 93 |
- dsp_a |
| 94 |
- dsp_b |
| 95 |
|
| 96 |
mediatek,clk-provider: |
| 97 |
$ref: /schemas/types.yaml#/definitions/string |
| 98 |
description: Indicates dai-link clock master. |
| 99 |
enum: |
| 100 |
- cpu |
| 101 |
- codec |
| 102 |
|
| 103 |
additionalProperties: false |
| 104 |
|
| 105 |
required: |
| 106 |
- link-name |
| 107 |
|
| 108 |
unevaluatedProperties: false |
| 109 |
|
| 110 |
required: |
| 111 |
- compatible |
| 112 |
- mediatek,platform |
| 113 |
|
| 114 |
examples: |
| 115 |
- | |
| 116 |
sound { |
| 117 |
compatible = "mediatek,mt8188-mt6359-evb"; |
| 118 |
model = "MT6359-EVB"; |
| 119 |
mediatek,platform = <&afe>; |
| 120 |
pinctrl-names = "default"; |
| 121 |
pinctrl-0 = <&aud_pins_default>; |
| 122 |
audio-routing = |
| 123 |
"Headphone", "Headphone L", |
| 124 |
"Headphone", "Headphone R", |
| 125 |
"AIN1", "Headset Mic"; |
| 126 |
dai-link-0 { |
| 127 |
link-name = "ETDM3_OUT_BE"; |
| 128 |
dai-format = "i2s"; |
| 129 |
mediatek,clk-provider = "cpu"; |
| 130 |
codec { |
| 131 |
sound-dai = <&hdmi0>; |
| 132 |
}; |
| 133 |
}; |
| 134 |
}; |
| 135 |
|
| 136 |
... |