xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mt6359.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/mt6359.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Mediatek MT6359 Codec
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Eason Yen <eason.yen@mediatek.com>
116be33864SEmmanuel Vadot  - Jiaxin Yu <jiaxin.yu@mediatek.com>
126be33864SEmmanuel Vadot  - Shane Chien <shane.chien@mediatek.com>
136be33864SEmmanuel Vadot
146be33864SEmmanuel Vadotdescription: |
156be33864SEmmanuel Vadot  The communication between MT6359 and SoC is through Mediatek PMIC wrapper.
166be33864SEmmanuel Vadot  For more detail, please visit Mediatek PMIC wrapper documentation.
176be33864SEmmanuel Vadot  Must be a child node of PMIC wrapper.
186be33864SEmmanuel Vadot
196be33864SEmmanuel Vadotproperties:
206be33864SEmmanuel Vadot  mediatek,dmic-mode:
216be33864SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
226be33864SEmmanuel Vadot    description: |
236be33864SEmmanuel Vadot      Indicates how many data pins are used to transmit two channels of PDM
246be33864SEmmanuel Vadot      signal. 0 means two wires, 1 means one wire. Default value is 0.
256be33864SEmmanuel Vadot    enum:
266be33864SEmmanuel Vadot      - 0 # one wire
276be33864SEmmanuel Vadot      - 1 # two wires
286be33864SEmmanuel Vadot
296be33864SEmmanuel Vadot  mediatek,mic-type-0:
306be33864SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
316be33864SEmmanuel Vadot    description: |
326be33864SEmmanuel Vadot      Specifies the type of mic type connected to adc0
336be33864SEmmanuel Vadot
346be33864SEmmanuel Vadot    enum:
356be33864SEmmanuel Vadot      - 0 # IDLE - mic in turn-off status
366be33864SEmmanuel Vadot      - 1 # ACC - analog mic with alternating coupling
376be33864SEmmanuel Vadot      - 2 # DMIC - digital mic
386be33864SEmmanuel Vadot      - 3 # DCC - analog mic with direct couping
396be33864SEmmanuel Vadot      - 4 # DCC_ECM_DIFF - analog electret condenser mic with differential mode
406be33864SEmmanuel Vadot      - 5 # DCC_ECM_SINGLE - analog electret condenser mic with single mode
416be33864SEmmanuel Vadot
426be33864SEmmanuel Vadot  mediatek,mic-type-1:
436be33864SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
446be33864SEmmanuel Vadot    description: |
456be33864SEmmanuel Vadot      Specifies the type of mic type connected to adc1
466be33864SEmmanuel Vadot
476be33864SEmmanuel Vadot  mediatek,mic-type-2:
486be33864SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
496be33864SEmmanuel Vadot    description: |
506be33864SEmmanuel Vadot      Specifies the type of mic type connected to adc2
516be33864SEmmanuel Vadot
526be33864SEmmanuel VadotadditionalProperties: false
536be33864SEmmanuel Vadot
546be33864SEmmanuel Vadotexamples:
556be33864SEmmanuel Vadot  - |
566be33864SEmmanuel Vadot    mt6359codec: mt6359codec {
576be33864SEmmanuel Vadot      mediatek,dmic-mode = <0>;
586be33864SEmmanuel Vadot      mediatek,mic-type-0 = <2>;
596be33864SEmmanuel Vadot    };
606be33864SEmmanuel Vadot
616be33864SEmmanuel Vadot...
62