aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/rt5640.txt
blob: 068a1141b06f19de0f5206e97de40f0af6793812 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
RT5640 audio CODEC

This device supports I2C only.

Required properties:

- compatible : "realtek,rt5640".

- reg : The I2C address of the device.

- interrupts : The CODEC's interrupt output.

Optional properties:

- realtek,in1-differential
- realtek,in2-differential
  Boolean. Indicate MIC1/2 input are differential, rather than single-ended.

- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.

Pins on the device (for linking into audio routes):

  * DMIC1
  * DMIC2
  * MICBIAS1
  * IN1P
  * IN1R
  * IN2P
  * IN2R
  * HPOL
  * HPOR
  * LOUTL
  * LOUTR
  * MONOP
  * MONON
  * SPOLP
  * SPOLN
  * SPORP
  * SPORN

Example:

rt5640 {
	compatible = "realtek,rt5640";
	reg = <0x1c>;
	interrupt-parent = <&gpio>;
	interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>;
	realtek,ldo1-en-gpios =
		<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
};