Skip to content

ASoC: add Allwinner H616 audio codec support

Ryan Walklin linux-arm-kernel linux-clk linux-devicetree linux-sound linux-sunxi 3 versions – Applied

Status from this message: Applied to clk-for-6.13 in [email protected]:linux-sunxi/linux-sunxi.git, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 10 repliesApplied
  2. v27 patches 7 repliesSuperseded
  3. v16 patches 14 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7clk: sunxi-ng: h616: Add sigma-delta modulation settings for audio PLLdrivers/clk/sunxi-ng/ccu-sun50i-h616.c+30 -163 replies
2/7dt-bindings: allwinner: add H616 sun4i audio codec bindingDocumentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml+47 -62 replies
3/7ASoC: sun4i-codec: Add support for different DAC FIFOC addresses to quirkssound/soc/sunxi/sun4i-codec.c+51 -320 replies
4/7ASoC: sun4i-codec: Add playback only flag to quirkssound/soc/sunxi/sun4i-codec.c+8 -40 replies
5/7ASoC: sun4i-codec: support allwinner H616 codecsound/soc/sunxi/sun4i-codec.c+203 -00 replies
6/7arm64: dts: allwinner: h616: Add audio codec nodearch/arm64/boot/dts/allwinner/sun50i-h616.dtsi+29 -150 replies
7/7arm64: dts: allwinner: h313/h616/h618/h700: Enable audio codec for all supported boardsarch/arm64/boot/dts/allwinner/sun50i-h313-tanix-tx1.dts arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts +3 more+36 -21 reply

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchAndre PrzywaraPhilippe SimonsKrzysztof KozlowskiMarcus Cooper
1/7R-b T-b
2/7R-b
3/7R-b
4/7R-b
5/7
6/7R-b
7/7R-b T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/7] ASoC: add Allwinner H616 audio codec support

Hi All,

V3 of this patch adding support for the Allwinner H616 (and variant)'s audio codec. Some clarification of comments, particularly regarding the clock driver changes, and a small fix for the device tree binding (apologies I forgot to re-run dt_binding_check on V2). Review comments otherwise addressed and reviews noted.

Changelog v1..v2:
- Reordered patches to group ASoC changes
- Corrected PLL_AUDIO clock dividers to match values from manual and vendor SDK.
- Remove PLL_AUDIO_4X clock from the device tree binding (not used in the driver).
- Restrict TX-only DMA changes to the H616.
- Change the codec name to fit into the 16 char limit.
- Move the codec (and spdif) blocks in the H616 DTSI to restore address-order.
- Add board enablement (and power/GPIO changes for RG35XX to support speaker amp).

Changelog v2..v3:
- Update clock driver patch commit message and inline comments to more accurately describe SDM changes.
- Fix missing "-" in H616 conditional binding as reported by dt_binding_check
- Add additional clarification of internal playback_only quirk in sun4i-codec driver
- Add short driver_name to H616 codec driver and restore descriptive name.
- Remove leading 0 from codec node's address in H616 device tree to match other blocks.

Original blurb below:

Hi,

The Allwinner H616 has a playback-only audio codec, with a single stereo or differential-mono line output.

This patch adds support for the H616 (and H313/H618/H700/T507) SoC. Based on the Allwinner kernel SDK driver, and tested on the H700.

Regards,

Ryan

Marcus Cooper (2):
ASoC: sun4i-codec: Add support for different DAC FIFOC addresses to
quirks
ASoC: sun4i-codec: Add playback only flag to quirks

Ryan Walklin (5):
clk: sunxi-ng: h616: Add sigma-delta modulation settings for audio PLL
dt-bindings: allwinner: add H616 sun4i audio codec binding
ASoC: sun4i-codec: support allwinner H616 codec
arm64: dts: allwinner: h616: Add audio codec node
arm64: dts: allwinner: h313/h616/h618/h700: Enable audio codec for all
supported boards

 .../sound/allwinner,sun4i-a10-codec.yaml      |  53 +++-
 .../dts/allwinner/sun50i-h313-tanix-tx1.dts   |   5 +
 .../allwinner/sun50i-h616-orangepi-zero.dtsi  |   5 +
 .../dts/allwinner/sun50i-h616-x96-mate.dts    |   5 +
 .../arm64/boot/dts/allwinner/sun50i-h616.dtsi |  44 ++-
 .../allwinner/sun50i-h618-orangepi-zero2w.dts |   5 +
 .../sun50i-h618-transpeed-8k618-t.dts         |   5 +
 .../sun50i-h700-anbernic-rg35xx-2024.dts      |  13 +-
 drivers/clk/sunxi-ng/ccu-sun50i-h616.c        |  46 ++-
 sound/soc/sunxi/sun4i-codec.c                 | 298 +++++++++++++++---
 10 files changed, 404 insertions(+), 75 deletions(-)
Signature · 1 line
2.47.0