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