Skip to content

Commit 725da67

Browse files
chewittkhilman
authored andcommitted
arm64: dts: meson: add audio playback to odroid-c4
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Acked-by: Jerome Brunet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d57c69c commit 725da67

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "meson-sm1.dtsi"
99
#include <dt-bindings/gpio/meson-g12a-gpio.h>
1010
#include <dt-bindings/leds/common.h>
11+
#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
1112

1213
/ {
1314
compatible = "hardkernel,odroid-c4", "amlogic,sm1";
@@ -186,6 +187,69 @@
186187
};
187188
};
188189
};
190+
191+
sound {
192+
compatible = "amlogic,axg-sound-card";
193+
model = "SM1-ODROID-C4";
194+
audio-aux-devs = <&tdmout_b>;
195+
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
196+
"TDMOUT_B IN 1", "FRDDR_B OUT 1",
197+
"TDMOUT_B IN 2", "FRDDR_C OUT 1",
198+
"TDM_B Playback", "TDMOUT_B OUT";
199+
200+
assigned-clocks = <&clkc CLKID_MPLL2>,
201+
<&clkc CLKID_MPLL0>,
202+
<&clkc CLKID_MPLL1>;
203+
assigned-clock-parents = <0>, <0>, <0>;
204+
assigned-clock-rates = <294912000>,
205+
<270950400>,
206+
<393216000>;
207+
status = "okay";
208+
209+
dai-link-0 {
210+
sound-dai = <&frddr_a>;
211+
};
212+
213+
dai-link-1 {
214+
sound-dai = <&frddr_b>;
215+
};
216+
217+
dai-link-2 {
218+
sound-dai = <&frddr_c>;
219+
};
220+
221+
/* 8ch hdmi interface */
222+
dai-link-3 {
223+
sound-dai = <&tdmif_b>;
224+
dai-format = "i2s";
225+
dai-tdm-slot-tx-mask-0 = <1 1>;
226+
dai-tdm-slot-tx-mask-1 = <1 1>;
227+
dai-tdm-slot-tx-mask-2 = <1 1>;
228+
dai-tdm-slot-tx-mask-3 = <1 1>;
229+
mclk-fs = <256>;
230+
231+
codec {
232+
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
233+
};
234+
};
235+
236+
/* hdmi glue */
237+
dai-link-4 {
238+
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
239+
240+
codec {
241+
sound-dai = <&hdmi_tx>;
242+
};
243+
};
244+
};
245+
};
246+
247+
&arb {
248+
status = "okay";
249+
};
250+
251+
&clkc_audio {
252+
status = "okay";
189253
};
190254

191255
&cpu0 {
@@ -237,6 +301,18 @@
237301
amlogic,tx-delay-ns = <2>;
238302
};
239303

304+
&frddr_a {
305+
status = "okay";
306+
};
307+
308+
&frddr_b {
309+
status = "okay";
310+
};
311+
312+
&frddr_c {
313+
status = "okay";
314+
};
315+
240316
&gpio {
241317
gpio-line-names =
242318
/* GPIOZ */
@@ -381,6 +457,18 @@
381457
vqmmc-supply = <&flash_1v8>;
382458
};
383459

460+
&tdmif_b {
461+
status = "okay";
462+
};
463+
464+
&tdmout_b {
465+
status = "okay";
466+
};
467+
468+
&tohdmitx {
469+
status = "okay";
470+
};
471+
384472
&uart_AO {
385473
status = "okay";
386474
pinctrl-0 = <&uart_ao_a_pins>;

0 commit comments

Comments
 (0)