xref: /openbmc/linux/Documentation/devicetree/bindings/sound/rt5651.txt (revision 520a76f855e570c11fd042dd2ab4712ce33fb3a0)
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
199db7d4b3SHans de Goede- realtek,jack-detect-source
209db7d4b3SHans de Goede  u32. Valid values:
216b2d9924SHans de Goede  1: Use JD1_1 pin for jack-detect
226b2d9924SHans de Goede  2: Use JD1_2 pin for jack-detect
236b2d9924SHans de Goede  3: Use JD2 pin for jack-detect
249db7d4b3SHans de Goede
259db7d4b3SHans de Goede- realtek,over-current-threshold-microamp
269db7d4b3SHans de Goede  u32, micbias over-current detection threshold in µA, valid values are
279db7d4b3SHans de Goede  600, 1500 and 2000µA.
289db7d4b3SHans de Goede
299db7d4b3SHans de Goede- realtek,over-current-scale-factor
309db7d4b3SHans de Goede  u32, micbias over-current detection scale-factor, valid values are:
319db7d4b3SHans de Goede  0: Scale current by 0.5
329db7d4b3SHans de Goede  1: Scale current by 0.75
339db7d4b3SHans de Goede  2: Scale current by 1.0
349db7d4b3SHans de Goede  3: Scale current by 1.5
359db7d4b3SHans 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
53*520a76f8SFabio Estevamrt5651: codec@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