This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I can drive spi device on spi1.1 on omapl138

Other Parts Discussed in Thread: TLV0832

The dvsdk verison is 4.02.06

      I want to drive two spi slave devices on spi1 port, for example A device on cs0 and B device on cs1, the device A on cs0 work well, but the device on cs1 can not work, the cs1 is always inactive.  And when I put  the B device on cs0, it can work. while the A device on cs1 can not work. why?

    My mux config are as follows:

 MUX_CFG(DA850, SPI1_CS_0, 5, 4, 15, 1, false)
 MUX_CFG(DA850, SPI1_CS_1, 5, 0, 15, 1, false)
 MUX_CFG(DA850, SPI1_CLK, 5, 8, 15, 1, false)
 MUX_CFG(DA850, SPI1_SOMI, 5, 16, 15, 1, false)
 MUX_CFG(DA850, SPI1_SIMO, 5, 20, 15, 1, false)

and spi config is as follows:

struct spi_board_info da850_spi1_board_info[] = {
 [0] = {
  .modalias  = "tlv0832",
  .bus_num  = 1,
  .chip_select  = 0,
  .mode    = SPI_MODE_0,
  .max_speed_hz  = 25000000,
 },
 [1] = {
  .modalias  = "tlv0832",
  .bus_num  = 1,
  .chip_select  = 1,
  .mode    = SPI_MODE_0,
  .max_speed_hz  = 25000000,
 },
};

static struct davinci_spi_platform_data da850_spi1_pdata = {
 .version  = SPI_VERSION_2,
 .num_chipselect = 2,
 .wdelay  = 0,
 .odd_parity = 0,
 .parity_enable = 0,
 .wait_enable = 0,
 .timer_disable  = 0,
 .clk_internal = 1,
 .cs_hold = 1,
 .intr_level = 0,
 .poll_mode = 1,
 .use_dma = 0,
 .c2tdelay = 8,
 .t2cdelay = 8,
};