Hi,
We're developing on the dm8168 platform along with the z3 board. We are also using the following ezsdk ti-ezsdk_dm816x-evm_5_03_01_15.
The problem we're having is that if the spi_board_info has two spi devices then only the first one works. I'm not sure how to get around this. My board file spi_board_info is bellow
struct spi_board_info __initdata spidev_board_info[] = {
// First line to add
{
.modalias = "spidev",
.platform_data = 0,
.controller_data = 0,
.irq = -1,
.max_speed_hz = 10000000,//90000,
//.max_speed_hz = 1000000,//75000000,
.bus_num = 1,
.chip_select = 0,
.mode = SPI_MODE_0,
},
{
.modalias = "mcp2515",
.platform_data = &mcp2515_pdata,
.controller_data = 0,
.irq = TI81XX_IRQ_GPIO_1B,
.max_speed_hz = 10000000,
.bus_num = 1,
.chip_select = 1,
.mode = SPI_MODE_0,
},
};
To make sure that the signals toggle i'm using echo 121234 > /dev/spidev1.0 and this seems to make the mosi signal change. But when i'm going to try to see if the second one makes the signals toggle it doesn't work. The way i'm doing this is by manually loading the mcp251x module with the modprobe call. In doing so the signals don't toggle, but if I comment out the first spi loading the module does make the mosi signals change.
Does anyone one if there's a way to get this to work?
Thanks,
Rodrigo