1*6be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2*6be33864SEmmanuel Vadot%YAML 1.2 3*6be33864SEmmanuel Vadot--- 4*6be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/mt6359.yaml# 5*6be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*6be33864SEmmanuel Vadot 7*6be33864SEmmanuel Vadottitle: Mediatek MT6359 Codec Device Tree Bindings 8*6be33864SEmmanuel Vadot 9*6be33864SEmmanuel Vadotmaintainers: 10*6be33864SEmmanuel Vadot - Eason Yen <eason.yen@mediatek.com> 11*6be33864SEmmanuel Vadot - Jiaxin Yu <jiaxin.yu@mediatek.com> 12*6be33864SEmmanuel Vadot - Shane Chien <shane.chien@mediatek.com> 13*6be33864SEmmanuel Vadot 14*6be33864SEmmanuel Vadotdescription: | 15*6be33864SEmmanuel Vadot The communication between MT6359 and SoC is through Mediatek PMIC wrapper. 16*6be33864SEmmanuel Vadot For more detail, please visit Mediatek PMIC wrapper documentation. 17*6be33864SEmmanuel Vadot Must be a child node of PMIC wrapper. 18*6be33864SEmmanuel Vadot 19*6be33864SEmmanuel Vadotproperties: 20*6be33864SEmmanuel Vadot mediatek,dmic-mode: 21*6be33864SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 22*6be33864SEmmanuel Vadot description: | 23*6be33864SEmmanuel Vadot Indicates how many data pins are used to transmit two channels of PDM 24*6be33864SEmmanuel Vadot signal. 0 means two wires, 1 means one wire. Default value is 0. 25*6be33864SEmmanuel Vadot enum: 26*6be33864SEmmanuel Vadot - 0 # one wire 27*6be33864SEmmanuel Vadot - 1 # two wires 28*6be33864SEmmanuel Vadot 29*6be33864SEmmanuel Vadot mediatek,mic-type-0: 30*6be33864SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 31*6be33864SEmmanuel Vadot description: | 32*6be33864SEmmanuel Vadot Specifies the type of mic type connected to adc0 33*6be33864SEmmanuel Vadot 34*6be33864SEmmanuel Vadot enum: 35*6be33864SEmmanuel Vadot - 0 # IDLE - mic in turn-off status 36*6be33864SEmmanuel Vadot - 1 # ACC - analog mic with alternating coupling 37*6be33864SEmmanuel Vadot - 2 # DMIC - digital mic 38*6be33864SEmmanuel Vadot - 3 # DCC - analog mic with direct couping 39*6be33864SEmmanuel Vadot - 4 # DCC_ECM_DIFF - analog electret condenser mic with differential mode 40*6be33864SEmmanuel Vadot - 5 # DCC_ECM_SINGLE - analog electret condenser mic with single mode 41*6be33864SEmmanuel Vadot 42*6be33864SEmmanuel Vadot mediatek,mic-type-1: 43*6be33864SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 44*6be33864SEmmanuel Vadot description: | 45*6be33864SEmmanuel Vadot Specifies the type of mic type connected to adc1 46*6be33864SEmmanuel Vadot 47*6be33864SEmmanuel Vadot mediatek,mic-type-2: 48*6be33864SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 49*6be33864SEmmanuel Vadot description: | 50*6be33864SEmmanuel Vadot Specifies the type of mic type connected to adc2 51*6be33864SEmmanuel Vadot 52*6be33864SEmmanuel VadotadditionalProperties: false 53*6be33864SEmmanuel Vadot 54*6be33864SEmmanuel Vadotexamples: 55*6be33864SEmmanuel Vadot - | 56*6be33864SEmmanuel Vadot mt6359codec: mt6359codec { 57*6be33864SEmmanuel Vadot mediatek,dmic-mode = <0>; 58*6be33864SEmmanuel Vadot mediatek,mic-type-0 = <2>; 59*6be33864SEmmanuel Vadot }; 60*6be33864SEmmanuel Vadot 61*6be33864SEmmanuel Vadot... 62