My software engineer tried to e-mail the following reply (because the e-mail said we could simply reply), but I am guessing because it didn’t come from me, it just fell into the void?
Email follows:
Alex,
Here is the pinmux info. It is also of note that we had to turn around the MCLK & BCLK because the AK4619 will not derive them, they have to be sourced from the CPU.
We build our own kernel and device tree. The kernel is based on toradex_5.15-2.2.x-imx.
Our main device tree file is:
arch\arm64\boot\dts\freescale\imx8mp-verdin-dev-icvr.dts
It includes, in this order:
#include “imx8mp-verdin.dtsi”
#include “imx8mp-verdin-nonwifi.dtsi”
#include “imx8mp-verdin-dev.dtsi”
Those include files are unmodified from the toradex_5.15-2.2.x-imx version from Torizon.
Our DTS file includes the following pinmux settings:
&pinctrl_sai1 {
fsl,pins =
<MX8MP_IOMUXC_SAI1_MCLK__AUDIOMIX_SAI1_MCLK 0x96>, /* SODIMM 38 /
<MX8MP_IOMUXC_SAI1_RXD0__AUDIOMIX_SAI1_RX_DATA00 0x1d6>, / SODIMM 36 /
<MX8MP_IOMUXC_SAI5_MCLK__AUDIOMIX_SAI1_TX_BCLK 0x1d6>, / SODIMM 30 /
<MX8MP_IOMUXC_SAI5_RXD1__AUDIOMIX_SAI1_TX_SYNC 0x1d6>, / SODIMM 32 /
<MX8MP_IOMUXC_SAI5_RXFS__AUDIOMIX_SAI1_TX_DATA00 0x96>; / SODIMM 34 */
};
Here is the snippet with our AK4619 codec, including the clock source change,
sound_ak4619: sound-ak4619-1 {
compatible = "simple-audio-card";
simple-audio-card,bitclock-master = <&dailink_cpu>;
simple-audio-card,format = "i2s";
simple-audio-card,frame-master = <&dailink_cpu>;
simple-audio-card,mclk-fs = <256>;
simple-audio-card,name = "icvr-ak4619-0";
simple-audio-card,routing =
"Line Out", "AOUT1L",
"Line Out", "AOUT1R",
"Line Out", "AOUT2L",
"Line Out", "AOUT2R",
"AIN1L", "Line In",
"AIN1R", "Line In",
"AIN2L", "Line In",
"AIN2R", "Line In";
simple-audio-card,widgets =
"Line Out", "Line Out",
"Line", "Line In";
status = "okay";
dailink_master_cs0: simple-audio-card,codec {
sound-dai = <&spi1_1>;
clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI1_MCLK1>;
};
dailink_cpu: simple-audio-card,cpu {
sound-dai = <&sai1>;
};
};
We disabled status of the sound_ad1938 driver but left it present in the file.
Thanks,
David