[PATCH v7 0/5] Add support for S4 audio

From: Jiebing Chen via B4 Relay

Date: Wed Oct 21 2026 - 03:10:23 EST


This series completes the end-to-end audio support
for S4 SoC from hardware bindings to driver implementation
and system integration.

1 Device Tree Bindings Updates
Added audio power domain and S4 audio clock support for S4 SoC.
Added S4 audio tocodec binding support.

2 Driver Implementation
Implemented S4 tocodec driver for G12A architecture.
Added S4 audio clock support in AXG audio clock

3 Device Tree Integration
Add Amlogic S4 audio subsystem support in arm64 DTS.

Signed-off-by: jiebing chen <jiebing.chen@xxxxxxxxxxx>
---
Changes in v7:
- Use the supply widget to manage the tocodec clock enable signal.
- Remove redundant MPLL frequencies.
- Fixed dt_binding warning
- Link to v6: https://lore.kernel.org/r/20260126-audio_drvier-v6-0-99e350855bc2@xxxxxxxxxxx

Changes in v6:
- Fix the problem of string for Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml
- Remove clock pad register, and it will be submitted as an independent patch.
- Redescribe sound/soc/meson/g12a-toacodec.c
- Link to v5: https://lore.kernel.org/r/20250710-audio_drvier-v5-0-d4155f1e7464@xxxxxxxxxxx

Changes in v5:
- Fix warning Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yam when make dt_binding_check
- The audio reg is mounted below the APB bus in dts file.
- Deal with pad clock in a distinct controller.
- Fix warning for sound/soc/meson/g12a-toacodec.c
- Link to v4: https://lore.kernel.org/r/20250319-audio_drvier-v4-0-686867fad719@xxxxxxxxxxx

Changes in v4:
- fix dtb check warning
- add maxItems of power domain for dt-bindings
- fixed audio clock pads regmap base and reg offset
- use dapm widget to control tocodec bclk and mclk enable
- Link to v3: https://lore.kernel.org/r/20250228-audio_drvier-v3-0-dbfd30507e4c@xxxxxxxxxxx

Changes in v3:
- remove g12a tocodec switch event
- Modify the incorrect title for dt-bindings
- Link to v2: https://lore.kernel.org/r/20250214-audio_drvier-v2-0-37881fa37c9e@xxxxxxxxxxx

Changes in v2:
- remove tdm pad control and change tocodec base on g12a
- change hifipll rate to support 24bit
- add s4 audio clock
- Link to v1: https://lore.kernel.org/r/20250113-audio_drvier-v1-0-8c14770f38a0@xxxxxxxxxxx

To: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
To: Jerome Brunet <jbrunet@xxxxxxxxxxxx>
To: Michael Turquette <mturquette@xxxxxxxxxxxx>
To: Stephen Boyd <sboyd@xxxxxxxxxx>
To: Rob Herring <robh@xxxxxxxxxx>
To: Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>
To: Conor Dooley <conor+dt@xxxxxxxxxx>
To: Liam Girdwood <lgirdwood@xxxxxxxxx>
To: Mark Brown <broonie@xxxxxxxxxx>
To: Jaroslav Kysela <perex@xxxxxxxx>
To: Takashi Iwai <tiwai@xxxxxxxx>
To: Kevin Hilman <khilman@xxxxxxxxxxxx>
To: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx>
Cc: linux-amlogic@xxxxxxxxxxxxxxxxxxx
Cc: linux-clk@xxxxxxxxxxxxxxx
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-sound@xxxxxxxxxxxxxxx
Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx

---
Jiebing Chen (5):
dt-bindings: clock: meson: Add audio power domain for S4 soc
dt-bindings: Asoc: axg-audio: Add S4 audio tocodec
ASoC: meson: g12a-toacodec: Add S4 tocodec driver
clk: meson: axg_audio: add S4 support
arm64: dts: amlogic: Add Amlogic S4 Audio

.../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +-
.../bindings/sound/amlogic,g12a-toacodec.yaml | 1 +
.../boot/dts/amlogic/meson-s4-s805x2-aq222.dts | 219 +++++++++++++
arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 360 +++++++++++++++++++++
drivers/clk/meson/axg-audio.c | 165 ++++++++++
sound/soc/meson/g12a-toacodec.c | 49 +++
6 files changed, 810 insertions(+), 1 deletion(-)
---
base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d
change-id: 20250110-audio_drvier-07a5381c494b

Best regards,
--
Jiebing Chen <jiebing.chen@xxxxxxxxxxx>