xref: /freebsd-src/sys/contrib/device-tree/Bindings/sound/max98373.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMaxim Integrated MAX98373 Speaker Amplifier
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis device supports I2C.
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel VadotRequired properties:
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadot - compatible : "maxim,max98373"
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  - maxim,vmon-slot-no : slot number used to send voltage information
14*c66ec88fSEmmanuel Vadot                   or in inteleave mode this will be used as
15*c66ec88fSEmmanuel Vadot                   interleave slot.
16*c66ec88fSEmmanuel Vadot                   slot range : 0 ~ 15,  Default : 0
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadot  - maxim,imon-slot-no : slot number used to send current information
19*c66ec88fSEmmanuel Vadot                   slot range : 0 ~ 15,  Default : 0
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot  - maxim,spkfb-slot-no : slot number used to send speaker feedback information
22*c66ec88fSEmmanuel Vadot                   slot range : 0 ~ 15,  Default : 0
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot  - maxim,interleave-mode : For cases where a single combined channel
25*c66ec88fSEmmanuel Vadot		   for the I/V sense data is not sufficient, the device can also be configured
26*c66ec88fSEmmanuel Vadot		   to share a single data output channel on alternating frames.
27*c66ec88fSEmmanuel Vadot		   In this configuration, the current and voltage data will be frame interleaved
28*c66ec88fSEmmanuel Vadot		   on a single output channel.
29*c66ec88fSEmmanuel Vadot                   Boolean, define to enable the interleave mode, Default : false
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel VadotExample:
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadotcodec: max98373@31 {
34*c66ec88fSEmmanuel Vadot   compatible = "maxim,max98373";
35*c66ec88fSEmmanuel Vadot   reg = <0x31>;
36*c66ec88fSEmmanuel Vadot   maxim,vmon-slot-no = <0>;
37*c66ec88fSEmmanuel Vadot   maxim,imon-slot-no = <1>;
38*c66ec88fSEmmanuel Vadot   maxim,spkfb-slot-no = <2>;
39*c66ec88fSEmmanuel Vadot   maxim,interleave-mode;
40*c66ec88fSEmmanuel Vadot};
41