[PATCH v2 0/4] ASoC: Add Richtek rt9123 and rt9123p support

From: cy_huang
Date: Wed Apr 09 2025 - 20:58:42 EST


From: ChiYuan Huang <cy_huang@xxxxxxxxxxx>

This patch series adds Richtek rt9123 and rt9123p support.
It's a 3.2W mono Class-D audio amplifier.

Since v2
[PATCH 2/4]
- include bitfield header file to fix kernel test robot issue
https://lore.kernel.org/oe-kbuild-all/202504052206.HFqFRXUk-lkp@xxxxxxxxx/
- Use #ifdef CONFIG_PM to only inlucde 'runtime_resume' and
'runtime_suspend', this will fix kernel test robot issue
https://lore.kernel.org/oe-kbuild-all/202504052244.bgS5yxev-lkp@xxxxxxxxx/
- Check vendor-id before triggering SW_RST
- Fix 'SW_RST' write date non swap issue and add the wait delay for sw_reset
- Rename control name from 'SPK Gain Volume' to 'Speaker Volume'
- Change regmap cache type to _MAPLE
- Since ID check run once, to speed up regmap cache init, modify
num_reg_defaults_raw from 0xf2 'COMBOID' to 0x36 'ANAFLAG'
- Add comments to describe why use pm runtime for RG special handling
[PATCH 3/4]
- Modify the property name from 'enable-delay' to 'enable-delay-ms' to make the
time unit more specific
[PATCH 4/4]
- Update the property parsing from 'enable-delay' to 'enable-delay-ms'


ChiYuan Huang (4):
ASoC: dt-bindings: Add bindings for Richtek rt9123
ASoC: codecs: Add support for Richtek rt9123
ASoC: dt-bindings: Add bindings for Richtek rt9123p
ASoC: codecs: Add support for Richtek rt9123p

.../bindings/sound/richtek,rt9123.yaml | 56 ++
.../bindings/sound/richtek,rt9123p.yaml | 48 ++
sound/soc/codecs/Kconfig | 15 +
sound/soc/codecs/Makefile | 4 +
sound/soc/codecs/rt9123.c | 503 ++++++++++++++++++
sound/soc/codecs/rt9123p.c | 171 ++++++
6 files changed, 797 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/richtek,rt9123.yaml
create mode 100644 Documentation/devicetree/bindings/sound/richtek,rt9123p.yaml
create mode 100644 sound/soc/codecs/rt9123.c
create mode 100644 sound/soc/codecs/rt9123p.c


base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
--
2.34.1