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