Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ASoC: nau8822: add support for supply regulators
@ 2026-05-25  9:20 Alexey Charkov
  2026-05-25  9:20 ` [PATCH v2 1/2] ASoC: dt-bindings: nau8822: Add " Alexey Charkov
  2026-05-25  9:20 ` [PATCH v2 2/2] ASoC: codecs: nau8822: add support for " Alexey Charkov
  0 siblings, 2 replies; 7+ messages in thread
From: Alexey Charkov @ 2026-05-25  9:20 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, David Lin, Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, devicetree, linux-kernel, Alexey Charkov

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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-05-25 10:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-25  9:20 [PATCH v2 0/2] ASoC: nau8822: add support for supply regulators Alexey Charkov
2026-05-25  9:20 ` [PATCH v2 1/2] ASoC: dt-bindings: nau8822: Add " Alexey Charkov
2026-05-25  9:29   ` sashiko-bot
2026-05-25  9:53     ` Alexey Charkov
2026-05-25  9:20 ` [PATCH v2 2/2] ASoC: codecs: nau8822: add support for " Alexey Charkov
2026-05-25  9:51   ` sashiko-bot
2026-05-25 10:29     ` Alexey Charkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox