]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8cf689d8d60cc954c97567511b92e975121182cd
treef99ee03fcd129ac5d64a03a2398ca4d3c216d5ee
parentf232db7f2533c13434bc787b91ad5d7ab1d9dbc3
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