xref: /freebsd/sys/contrib/device-tree/Bindings/sound/rt5651.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotRT5651 audio CODEC
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis device supports I2C only.
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel VadotRequired properties:
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadot- compatible : "realtek,rt5651".
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot- reg : The I2C address of the device.
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotOptional properties:
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot- realtek,in2-differential
14*c66ec88fSEmmanuel Vadot  Boolean. Indicate MIC2 input are differential, rather than single-ended.
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot- realtek,dmic-en
17*c66ec88fSEmmanuel Vadot  Boolean. true if dmic is used.
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot- realtek,jack-detect-source
20*c66ec88fSEmmanuel Vadot  u32. Valid values:
21*c66ec88fSEmmanuel Vadot  1: Use JD1_1 pin for jack-detect
22*c66ec88fSEmmanuel Vadot  2: Use JD1_2 pin for jack-detect
23*c66ec88fSEmmanuel Vadot  3: Use JD2 pin for jack-detect
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot- realtek,jack-detect-not-inverted
26*c66ec88fSEmmanuel Vadot  bool. Normal jack-detect switches give an inverted (active-low) signal,
27*c66ec88fSEmmanuel Vadot  set this bool in the rare case you've a jack-detect switch which is not
28*c66ec88fSEmmanuel Vadot  inverted.
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot- realtek,over-current-threshold-microamp
31*c66ec88fSEmmanuel Vadot  u32, micbias over-current detection threshold in µA, valid values are
32*c66ec88fSEmmanuel Vadot  600, 1500 and 2000µA.
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadot- realtek,over-current-scale-factor
35*c66ec88fSEmmanuel Vadot  u32, micbias over-current detection scale-factor, valid values are:
36*c66ec88fSEmmanuel Vadot  0: Scale current by 0.5
37*c66ec88fSEmmanuel Vadot  1: Scale current by 0.75
38*c66ec88fSEmmanuel Vadot  2: Scale current by 1.0
39*c66ec88fSEmmanuel Vadot  3: Scale current by 1.5
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel VadotPins on the device (for linking into audio routes) for RT5651:
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel Vadot  * DMIC L1
44*c66ec88fSEmmanuel Vadot  * DMIC R1
45*c66ec88fSEmmanuel Vadot  * IN1P
46*c66ec88fSEmmanuel Vadot  * IN2P
47*c66ec88fSEmmanuel Vadot  * IN2N
48*c66ec88fSEmmanuel Vadot  * IN3P
49*c66ec88fSEmmanuel Vadot  * HPOL
50*c66ec88fSEmmanuel Vadot  * HPOR
51*c66ec88fSEmmanuel Vadot  * LOUTL
52*c66ec88fSEmmanuel Vadot  * LOUTR
53*c66ec88fSEmmanuel Vadot  * PDML
54*c66ec88fSEmmanuel Vadot  * PDMR
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel VadotExample:
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel Vadotrt5651: codec@1a {
59*c66ec88fSEmmanuel Vadot	compatible = "realtek,rt5651";
60*c66ec88fSEmmanuel Vadot	reg = <0x1a>;
61*c66ec88fSEmmanuel Vadot	realtek,dmic-en = "true";
62*c66ec88fSEmmanuel Vadot	realtek,in2-diff = "false";
63*c66ec88fSEmmanuel Vadot};
64