18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/sound/mt6359.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: Mediatek MT6359 Codec Device Tree Bindings
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Eason Yen <eason.yen@mediatek.com>
118c2ecf20Sopenharmony_ci  - Jiaxin Yu <jiaxin.yu@mediatek.com>
128c2ecf20Sopenharmony_ci  - Shane Chien <shane.chien@mediatek.com>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cidescription: |
158c2ecf20Sopenharmony_ci  The communication between MT6359 and SoC is through Mediatek PMIC wrapper.
168c2ecf20Sopenharmony_ci  For more detail, please visit Mediatek PMIC wrapper documentation.
178c2ecf20Sopenharmony_ci  Must be a child node of PMIC wrapper.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciproperties:
208c2ecf20Sopenharmony_ci  mediatek,dmic-mode:
218c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
228c2ecf20Sopenharmony_ci    description: |
238c2ecf20Sopenharmony_ci      Indicates how many data pins are used to transmit two channels of PDM
248c2ecf20Sopenharmony_ci      signal. 0 means two wires, 1 means one wire. Default value is 0.
258c2ecf20Sopenharmony_ci    enum:
268c2ecf20Sopenharmony_ci      - 0 # one wire
278c2ecf20Sopenharmony_ci      - 1 # two wires
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci  mediatek,mic-type-0:
308c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
318c2ecf20Sopenharmony_ci    description: |
328c2ecf20Sopenharmony_ci      Specifies the type of mic type connected to adc0
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci    enum:
358c2ecf20Sopenharmony_ci      - 0 # IDLE - mic in turn-off status
368c2ecf20Sopenharmony_ci      - 1 # ACC - analog mic with alternating coupling
378c2ecf20Sopenharmony_ci      - 2 # DMIC - digital mic
388c2ecf20Sopenharmony_ci      - 3 # DCC - analog mic with direct couping
398c2ecf20Sopenharmony_ci      - 4 # DCC_ECM_DIFF - analog electret condenser mic with differential mode
408c2ecf20Sopenharmony_ci      - 5 # DCC_ECM_SINGLE - analog electret condenser mic with single mode
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci  mediatek,mic-type-1:
438c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
448c2ecf20Sopenharmony_ci    description: |
458c2ecf20Sopenharmony_ci      Specifies the type of mic type connected to adc1
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci  mediatek,mic-type-2:
488c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
498c2ecf20Sopenharmony_ci    description: |
508c2ecf20Sopenharmony_ci      Specifies the type of mic type connected to adc2
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciadditionalProperties: false
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ciexamples:
558c2ecf20Sopenharmony_ci  - |
568c2ecf20Sopenharmony_ci    mt6359codec: mt6359codec {
578c2ecf20Sopenharmony_ci      mediatek,dmic-mode = <0>;
588c2ecf20Sopenharmony_ci      mediatek,mic-type-0 = <2>;
598c2ecf20Sopenharmony_ci    };
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci...
62