ASoC: max98396: add voltage regulators
authorDaniel Mack <daniel@zonque.org>
Fri, 24 Jun 2022 10:47:08 +0000 (12:47 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:16:09 +0000 (13:16 +0100)
commit703ee0557f8921c96e8c42f832b3bd69b7bfb262
treef99ee03fcd129ac5d64a03a2398ca4d3c216d5ee
parent0ce44afd29768e893ff9112ba208271e0d558780
ASoC: max98396: add voltage regulators

The device has up to 5 potentially independent power supplies:
AVDD, DVDD, DVVDIO, VBAT and PVDD. The former 3 are mandatory for the
device to function. One of VBAT and PVDD should also be made available.

Regulators are enabled during probe time and will stay active except when in
suspend mode.

Futher, the chip needs to be informed about the presence of VBAT through a
bit in register 0x20a0.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Link: https://lore.kernel.org/r/20220624104712.1934484-5-daniel@zonque.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98396.c
sound/soc/codecs/max98396.h