]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/sound/rt5640.txt
Merge remote-tracking branch 'xfs/for-next'
[karo-tx-linux.git] / Documentation / devicetree / bindings / sound / rt5640.txt
1 RT5640/RT5639 audio CODEC
2
3 This device supports I2C only.
4
5 Required properties:
6
7 - compatible : One of "realtek,rt5640" or "realtek,rt5639".
8
9 - reg : The I2C address of the device.
10
11 - interrupts : The CODEC's interrupt output.
12
13 Optional properties:
14
15 - realtek,in1-differential
16 - realtek,in2-differential
17 - realtek,in3-differential
18   Boolean. Indicate MIC1/2/3 input are differential, rather than single-ended.
19
20 - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
21
22 Pins on the device (for linking into audio routes) for RT5639/RT5640:
23
24   * DMIC1
25   * DMIC2
26   * MICBIAS1
27   * IN1P
28   * IN1N
29   * IN2P
30   * IN2N
31   * IN3P
32   * IN3N
33   * HPOL
34   * HPOR
35   * LOUTL
36   * LOUTR
37   * SPOLP
38   * SPOLN
39   * SPORP
40   * SPORN
41
42 Additional pins on the device for RT5640:
43
44   * MONOP
45   * MONON
46
47 Example:
48
49 rt5640 {
50         compatible = "realtek,rt5640";
51         reg = <0x1c>;
52         interrupt-parent = <&gpio>;
53         interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>;
54         realtek,ldo1-en-gpios =
55                 <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
56 };