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 6/6] arm64: dts: meson-gx: enable audin on odroidc2 platform
Date: Mon, 10 Feb 2025 16:01:29 +0100 [thread overview]
Message-ID: <20250210150129.40248-7-vsetti@baylibre.com> (raw)
In-Reply-To: <20250210150129.40248-1-vsetti@baylibre.com>
This commit adds the TODDR #0 module to the Odroid-C2 platform.
Note: this not enough to be able to start recording data. An addiditional
dai-link node should be added with a reference to the external codec
being used. For example here's what should be added when an NXP SGTL5000
is used:
dai-link-4 {
sound-dai = <&audin CPU_I2S_DECODER>;
dai-format = "i2s";
mclk-fs = <256>;
codec-0 {
sound-dai = <&sgtl5000>;
};
};
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
index 959bd8d77a82..a83373739019 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
@@ -10,6 +10,7 @@
#include "meson-gxbb.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/sound/meson-aiu.h>
+#include <dt-bindings/sound/meson-audin.h>
/ {
compatible = "hardkernel,odroid-c2", "amlogic,meson-gxbb";
@@ -210,6 +211,10 @@ codec-0 {
sound-dai = <&hdmi_tx>;
};
};
+
+ dai-link-3 {
+ sound-dai = <&audin CPU_AUDIN_TODDR_0>;
+ };
};
};
@@ -217,6 +222,10 @@ &aiu {
status = "okay";
};
+&audin {
+ status = "okay";
+};
+
&cec_AO {
status = "okay";
pinctrl-0 = <&ao_cec_pins>;
--
2.39.5
next prev parent 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 [PATCH RFC 0/6] Add support for AUDIN driver in Amlogic GXBB Valerio Setti
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 ` Valerio Setti [this message]
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-7-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