Skip to content

RFC Add support for DMA and audio codec of F1C100s

Mesih Kilinc alsa-devel dmaengine linux-arm-kernel linux-devicetree linux-sound linux-sunxi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10dma-engine: sun4i: Add a quirk to support different chipsdrivers/dma/sun4i-dma.c+106 -322 replies
2/10dma-engine: sun4i: Add has_reset option to quirkdrivers/dma/sun4i-dma.c+23 -00 replies
3/10dt-bindings: dmaengine: Add Allwinner suniv F1C100s DMADocumentation/devicetree/bindings/dma/sun4i-dma.txt+3 -11 reply
4/10dma-engine: sun4i: Add support for Allwinner suniv F1C100sdrivers/dma/Kconfig drivers/dma/sun4i-dma.c+62 -22 replies
5/10ARM: dts: suniv: f1c100s: Add support for DMAarch/arm/boot/dts/suniv-f1c100s.dtsi+11 -00 replies
6/10ASoC: sun4i-codec: Add DMA Max Burst fieldsound/soc/sunxi/sun4i-codec.c+11 -20 replies
7/10dt-bindigs: sound: Add Allwinner suniv F1C100s Audio CodecDocumentation/devicetree/bindings/sound/sun4i-codec.txt+5 -01 reply
8/10ASoC: sun4i-codec: Add support for Allwinner suniv F1C100ssound/soc/sunxi/sun4i-codec.c+358 -00 replies
9/10ARM: dts: suniv: f1c100s: Add support for Audio Codecarch/arm/boot/dts/suniv-f1c100s.dtsi+14 -00 replies
10/10ARM: dts: suniv: f1c100s: Activate Audio Codec for Lichee Pi Nanoarch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts+8 -00 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRob HerringConor Dooley
SeriesA-b
1/10
2/10
3/10R-b
4/10
5/10
6/10
7/10R-b
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/10] Add support for DMA and audio codec of F1C100s

This is RFC patchset for Allwinner suniv F1C100s to support DMA and audio codec.

Allwinner F1C100s has a audio codec that has necessary digital and analog parts. It has r-l headphone output and microphone, line, r-l FM inputs. ADC can capture any inputs and also output channels via mux. Any input channels or DAC samples can feed output channels.

Add support for this audio codec.

F1C100s utilizes DMA channels to send and receive ADC-DAC samples. So DMA support needed. Patch 1~5 adds support for DMA. Suniv F1C100s has very similar DMA to sun4i. But there is some dissimilarities also. Suniv features a DMA reset bit in clock control unit. It has smaller number of DMA channels. Several registers has different addresses. It's max burst size is 4 instead of 8. Also DMA endpoint numbers are different.

Patch 6 adds DMA max burst option to sun4i-codec.

Patch 7~8 Add support for suniv F1C100s audio codec.

Patch 9 adds audio codec to suniv-f1c100s.dtsi

Patch 10 adds audio codec support to Lichee Pi Nano board.

Thanks!

Mesih Kilinc (10):
dma-engine: sun4i: Add a quirk to support different chips
dma-engine: sun4i: Add has_reset option to quirk
dt-bindings: dmaengine: Add Allwinner suniv F1C100s DMA
dma-engine: sun4i: Add support for Allwinner suniv F1C100s
ARM: dts: suniv: f1c100s: Add support for DMA
ASoC: sun4i-codec: Add DMA Max Burst field
dt-bindigs: sound: Add Allwinner suniv F1C100s Audio Codec
ASoC: sun4i-codec: Add support for Allwinner suniv F1C100s
ARM: dts: suniv: f1c100s: Add support for Audio Codec
ARM: dts: suniv: f1c100s: Activate Audio Codec for Lichee Pi Nano

 .../devicetree/bindings/dma/sun4i-dma.txt          |   4 +-
 .../devicetree/bindings/sound/sun4i-codec.txt      |   5 +
 arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts  |   8 +
 arch/arm/boot/dts/suniv-f1c100s.dtsi               |  25 ++
 drivers/dma/Kconfig                                |   4 +-
 drivers/dma/sun4i-dma.c                            | 221 ++++++++++--
 sound/soc/sunxi/sun4i-codec.c                      | 371 ++++++++++++++++++++-
 7 files changed, 601 insertions(+), 37 deletions(-)
Signature · 1 line
2.7.4