xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/max98504.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMaxim MAX98504 class D mono speaker amplifier
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis device supports I2C control interface and an IRQ output signal. It features
4*4882a593Smuzhiyuna PCM and PDM digital audio interface (DAI) and a differential analog input.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties:
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun - compatible : "maxim,max98504"
9*4882a593Smuzhiyun - reg : should contain the I2C slave device address
10*4882a593Smuzhiyun - DVDD-supply, DIOVDD-supply, PVDD-supply: power supplies for the device,
11*4882a593Smuzhiyun   as covered in ../regulator/regulator.txt
12*4882a593Smuzhiyun - interrupts : should specify the interrupt line the device is connected to,
13*4882a593Smuzhiyun   as described in ../interrupt-controller/interrupts.txt
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunOptional properties:
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun - maxim,brownout-threshold - the PVDD brownout threshold, the value must be
18*4882a593Smuzhiyun   from 0, 1...21 range, corresponding to 2.6V, 2.65V...3.65V voltage range
19*4882a593Smuzhiyun - maxim,brownout-attenuation - the brownout attenuation to the speaker gain
20*4882a593Smuzhiyun   applied during the "attack hold" and "timed hold" phase, the value must be
21*4882a593Smuzhiyun   from 0...6 (dB) range
22*4882a593Smuzhiyun - maxim,brownout-attack-hold-ms - the brownout attack hold phase time in ms,
23*4882a593Smuzhiyun   0...255 (VBATBROWN_ATTK_HOLD, register 0x0018)
24*4882a593Smuzhiyun - maxim,brownout-timed-hold-ms - the brownout timed hold phase time in ms,
25*4882a593Smuzhiyun   0...255 (VBATBROWN_TIME_HOLD, register 0x0019)
26*4882a593Smuzhiyun - maxim,brownout-release-rate-ms - the brownout release phase step time in ms,
27*4882a593Smuzhiyun   0...255 (VBATBROWN_RELEASE, register 0x001A)
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunThe default value when the above properties are not specified is 0,
30*4882a593Smuzhiyunthe maxim,brownout-threshold property must be specified to actually enable
31*4882a593Smuzhiyunthe PVDD brownout protection.
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunExample:
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun max98504@31 {
36*4882a593Smuzhiyun	compatible = "maxim,max98504";
37*4882a593Smuzhiyun	reg = <0x31>;
38*4882a593Smuzhiyun	interrupt-parent = <&gpio_bank_0>;
39*4882a593Smuzhiyun	interrupts = <2 0>;
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun	DVDD-supply = <&regulator>;
42*4882a593Smuzhiyun	DIOVDD-supply = <&regulator>;
43*4882a593Smuzhiyun	PVDD-supply = <&regulator>;
44*4882a593Smuzhiyun};
45