blob: 57fe64643050a5e9f41072dd0d4ae0376f5d6958 [file] [log] [blame]
Oder Chiou908b7032014-04-10 10:57:35 +08001RT5640/RT5639 audio CODEC
Stephen Warrendcad9f02013-06-12 11:34:30 -06002
3This device supports I2C only.
4
5Required properties:
6
Oder Chiou908b7032014-04-10 10:57:35 +08007- compatible : One of "realtek,rt5640" or "realtek,rt5639".
Stephen Warrendcad9f02013-06-12 11:34:30 -06008
9- reg : The I2C address of the device.
10
11- interrupts : The CODEC's interrupt output.
12
13Optional properties:
14
Sugar Zhang6049af02016-02-22 15:56:55 +080015- clocks: The phandle of the master clock to the CODEC
16- clock-names: Should be "mclk"
17
Stephen Warrendcad9f02013-06-12 11:34:30 -060018- realtek,in1-differential
19- realtek,in2-differential
Oder Chiou16566e42015-10-21 09:46:05 +080020- realtek,in3-differential
21 Boolean. Indicate MIC1/2/3 input are differential, rather than single-ended.
Stephen Warrendcad9f02013-06-12 11:34:30 -060022
23- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
24
Oder Chiou908b7032014-04-10 10:57:35 +080025Pins on the device (for linking into audio routes) for RT5639/RT5640:
Mark Brownb33d1f02013-08-11 18:59:20 +010026
27 * DMIC1
28 * DMIC2
29 * MICBIAS1
30 * IN1P
Oder Chiou841fdde2015-10-21 09:46:05 +080031 * IN1N
Mark Brownb33d1f02013-08-11 18:59:20 +010032 * IN2P
Oder Chiou841fdde2015-10-21 09:46:05 +080033 * IN2N
Oder Chiou16566e42015-10-21 09:46:05 +080034 * IN3P
35 * IN3N
Mark Brownb33d1f02013-08-11 18:59:20 +010036 * HPOL
37 * HPOR
38 * LOUTL
39 * LOUTR
Mark Brownb33d1f02013-08-11 18:59:20 +010040 * SPOLP
41 * SPOLN
42 * SPORP
43 * SPORN
44
Oder Chiou908b7032014-04-10 10:57:35 +080045Additional pins on the device for RT5640:
46
47 * MONOP
48 * MONON
49
Stephen Warrendcad9f02013-06-12 11:34:30 -060050Example:
51
52rt5640 {
53 compatible = "realtek,rt5640";
54 reg = <0x1c>;
55 interrupt-parent = <&gpio>;
56 interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>;
57 realtek,ldo1-en-gpios =
58 <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
59};