xref: /openbmc/linux/Documentation/devicetree/bindings/sound/rt5651.txt (revision 9db7d4b32cbccb5807e2e1f22e2fafc80034ee6d)
13ae08dc0SBard LiaoRT5651 audio CODEC
23ae08dc0SBard Liao
33ae08dc0SBard LiaoThis device supports I2C only.
43ae08dc0SBard Liao
53ae08dc0SBard LiaoRequired properties:
63ae08dc0SBard Liao
73ae08dc0SBard Liao- compatible : "realtek,rt5651".
83ae08dc0SBard Liao
93ae08dc0SBard Liao- reg : The I2C address of the device.
103ae08dc0SBard Liao
113ae08dc0SBard LiaoOptional properties:
123ae08dc0SBard Liao
133ae08dc0SBard Liao- realtek,in2-differential
143ae08dc0SBard Liao  Boolean. Indicate MIC2 input are differential, rather than single-ended.
153ae08dc0SBard Liao
163ae08dc0SBard Liao- realtek,dmic-en
173ae08dc0SBard Liao  Boolean. true if dmic is used.
183ae08dc0SBard Liao
19*9db7d4b3SHans de Goede- realtek,jack-detect-source
20*9db7d4b3SHans de Goede  u32. Valid values:
21*9db7d4b3SHans de Goede  1: Use JD1_1 pin for jack-dectect
22*9db7d4b3SHans de Goede  2: Use JD1_2 pin for jack-dectect
23*9db7d4b3SHans de Goede  3: Use JD2 pin for jack-dectect
24*9db7d4b3SHans de Goede
25*9db7d4b3SHans de Goede- realtek,over-current-threshold-microamp
26*9db7d4b3SHans de Goede  u32, micbias over-current detection threshold in µA, valid values are
27*9db7d4b3SHans de Goede  600, 1500 and 2000µA.
28*9db7d4b3SHans de Goede
29*9db7d4b3SHans de Goede- realtek,over-current-scale-factor
30*9db7d4b3SHans de Goede  u32, micbias over-current detection scale-factor, valid values are:
31*9db7d4b3SHans de Goede  0: Scale current by 0.5
32*9db7d4b3SHans de Goede  1: Scale current by 0.75
33*9db7d4b3SHans de Goede  2: Scale current by 1.0
34*9db7d4b3SHans de Goede  3: Scale current by 1.5
35*9db7d4b3SHans de Goede
363ae08dc0SBard LiaoPins on the device (for linking into audio routes) for RT5651:
373ae08dc0SBard Liao
383ae08dc0SBard Liao  * DMIC L1
393ae08dc0SBard Liao  * DMIC R1
403ae08dc0SBard Liao  * IN1P
413ae08dc0SBard Liao  * IN2P
423ae08dc0SBard Liao  * IN2N
433ae08dc0SBard Liao  * IN3P
443ae08dc0SBard Liao  * HPOL
453ae08dc0SBard Liao  * HPOR
463ae08dc0SBard Liao  * LOUTL
473ae08dc0SBard Liao  * LOUTR
483ae08dc0SBard Liao  * PDML
493ae08dc0SBard Liao  * PDMR
503ae08dc0SBard Liao
513ae08dc0SBard LiaoExample:
523ae08dc0SBard Liao
533ae08dc0SBard Liaocodec: rt5651@1a {
543ae08dc0SBard Liao	compatible = "realtek,rt5651";
553ae08dc0SBard Liao	reg = <0x1a>;
563ae08dc0SBard Liao	realtek,dmic-en = "true";
573ae08dc0SBard Liao	realtek,in2-diff = "false";
583ae08dc0SBard Liao};
59