From: Valerio Setti <vsetti@baylibre.com>
To: jbrunet@baylibre.com, neil.armstrong@linaro.org,
khilman@baylibre.com, martin.blumenstingl@googlemail.com,
linux-amlogic@lists.infradead.org, linux-sound@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Valerio Setti <vsetti@baylibre.com>
Subject: [PATCH RFC 0/6] Add support for AUDIN driver in Amlogic GXBB
Date: Mon, 10 Feb 2025 16:01:23 +0100 [thread overview]
Message-ID: <20250210150129.40248-1-vsetti@baylibre.com> (raw)
This series adds support for audio input (AUDIN) on the Amlogic GXBB platform.
It starts with a HACK commit which is necessary to make AIU (audio output)
export its clocks. These clocks are necessary also for AUDIN, but they are
already owned and controlled by AIU. Therefore in order to avoid direct
dependencies between AIU and AUDIN drivers, we let AIU export its clocks.
This export is done through the clk-regmap interface which is not public yet,
so that's why the commit is marked as HACK.
The series then continues with adding dt-bindings, driver and DTS support
for AUDIN. As of now only I2S input is supported, because it's the only one
I could physically test in my setup, but other input sources (ex: SPDIF) are
also allowed according to the SOC's manual and can be added in the future.
This series was tested on an OdroidC2 board (Amlogic S905 SOC) with an
NXP SGTL5000 codec connected to its I2S input port. It was tested on tag
v6.14-rc1.
Valerio Setti (6):
ASoC: meson: [HACK] let AIU export its clocks through clk-regmap
ASoC: meson: audin: add audio input dt-bindings
ASoC: meson: add AUDIN driver
ASoC: meson: add support for AUDIN in gx-card
arm64: dts: meson-gx: add audin support
arm64: dts: meson-gx: enable audin on odroidc2 platform
.../bindings/sound/amlogic,audin.yaml | 104 +++++
arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 8 +
.../boot/dts/amlogic/meson-gxbb-odroidc2.dts | 9 +
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 39 +-
include/dt-bindings/sound/meson-aiu.h | 5 +
include/dt-bindings/sound/meson-audin.h | 10 +
sound/soc/meson/Kconfig | 6 +
sound/soc/meson/Makefile | 5 +
sound/soc/meson/aiu-clocks.c | 123 ++++++
sound/soc/meson/aiu-encoder-i2s.c | 119 +++---
sound/soc/meson/aiu.c | 22 +
sound/soc/meson/aiu.h | 10 +
sound/soc/meson/audin-decoder-i2s.c | 247 +++++++++++
sound/soc/meson/audin-toddr.c | 403 ++++++++++++++++++
sound/soc/meson/audin.c | 321 ++++++++++++++
sound/soc/meson/audin.h | 119 ++++++
sound/soc/meson/gx-card.c | 12 +-
17 files changed, 1509 insertions(+), 53 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/amlogic,audin.yaml
create mode 100644 include/dt-bindings/sound/meson-audin.h
create mode 100644 sound/soc/meson/aiu-clocks.c
create mode 100644 sound/soc/meson/audin-decoder-i2s.c
create mode 100644 sound/soc/meson/audin-toddr.c
create mode 100644 sound/soc/meson/audin.c
create mode 100644 sound/soc/meson/audin.h
--
2.39.5
next reply other threads:[~2025-02-10 15:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-10 15:01 Valerio Setti [this message]
2025-02-10 15:01 ` [PATCH RFC 1/6] ASoC: meson: [HACK] let AIU export its clocks through clk-regmap Valerio Setti
2025-02-10 15:01 ` [PATCH RFC 2/6] ASoC: meson: audin: add audio input dt-bindings Valerio Setti
2025-02-11 7:33 ` Krzysztof Kozlowski
2025-02-10 15:01 ` [PATCH RFC 3/6] ASoC: meson: add AUDIN driver Valerio Setti
2025-02-11 9:21 ` Jerome Brunet
2025-02-10 15:01 ` [PATCH RFC 4/6] ASoC: meson: add support for AUDIN in gx-card Valerio Setti
2025-02-10 15:01 ` [PATCH RFC 5/6] arm64: dts: meson-gx: add audin support Valerio Setti
2025-02-10 15:01 ` [PATCH RFC 6/6] arm64: dts: meson-gx: enable audin on odroidc2 platform Valerio Setti
2025-02-11 0:10 ` [PATCH RFC 0/6] Add support for AUDIN driver in Amlogic GXBB Rob Herring (Arm)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250210150129.40248-1-vsetti@baylibre.com \
--to=vsetti@baylibre.com \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=neil.armstrong@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox