Merge tag 'drm-msm-fixes-2018-04-25' of git://people.freedesktop.org/~robclark/linux...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / sound / rt5651.txt
1 RT5651 audio CODEC
2
3 This device supports I2C only.
4
5 Required properties:
6
7 - compatible : "realtek,rt5651".
8
9 - reg : The I2C address of the device.
10
11 Optional properties:
12
13 - realtek,in2-differential
14   Boolean. Indicate MIC2 input are differential, rather than single-ended.
15
16 - realtek,dmic-en
17   Boolean. true if dmic is used.
18
19 - realtek,jack-detect-source
20   u32. Valid values:
21   1: Use JD1_1 pin for jack-detect
22   2: Use JD1_2 pin for jack-detect
23   3: Use JD2 pin for jack-detect
24
25 - realtek,over-current-threshold-microamp
26   u32, micbias over-current detection threshold in µA, valid values are
27   600, 1500 and 2000µA.
28
29 - realtek,over-current-scale-factor
30   u32, micbias over-current detection scale-factor, valid values are:
31   0: Scale current by 0.5
32   1: Scale current by 0.75
33   2: Scale current by 1.0
34   3: Scale current by 1.5
35
36 Pins on the device (for linking into audio routes) for RT5651:
37
38   * DMIC L1
39   * DMIC R1
40   * IN1P
41   * IN2P
42   * IN2N
43   * IN3P
44   * HPOL
45   * HPOR
46   * LOUTL
47   * LOUTR
48   * PDML
49   * PDMR
50
51 Example:
52
53 codec: rt5651@1a {
54         compatible = "realtek,rt5651";
55         reg = <0x1a>;
56         realtek,dmic-en = "true";
57         realtek,in2-diff = "false";
58 };