Tool/software: Linux
Hello Support,
I have a kernel driver that is trying to load firmware onto a DSP via the SPI bus. The DSP requires a 32 bit word length and when I configure the SPI device for 32 bit word length there seems to be no data sent to the DSP. switching the word length to 16 or 8 along with the data type sent to the spi_write command seems to work without an issue. Is there an example of using 32 bit word length mode? I am using the below configuration for the SPI device and the write command returns -22 when set to 32 bits per word. When set to 8 bits per word and 16 bits per word the SPI works correctly and was verified on the scope.
uint8_t tmp = { 0x01,0x02,0x03,0x04 }
spi->bits_per_word = 32;
spi->mode = SPI_MODE_3;
ret = spi_setup(spi);
ret = spi_write(spi, (uint32_t*)tmp, 1);
Thank You in advance,
George