Dear All,
I trying to enable montavista ads7846 touchscreen driver for Montavista linux (pro 5.0 demo) for OMAP L137.
I compiled kernel with following options in "menuconfig":
"Device Drivers/Input Device Support"
- "Mouse interface": disable
- "Touchscreen interface": enable *
- "Event interface": enable *
- "Touchscreens": enable *
-- "ADS 7846 based touchscreens" : enable *
(ADS7836 chip is compartible with TSC2046).
Also, I changed da8xx_spi_board_info1[] structure in my device specific spi driver "arch/arm/mash-da8xx/spi.c" :
static struct spi_board_info da8xx_spi_board_info1[] = {
[0] = {
.modalias = "tsc2046_ts",
.platform_data = &tsc2046IPWR_place_holder,
.controller_data = &tsc2046IPWR_spi_cfg,
.mode = SPI_MODE_0,
.irq = 0,
.max_speed_hz = 2 * 1000 * 1000 ,
.bus_num = 1,
.chip_select = 2,
},
};
I supposed that a new device should appear under /dev/input. But there is no neither new device, nor even /dev/input directory.
Though ads7846.c driver is registered in /sys/devices/platform/dm_spi.1/ :
root@192.168.0.4:~# cat /sys/devices/platform/dm_spi.1/spi1.2/modalias
tsc2046_ts.
So, please help me, how to include touchscreen device in /dev/input/ ?
thanks
Eugene Bogdanov