AnsweredAssumed Answered

SPI driver with two devices sharing the same CS

Question asked by domenicoc@cosmed.it on Feb 15, 2013
Latest reply on Feb 19, 2013 by domenicoc@cosmed.it

I'm developing on a AM1808 based board (w sdk 5.03.02.00) an I want to use the AD7682 shared with an LCD.

I modified the board configration file in this way in order to use the same CS with two devices:


static struct spi_board_info da850_k5_spi_info[] = {

[0] = {

.modalias = "ili934", /* spidev */

.mode           = SPI_MODE_0,

.max_speed_hz       = 5000000,

.bus_num        = 1,

.chip_select        = 2,

},

............................

............................

[3] = {

.modalias       = "hx8238",

.mode           = SPI_MODE_0,

.max_speed_hz       = 5000000,

.bus_num        = 1,

.chip_select        = 2,

}

}

The kernel start correctly but I have the following message: "spi_davinci spi_davinci.1: chipselect 2 already in use"

So I suppose that this is not the way to do it.Is it possible to have this features.

Thanks everyone in advance.

Outcomes