[PATCH v2 0/2] ASoC: nau8822: add support for supply regulators

Alexey Charkov posted 2 patches 2 weeks ago
.../devicetree/bindings/sound/nuvoton,nau8822.yaml | 18 +++++++++
sound/soc/codecs/nau8822.c                         | 46 ++++++++++++++++++++--
sound/soc/codecs/nau8822.h                         |  3 ++
3 files changed, 64 insertions(+), 3 deletions(-)
[PATCH v2 0/2] ASoC: nau8822: add support for supply regulators
Posted by Alexey Charkov 2 weeks ago
The Nuvoton NAU8822 codec has four power supply pins: VDDA, VDDB, VDDC
and VDDSPK, which must be online and stable before the device can be
accessed over I2C. On boards where these rails are software-controlled,
probing the codec before the regulators are up results in -ENXIO errors
during register access.

This short series adds optional regulator support to both the device
tree binding and the driver, so platforms that need explicit power
sequencing can describe and enforce it:

Signed-off-by: Alexey Charkov <alchark@flipper.net>
---
Changes in v2:
- Added the regulators to the DT binding example (thanks Krzysztof)
- Switch to regulator_bulk_* APIs instead of "optional" (thanks Mark)
- Enable and disable the regulators at probe/remove and suspend/resume (thanks Sashiko)
- Include the required regulator header (thanks Sashiko)
- Add a power on reset stabilization delay before register access (thanks Sashiko)
- Link to v1: https://lore.kernel.org/r/20260513-nau8822-reg-v1-0-c532e18e92ad@flipper.net

---
Alexey Charkov (2):
      ASoC: dt-bindings: nau8822: Add supply regulators
      ASoC: codecs: nau8822: add support for supply regulators

 .../devicetree/bindings/sound/nuvoton,nau8822.yaml | 18 +++++++++
 sound/soc/codecs/nau8822.c                         | 46 ++++++++++++++++++++--
 sound/soc/codecs/nau8822.h                         |  3 ++
 3 files changed, 64 insertions(+), 3 deletions(-)
---
base-commit: c1ecb239fa3456529a32255359fc78b69eb9d847
change-id: 20260513-nau8822-reg-becf5b766d80

Best regards,
-- 
Alexey Charkov <alchark@flipper.net>
Re: [PATCH v2 0/2] ASoC: nau8822: add support for supply regulators
Posted by Mark Brown 1 week ago
On Mon, 25 May 2026 13:20:44 +0400, Alexey Charkov wrote:
> ASoC: nau8822: add support for supply regulators
> 
> The Nuvoton NAU8822 codec has four power supply pins: VDDA, VDDB, VDDC
> and VDDSPK, which must be online and stable before the device can be
> accessed over I2C. On boards where these rails are software-controlled,
> probing the codec before the regulators are up results in -ENXIO errors
> during register access.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.2

Thanks!

[1/2] ASoC: dt-bindings: nau8822: Add supply regulators
      https://git.kernel.org/broonie/sound/c/caba9259a22b
[2/2] ASoC: codecs: nau8822: add support for supply regulators
      https://git.kernel.org/broonie/sound/c/f8e7cd48e5b3

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark