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.

SPI Touch Screen Configuration

Other Parts Discussed in Thread: ADS7845, ADS7846

Hopefully this is a straight forward question.  We are trying to connect a touch screen to the C6-Integra board.  The touch screen device we are using is ADS7845, which the kernel has support for, with a patch.  The question is the how to configure the SPI port.

It looks like we would do something like what is done for the SPI flash device on the board (See below) in the board configuration file.  We think we understand how to setup the chip select, clock speed, and IRQ, but not sure what we would need for the .modalias and if it requires any .platform data.

Thanks,

Craig

 

struct spi_board_info __initdata ti816x_spi_slave_info[] = {

                {

                                .modalias              = "m25p80",

                                .platform_data    = &ti816x_spi_flash,

                                .irq                          = -1,

                                .max_speed_hz   = 75000000,

                                .bus_num              = 1,

                                .chip_select           = 0,

                },

};

 static void __init ti816x_spi_init(void)

{

                spi_register_board_info(ti816x_spi_slave_info,

                                                               ARRAY_SIZE(ti816x_spi_slave_info));

}

  • Hi Craig,

    Please refer omap3evm board file ("arch/arm/mach-omap2/board-omap3evm.c"). omap3evm uses "ads7846" on SPI.

    The 'modalias' name will be used to bind the driver with the device. So please check the ads7845 driver source file, the "name" field in the "struct spi_driver" would have it.

    Regards

    Mansoor