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