2020-02-20 20:58:21

by Martin Blumenstingl

[permalink] [raw]
Subject: [PATCH 0/3] ASoC: meson: aiu: add Meson8 SoC family support

This series adds support for the AIU audio controller found on the
32-bit Meson8 and Meson8b SoCs (both seem to use the same revision,
but for safety reasons we add two compatible strings).

The only known difference compared to the GX SoCs is the absence of
the I2S divider in the AIU_CLK_CTRL_MORE register. Instead we have
to use a less flexible divider.

I2S testing was done on an Odroid-C1+ with a PCM5102A stereo DAC
board connected (on the J7 header) like this:
Odroid-C1+ | DAC
------------------
pin #1 GND | GND
pin #3 5V | VIN
pin #4 MCLK | SCK (optional, DAC can operate without this)
pin #5 LRCK | LCK
pin #5 SCK | BCK
pin #5 DATA | DIN

In 3-wire I2S the MCLK <-> SCK connection can be omitted. For my tests
I used mclk-fs = <64> in this case.
In 4-wire I2S the MCLK <-> SCK connection is required. For my tests I
used mclk-fs = <256> in this case.


Martin Blumenstingl (3):
ASoC: meson: aiu: Document Meson8 and Meson8b support in the
dt-bindings
ASoC: meson: aiu: introduce a struct for platform specific information
ASoC: meson: aiu: add support for the Meson8 and Meson8b SoC families

.../bindings/sound/amlogic,aiu.yaml | 2 +
sound/soc/meson/Kconfig | 2 +-
sound/soc/meson/aiu-encoder-i2s.c | 92 ++++++++++++++-----
sound/soc/meson/aiu.c | 28 +++++-
sound/soc/meson/aiu.h | 6 ++
5 files changed, 104 insertions(+), 26 deletions(-)

--
2.25.1


2020-02-20 20:58:21

by Martin Blumenstingl

[permalink] [raw]
Subject: [PATCH 1/3] ASoC: meson: aiu: Document Meson8 and Meson8b support in the dt-bindings

The AIU audio output controller on the Meson8 and Meson8b SoC families
is compatible with the one found in the GXBB family. Document the
compatible string for these two older SoCs.

Signed-off-by: Martin Blumenstingl <[email protected]>
---
Documentation/devicetree/bindings/sound/amlogic,aiu.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml b/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml
index 3ef7632dcb59..a61bccf915d8 100644
--- a/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml
+++ b/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml
@@ -21,6 +21,8 @@ properties:
- enum:
- amlogic,aiu-gxbb
- amlogic,aiu-gxl
+ - amlogic,aiu-meson8
+ - amlogic,aiu-meson8b
- const:
amlogic,aiu

--
2.25.1

2020-02-21 10:41:44

by Jerome Brunet

[permalink] [raw]
Subject: Re: [PATCH 1/3] ASoC: meson: aiu: Document Meson8 and Meson8b support in the dt-bindings


On Thu 20 Feb 2020 at 21:57, Martin Blumenstingl <[email protected]> wrote:

> The AIU audio output controller on the Meson8 and Meson8b SoC families
> is compatible with the one found in the GXBB family. Document the
> compatible string for these two older SoCs.
>
> Signed-off-by: Martin Blumenstingl <[email protected]>

Reviewed-by: Jerome Brunet <[email protected]>

> ---
> Documentation/devicetree/bindings/sound/amlogic,aiu.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml b/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml
> index 3ef7632dcb59..a61bccf915d8 100644
> --- a/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml
> +++ b/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml
> @@ -21,6 +21,8 @@ properties:
> - enum:
> - amlogic,aiu-gxbb
> - amlogic,aiu-gxl
> + - amlogic,aiu-meson8
> + - amlogic,aiu-meson8b
> - const:
> amlogic,aiu