AnsweredAssumed Answered

i.mx6 spi master mode,cs hold time is 80 us,too long

Question asked by da yuan on Oct 24, 2015
Latest reply on Mar 29, 2017 by Jonah Petri

I use i.mx6 spi as master to communicate with a slave device.,The code source is L3.0.35_4.1.0.

I change kenel code to use spidev driver followed by "How to enable spidev for all SPI (1-5) for MX6".

I can send and recv spi data from spi2 ,the spi clk is 10MHz.

But I found the cs hold time CS6 is 80 us.


The reg Sample Period Control Register (ECSPI1_PERIODREG) is 0x00.

I do not know why or what can I do to reduce the cs hold time?


struct spi_ioc_transfer tr = {

  .tx_buf = (unsigned long)writebuf,

  .rx_buf = (unsigned long)readbuf,

  .len = 256,

  .speed_hz  = 10000000,


  .bits_per_word = 32,

  .cs_change = 0,





  ret = (spi_fd, SPI_IOC_MESSAGE(1), &tr);