[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250210150129.40248-7-vsetti@baylibre.com>
Date: Mon, 10 Feb 2025 16:01:29 +0100
From: Valerio Setti <vsetti@...libre.com>
To: jbrunet@...libre.com,
neil.armstrong@...aro.org,
khilman@...libre.com,
martin.blumenstingl@...glemail.com,
linux-amlogic@...ts.infradead.org,
linux-sound@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Valerio Setti <vsetti@...libre.com>
Subject: [PATCH RFC 6/6] arm64: dts: meson-gx: enable audin on odroidc2 platform
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@...libre.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
Powered by blists - more mailing lists