AD5420 daisy chain is not working with IMX6

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

Did you like my answer?

:+1: :-1:


Based on the context provided, it seems you are experiencing issues with the SPI daisy chain configuration on an iMX6 module connected to AD5420 DAC chips. Here are a few pointers that might help you debug the issue:

  1. SPI Configuration: Ensure that the SPI configuration in your device tree is correct. The spi-cpha and spi-cpol properties are set, which is good, but double-check that these settings match the requirements of the AD5420.

  2. Chip Select Management: Since you are using a daisy chain without a common chip select, ensure that the data is being correctly passed from the first to the second chip. This typically involves ensuring that the first chip is configured to pass data through to the second chip.

  3. Data Transmission: Verify that the data being sent to the first chip is correct and that the chip is configured to forward the data to the next chip in the chain. You might need to refer to the AD5420 datasheet to ensure proper configuration for daisy chaining.

  4. Signal Integrity: Check the physical connections and signal integrity between the iMX6 and the AD5420 chips. Ensure that the SPI clock, MOSI, and MISO lines are clean and free from noise.

  5. Debugging: Use an oscilloscope or logic analyzer to monitor the SPI signals and ensure that the data is being transmitted as expected. This can help identify if the issue is with the data transmission or with the configuration of the chips.

  6. Driver Support: Ensure that the Linux kernel and SPI driver you are using support the daisy chain configuration you are attempting to implement.

If these suggestions do not resolve the issue, you may need to provide more specific details or consult with Toradex support for further assistance.

Please, also check if these links can help you solve your problem:

2 Devices on 1 SPI Port, CS0 problem.