Hi,
We are using the LogicPD AM1808 Dev Kit for a medical applicaltion.
We will use both SPI on the board to drive an graphical LCD and an ADS1298 ADC from TI also.
We was configuring the BSP (mux.h, mux.c, da850.c, board-da850-evm.c, ...) to enable the SPI0 chip (We got same help from
TI support and inspiration from the DA830 BSP):
static struct spi_board_info da850_spi_board_info[] = {
[0] = {
.modalias = "m25p80",
.platform_data = &spi_flash_data,
.mode = SPI_MODE_0,
.max_speed_hz = 1000000, /* max sample rate at 3V */
.bus_num = 1,
.chip_select = 0,
},
[1] = { // SPI0
.modalias = "spidev",
.mode = SPI_MODE_0,
.max_speed_hz = 1000000,
.bus_num = 0,
.chip_select = 0,
},
};
Actually the file /dev/spidev0.0 is created by mdev, but when we launch the spidev_test.c program (/TI Linux Source/Documentation/spi), we get:
spi mode: 0
bits per word: 8
max speed: 1000000 (1000 Khz)
and then the program hang up (not responding anyway to CTRL-C etc...) and we don't have any signal on the oscilloscope for SPI0_CLK or SPI0_MOSI
Could you please help us on this issue...