xref: /freebsd/sys/contrib/device-tree/Bindings/sound/rt1011.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotRT1011 Mono Class D Audio Amplifier
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,rt1011".
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot- reg : The I2C address of the device. This I2C address decide by
10*c66ec88fSEmmanuel Vadot        two input pins (ASEL1 and ASEL2).
11*c66ec88fSEmmanuel Vadot        -------------------------------------
12*c66ec88fSEmmanuel Vadot        |   ASEL2   |  ASEL1   |  Address   |
13*c66ec88fSEmmanuel Vadot        -------------------------------------
14*c66ec88fSEmmanuel Vadot        |     0     |    0     |   0x38     |
15*c66ec88fSEmmanuel Vadot        -------------------------------------
16*c66ec88fSEmmanuel Vadot        |     0     |    1     |   0x39     |
17*c66ec88fSEmmanuel Vadot        -------------------------------------
18*c66ec88fSEmmanuel Vadot        |     1     |    0     |   0x3a     |
19*c66ec88fSEmmanuel Vadot        -------------------------------------
20*c66ec88fSEmmanuel Vadot        |     1     |    1     |   0x3b     |
21*c66ec88fSEmmanuel Vadot        -------------------------------------
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotOptional properties:
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot- realtek,temperature_calib
26*c66ec88fSEmmanuel Vadot  u32. The temperature was measured while doing the calibration. Units: Celsius degree
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot- realtek,r0_calib
29*c66ec88fSEmmanuel Vadot  u32. This is r0 calibration data which was measured in factory mode.
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel VadotPins on the device (for linking into audio routes) for RT1011:
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot  * SPO
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel VadotExample:
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadotrt1011: codec@38 {
38*c66ec88fSEmmanuel Vadot	compatible = "realtek,rt1011";
39*c66ec88fSEmmanuel Vadot	reg = <0x38>;
40*c66ec88fSEmmanuel Vadot	realtek,temperature_calib = <25>;
41*c66ec88fSEmmanuel Vadot	realtek,r0_calib = <0x224050>;
42*c66ec88fSEmmanuel Vadot};
43