In continuation of my previous topic I gave updated the structure da850evm_spi_info in the file arch/arm/mach-davinchi/board-da850-evm.c like this:
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,
},
{ //this is what I added
.modalias = "spidev",
.mode = SPI_MODE_3,
.max_speed_hz = 27000000,
.bus_num = 1,
.chip_select = 3,
},
};
I also have added to the kernel configuration this:
- GPIO-based bitbanging SPI Master
- User mode SPI device driver support
- Infineon TLE62X0 (for power switching) - although I don't know what exactly it means
- Texas Instuments SoC SPI controller
But there is error with creation of device. Here is it:
spi_davinci spi_davinci.1: DMA: supported
spi_davinci spi_davinci.1: DMA: RX channel: 18, TX channel: 19, event queue: 0
m25p80 spi1.0: m25p64 (8192 Kbytes)
Creating 6 MTD partitions on "m25p80":
0x000000000000-0x000000010000 : "UBL"
0x000000010000-0x000000090000 : "U-Boot"
0x000000090000-0x0000000a0000 : "U-Boot-Env"
0x0000000a0000-0x000000320000 : "Kernel"
0x000000320000-0x000000720000 : "Filesystem"
0x0000007f0000-0x000000800000 : "MAC-Address"
Read MAC addr from SPI Flash: 00:08:ee:05:8d:42
spi_davinci spi_davinci.1: cs3 >= max 1
spi_davinci spi_davinci.1: can't create new device for spidev
spi_davinci spi_davinci.1: Controller at 0xfef0e000
I will be grateful for your advices to figure out this issue!