I2S master does not generate master clock on verdin imx8m-plus

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


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:

  1. Device Tree Configuration: Ensure your device tree overlay is correctly setting up the I2S interface and master clock. The assigned-clocks and assigned-clock-parents for the sai1 node appear to be set to use IMX8MP_AUDIO_PLL1_OUT, which is correct. However, verify that the assigned-clock-rates value of 24576000 Hz is suitable for your application and matches the CS4234 codec’s requirements.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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

IMX8MP Verdin on Mallow carrier board.