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.

AM1808 - extending spi1 support to another chip select

Other Parts Discussed in Thread: AM1808

Hi,

I'm facing with SPI interface on a AM1808 evm (w sdk_5.03.02.00).

On my initial board support file the spi is declared as follows

static struct spi_board_info da850evm_spi_info[] = {
 {
  .modalias  = "m25p80",
  .platform_data  = &da850evm_spiflash_data,
  .controller_data = &da850evm_spiflash_cfg,
  .mode   = SPI_MODE_0,
  .max_speed_hz  = 30000000,
  .bus_num  = 1,
  .chip_select  = 0,
 },
};

Now I would like to extend its use to a ad5231 device.
So I've declared support for a second device (that should use chip select SCS2):

static struct spi_board_info da850evm_spi_info[] = {
 {
  .modalias  = "m25p80",
  .platform_data  = &da850evm_spiflash_data,
  .controller_data = &da850evm_spiflash_cfg,
  .mode   = SPI_MODE_0,
  .max_speed_hz  = 30000000,
  .bus_num  = 1,
  .chip_select  = 0,
 },
 {
  .modalias  = "ad5231",
  .mode   = SPI_MODE_0,
  .max_speed_hz  = 5000000,
  .bus_num  = 1,
  .chip_select  = 2,
 },
};

Then, following http://wiki.analog.com/resources/tools-software/linux-drivers/misc/dpot
Under make menuconfig I've then enabled a driver support in the kernel for this family of devices by selecting

 Device Drivers->Misc Devices->Analog Devices Digital Potentiometers->Support SPI bus connection

Once recompiled and booted the kernel, I look in vain for spi1.2 in the filesystem!
I just only have

 ls /sys/devices/platform/spi_davinci.1/spi1.0
 
What do I have missed ?

Regards
Gabriele