18c2ecf20Sopenharmony_ciMaxim MAX98504 class D mono speaker amplifier 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis device supports I2C control interface and an IRQ output signal. It features 48c2ecf20Sopenharmony_cia PCM and PDM digital audio interface (DAI) and a differential analog input. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciRequired properties: 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci - compatible : "maxim,max98504" 98c2ecf20Sopenharmony_ci - reg : should contain the I2C slave device address 108c2ecf20Sopenharmony_ci - DVDD-supply, DIOVDD-supply, PVDD-supply: power supplies for the device, 118c2ecf20Sopenharmony_ci as covered in ../regulator/regulator.txt 128c2ecf20Sopenharmony_ci - interrupts : should specify the interrupt line the device is connected to, 138c2ecf20Sopenharmony_ci as described in ../interrupt-controller/interrupts.txt 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciOptional properties: 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci - maxim,brownout-threshold - the PVDD brownout threshold, the value must be 188c2ecf20Sopenharmony_ci from 0, 1...21 range, corresponding to 2.6V, 2.65V...3.65V voltage range 198c2ecf20Sopenharmony_ci - maxim,brownout-attenuation - the brownout attenuation to the speaker gain 208c2ecf20Sopenharmony_ci applied during the "attack hold" and "timed hold" phase, the value must be 218c2ecf20Sopenharmony_ci from 0...6 (dB) range 228c2ecf20Sopenharmony_ci - maxim,brownout-attack-hold-ms - the brownout attack hold phase time in ms, 238c2ecf20Sopenharmony_ci 0...255 (VBATBROWN_ATTK_HOLD, register 0x0018) 248c2ecf20Sopenharmony_ci - maxim,brownout-timed-hold-ms - the brownout timed hold phase time in ms, 258c2ecf20Sopenharmony_ci 0...255 (VBATBROWN_TIME_HOLD, register 0x0019) 268c2ecf20Sopenharmony_ci - maxim,brownout-release-rate-ms - the brownout release phase step time in ms, 278c2ecf20Sopenharmony_ci 0...255 (VBATBROWN_RELEASE, register 0x001A) 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciThe default value when the above properties are not specified is 0, 308c2ecf20Sopenharmony_cithe maxim,brownout-threshold property must be specified to actually enable 318c2ecf20Sopenharmony_cithe PVDD brownout protection. 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciExample: 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci max98504@31 { 368c2ecf20Sopenharmony_ci compatible = "maxim,max98504"; 378c2ecf20Sopenharmony_ci reg = <0x31>; 388c2ecf20Sopenharmony_ci interrupt-parent = <&gpio_bank_0>; 398c2ecf20Sopenharmony_ci interrupts = <2 0>; 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci DVDD-supply = <®ulator>; 428c2ecf20Sopenharmony_ci DIOVDD-supply = <®ulator>; 438c2ecf20Sopenharmony_ci PVDD-supply = <®ulator>; 448c2ecf20Sopenharmony_ci}; 45