diff options
Diffstat (limited to 'Documentation/devicetree/bindings/sound/rt5677.txt')
-rw-r--r-- | Documentation/devicetree/bindings/sound/rt5677.txt | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/rt5677.txt b/Documentation/devicetree/bindings/sound/rt5677.txt new file mode 100644 index 000000000000..0701b834fc73 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rt5677.txt | |||
@@ -0,0 +1,59 @@ | |||
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 | Pins on the device (for linking into audio routes): | ||
31 | |||
32 | * IN1P | ||
33 | * IN1N | ||
34 | * IN2P | ||
35 | * IN2N | ||
36 | * MICBIAS1 | ||
37 | * DMIC1 | ||
38 | * DMIC2 | ||
39 | * DMIC3 | ||
40 | * DMIC4 | ||
41 | * LOUT1 | ||
42 | * LOUT2 | ||
43 | * LOUT3 | ||
44 | |||
45 | Example: | ||
46 | |||
47 | rt5677 { | ||
48 | compatible = "realtek,rt5677"; | ||
49 | reg = <0x2c>; | ||
50 | interrupt-parent = <&gpio>; | ||
51 | interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>; | ||
52 | |||
53 | gpio-controller; | ||
54 | #gpio-cells = <2>; | ||
55 | |||
56 | realtek,pow-ldo2-gpio = | ||
57 | <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; | ||
58 | realtek,in1-differential = "true"; | ||
59 | }; | ||