Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec
[deliverable/linux.git] / Documentation / devicetree / bindings / sound / rt5677.txt
1 RT5677 audio CODEC
2
3 This device supports I2C only.
4
5 Required properties:
6
7 - compatible : "realtek,rt5677".
8
9 - reg : The I2C address of the device.
10
11 - interrupts : The CODEC's interrupt output.
12
13 - gpio-controller : Indicates this device is a GPIO controller.
14
15 - #gpio-cells : Should be two. The first cell is the pin number and the
16 second cell is used to specify optional parameters (currently unused).
17
18 Optional properties:
19
20 - realtek,pow-ldo2-gpio : The GPIO that controls the CODEC's POW_LDO2 pin.
21
22 - realtek,in1-differential
23 - realtek,in2-differential
24 - realtek,lout1-differential
25 - realtek,lout2-differential
26 - realtek,lout3-differential
27 Boolean. Indicate MIC1/2 input and LOUT1/2/3 outputs are differential,
28 rather than single-ended.
29
30 - realtek,gpio-config
31 Array of six 8bit elements that configures GPIO.
32 0 - floating (reset value)
33 1 - pull down
34 2 - pull up
35
36 - realtek,jd1-gpio
37 Configures GPIO Mic Jack detection 1.
38 Select 0 ~ 3 as OFF, GPIO1, GPIO2 and GPIO3 respectively.
39
40 - realtek,jd2-gpio
41 - realtek,jd3-gpio
42 Configures GPIO Mic Jack detection 2 and 3.
43 Select 0 ~ 3 as OFF, GPIO4, GPIO5 and GPIO6 respectively.
44
45 Pins on the device (for linking into audio routes):
46
47 * IN1P
48 * IN1N
49 * IN2P
50 * IN2N
51 * MICBIAS1
52 * DMIC1
53 * DMIC2
54 * DMIC3
55 * DMIC4
56 * LOUT1
57 * LOUT2
58 * LOUT3
59
60 Example:
61
62 rt5677 {
63 compatible = "realtek,rt5677";
64 reg = <0x2c>;
65 interrupt-parent = <&gpio>;
66 interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>;
67
68 gpio-controller;
69 #gpio-cells = <2>;
70
71 realtek,pow-ldo2-gpio =
72 <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
73 realtek,in1-differential = "true";
74 realtek,gpio-config = /bits/ 8 <0 0 0 0 0 2>; /* pull up GPIO6 */
75 realtek,jd2-gpio = <3>; /* Enables Jack detection for GPIO6 */
76 };
This page took 0.031723 seconds and 5 git commands to generate.