Hi Yuri,
The iMx6 is connected to the FPGA via an EIM bus, handshaking via the control and status EIM registers. (via the pins EIM_EB, EIM_LBA, EIM_OE and EIM_data lines)
The I2S connections between SGTL5000 and iMx6 are:
I2S_DIN to CODEC_AUD4TXD
I2S_DOUT to CODEC_AUD4RXD
I2S clock connections between SGTL5000 and iMx6,
I2S_LRCLK to CODEC_AUD4TXFS
I2S_SCLK to CODEC_AUD4TXC
I2C connections between SGTL5000 and iMx6,
CTRL_DATA to CODEC_I2C_SDA
CTRL_CLK to CODEC_I2C_SCL
DTRL_ADR0_CS to ARM_CODEC_SPI_CS
The plan of using the system, is to initiate BCLK at the start, and then read data from the ALSA driver, and store it in ping pong buffer, and then send it over to EIM FIFO, synchronously, and then loopback it out back to the speaker.
The
Best,
Abhijeet