Hi
I'm using custom board of OMAPl138 LCDK. i need to connect the SPI device with my board. I've expansion header for spi1 interface pins are
SPI1_CLK, SPI1_SIMO, SPI1_SOMI and SPI1_SCSn_0.
I enabled the following option in config files
CONFIG_SPI=y
CONFIG_SPI_BITBANG=y
CONFIG_SPI_DAVINCI=y
CONFIG_SPI_SPIDEV=y
and modification in board file board-omapl138-hawk.c
ret = da8xx_register_spi(1, da830evm_spi_info,ARRAY_SIZE(da830evm_spi_info));
static struct spi_board_info da830evm_spi_info[] = {
{
.modalias = "my_spi",
.platform_data = &my_spi_pd,
.max_speed_hz = 12000000,
.bus_num = 2,
.chip_select = 0,
.mode = SPI_MODE_0,
},
};
static struct fpc1080_platform_data my_spi_pd = {
.irq_gpio = GPIO_TO_PIN(2, 6),
.reset_gpio = GPIO_TO_PIN(2, 4),
};
and i didn't made any changes for pin mux for SPI and configured for GPIO pins as below
ret = davinci_cfg_reg_list(da850_spi1_gpio_pins);
static short da850_spi1_gpio_pins[] __initdata= {
DA850_GPIO2_4,
DA850_GPIO2_6,
-1
};
But i can't communicate with my SPI device what are steps i missed here? do i need to configure pin mux for SPI1 and let me know how to view the configured gpio and spi pins from file system kind of debug file system
sys/kernel/debug or is there any other way to find the configured pins ?
Thanks
Sangly kumar