Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To address the issue of the I2S master clock not being generated on your Verdin iMX8M Plus, let’s explore a few key areas:
-
Device Tree Configuration: Ensure your device tree overlay is correctly setting up the I2S interface and master clock. The
assigned-clocks
andassigned-clock-parents
for thesai1
node appear to be set to useIMX8MP_AUDIO_PLL1_OUT
, which is correct. However, verify that theassigned-clock-rates
value of24576000
Hz is suitable for your application and matches the CS4234 codec’s requirements. -
Master Clock Output: The
fsl,sai-mclk-direction-output
property is set to output the master clock, which is correct. Double-check the physical connections to ensure the correct pin is used for the master clock output and that there are no hardware issues. -
Error Message in dmesg: The error
fsl-aud2htx 30cb0000.aud2htx: failed to pcm register
indicates a potential issue with the PCM interface registration. This might be due to a misconfiguration in the device tree or a missing driver. Ensure the CS4234 codec driver is loaded and compatible with your kernel version. -
Kernel and Driver Compatibility: Confirm that your kernel version supports the CS4234 codec and the I2S configuration. Sometimes, updating the kernel or applying specific patches may be necessary.
-
Clock Source and Routing: Verify that the clock source is correctly routed and enabled in the system. Check the clock tree configuration in the kernel to ensure the clock source is active and properly routed to the I2S interface.
-
Testing and Debugging: Use tools like
i2cdetect
to verify I2C communication with the codec. Additionally, check the ALSA configuration to ensure the audio interface is correctly set up.
I hope these steps help you resolve the issue. If you have further questions, feel free to ask.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
https://community.nxp.com/t5/i-MX-Processors/iMX8M-SAI-Master-Clock-quot-Skipping-quot/m-p/902615