omap osk and mistral touchscreen-ads7846
Hello,
i have enabled the SPI and ADS7846 drivers during kernel (2.6.18) compilation. i could see in the kernel boot log that they are also initialized.
//////////////////////////////////////////////////////////////////////// ads7846 spi2.0: touchscreen + hwmon, irq 164
input: ADS784x Touchscreen as /class/input/input1 ///////////////////////////////////////////////////////////////////////// but could someone tell me what should i do next to calibrate my touchscreen?
i even tried compiling tslib and added the executables to the file system. But when i run the executable /usr/X11/bin/ts_calibrate
i see no response on the LCD. the system just hangs.'
thanx and regards,
Shareef
Quoted 16 lines · mohammed shareef
Hello,
i have enabled the SPI and ADS7846 drivers during kernel (2.6.18) compilation. i could see in the kernel boot log that they are also initialized.
//////////////////////////////////////////////////////////////////////// ads7846 spi2.0: touchscreen + hwmon, irq 164
input: ADS784x Touchscreen as /class/input/input1 ///////////////////////////////////////////////////////////////////////// but could someone tell me what should i do next to calibrate my touchscreen?i even tried compiling tslib and added the executables to the file system. But when i run the executable
/usr/X11/bin/ts_calibrate
Quoted 9 lines
i see no response on the LCD. the system just hangs.'
thanx and regards,
Shareef
_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source
Hi Shareef,
Touch the screen several times and do a cat /proc/interrupts to check whether the interrupts are coming.
Or you can enable event device debugging in menuconfig and see the debug messages.
Regards,
Arun C
hi arun/all,
when i do cat for interrupts i get:
# cat /proc/interrupts
CPU0
19: 0 MPU DMA
20: 0 MPU DMA
21: 0 MPU DMA
22: 0 MPU DMA
23: 0 MPU DMA
24: 0 MPU DMA
25: 9834 MPU LCD DMA
31: 3 MPU lcdc
33: 1 MPU omap-keypad
36: 313 MPU i2c_omap
46: 148 MPU serial
54: 19893 MPU 32KHz timer
78: 0 MPU peripheral wakeup
85: 0 MPU DMA
86: 0 MPU DMA
87: 0 MPU DMA
88: 0 MPU DMA
89: 0 MPU DMA
90: 0 MPU DMA
91: 0 MPU DMA
92: 0 MPU DMA
93: 0 MPU DMA
94: 0 MPU DMA
160: 1409 GPIO eth0
164: 24 GPIO spi2.0
178: 0 GPIO serial wakeup
197: 0 GPIO serial wakeup
209: 19773 GPIO serial wakeup
222: 0 GPIO omap_cf
353: 0 MPUIO tps65010
354: 0 MPUIO mistral_wakeup
Err: 0looks like am not getting the touchscreen interrupts.
i havent even calibrated my touchscreen. but i have enabled the SPI interface and the ADS7846 touchscreen in the kernel. could you tell me how to calibrate it or make it work? i guess i am missing out on some files like i have nothing like ts_calibrate in my filesystem.
thank you,
regards,
Shareef
Quoted 38 lines · arun c
Quoted 16 lines · mohammed shareef
Hello,
i have enabled the SPI and ADS7846 drivers during kernel (2.6.18) compilation. i could see in the kernel boot log that they are also initialized.
//////////////////////////////////////////////////////////////////////// ads7846 spi2.0: touchscreen + hwmon, irq 164
input: ADS784x Touchscreen as /class/input/input1 ///////////////////////////////////////////////////////////////////////// but could someone tell me what should i do next to calibrate my touchscreen?i even tried compiling tslib and added the executables to the file system. But when i run the executable
/usr/X11/bin/ts_calibrateQuoted 9 lines
i see no response on the LCD. the system just hangs.'
thanx and regards,
Shareef
_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-sourceHi Shareef,
Touch the screen several times and do a cat
/proc/interruptsto check whether the interrupts are coming.Or you can enable event device debugging in menuconfig and see the debug messages.
Regards,
Arun C
Quoted 23 lines · mohammed shareef
hi arun/all,
when i do cat for interrupts i get:
# cat /proc/interrupts CPU0 19: 0 MPU DMA 20: 0 MPU DMA 21: 0 MPU DMA 22: 0 MPU DMA 23: 0 MPU DMA 24: 0 MPU DMA 25: 9834 MPU LCD DMA 31: 3 MPU lcdc 33: 1 MPU omap-keypad 36: 313 MPU i2c_omap 46: 148 MPU serial 54: 19893 MPU 32KHz timer 78: 0 MPU peripheral wakeup 85: 0 MPU DMA 86: 0 MPU DMA 87: 0 MPU DMA 88: 0 MPU DMA
Quoted 8 lines
89: 0 MPU DMA 90: 0 MPU DMA 91: 0 MPU DMA 92: 0 MPU DMA 93: 0 MPU DMA 94: 0 MPU DMA 160: 1409 GPIO eth0 164: 24 GPIO spi2.0
Here's your interrupt line (if I'm not wrong). This touchscreen is connected via spi. If you go to arch/arm/mach-omap1/board-osk.c you'll see a spi_board_info.
Just to be sure issue:
watch 'cat /proc/interrupts'
and keep touching the touchscreen. spi2.0 value should increase.
Signature · 5 lines
Best Regards, Felipe Balbi http://felipebalbi.com [email protected]
Quoted 39 lines · mohammed shareef
hi arun/all,
when i do cat for interrupts i get:
# cat /proc/interrupts CPU0 19: 0 MPU DMA 20: 0 MPU DMA 21: 0 MPU DMA 22: 0 MPU DMA 23: 0 MPU DMA 24: 0 MPU DMA 25: 9834 MPU LCD DMA 31: 3 MPU lcdc 33: 1 MPU omap-keypad 36: 313 MPU i2c_omap 46: 148 MPU serial 54: 19893 MPU 32KHz timer 78: 0 MPU peripheral wakeup 85: 0 MPU DMA 86: 0 MPU DMA 87: 0 MPU DMA 88: 0 MPU DMA 89: 0 MPU DMA 90: 0 MPU DMA 91: 0 MPU DMA 92: 0 MPU DMA 93: 0 MPU DMA 94: 0 MPU DMA 160: 1409 GPIO eth0 164: 24 GPIO spi2.0 178: 0 GPIO serial wakeup 197: 0 GPIO serial wakeup 209: 19773 GPIO serial wakeup 222: 0 GPIO omap_cf 353: 0 MPUIO tps65010 354: 0 MPUIO mistral_wakeup Err: 0
Quoted 7 lines
looks like am not getting the touchscreen interrupts.
i havent even calibrated my touchscreen. but i have enabled the SPI interface and the ADS7846 touchscreen in the kernel. could you tell me how to calibrate it or make it work? i guess i am missing out on some files like i have nothing like
ts_calibratein my filesystem.
See this link, i think it can help you.
http://linux.omap.com/pipermail/linux-omap-open-source/2005-March/003174.html
Regards,
Arun C
Hi,
fortunately looks like am getting interrupts when i touch the touchscreen. i can say this because the spi interrupts were incremented when i touched. here is the output:
# cat /proc/interrupts
CPU0
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
160: 2997 GPIO eth0
164: 0 GPIO spi2.0# cat /proc/interrupts
CPU0
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
160: 3030 GPIO eth0
164: 5 GPIO spi2.0we can observe that it has increased from 0 to 5.
do i need some executable files in my filesystem to calibrate it?
thanx and regards,
Shareef
Quoted 53 lines · arun c
Quoted 39 lines · mohammed shareef
hi arun/all,
when i do cat for interrupts i get:
# cat /proc/interrupts CPU0 19: 0 MPU DMA 20: 0 MPU DMA 21: 0 MPU DMA 22: 0 MPU DMA 23: 0 MPU DMA 24: 0 MPU DMA 25: 9834 MPU LCD DMA 31: 3 MPU lcdc 33: 1 MPU omap-keypad 36: 313 MPU i2c_omap 46: 148 MPU serial 54: 19893 MPU 32KHz timer 78: 0 MPU peripheral wakeup 85: 0 MPU DMA 86: 0 MPU DMA 87: 0 MPU DMA 88: 0 MPU DMA 89: 0 MPU DMA 90: 0 MPU DMA 91: 0 MPU DMA 92: 0 MPU DMA 93: 0 MPU DMA 94: 0 MPU DMA 160: 1409 GPIO eth0 164: 24 GPIO spi2.0 178: 0 GPIO serial wakeup 197: 0 GPIO serial wakeup 209: 19773 GPIO serial wakeup 222: 0 GPIO omap_cf 353: 0 MPUIO tps65010 354: 0 MPUIO mistral_wakeup Err: 0Quoted 7 lines
looks like am not getting the touchscreen interrupts.
i havent even calibrated my touchscreen. but i have enabled the SPI interface and the ADS7846 touchscreen in the kernel. could you tell me how to calibrate it or make it work? i guess i am missing out on some files like i have nothing like
ts_calibratein my filesystem.See this link, i think it can help you.
http://linux.omap.com/pipermail/linux-omap-open-source/2005-March/003174.htmlRegards,
Arun C
Hi,
i cross-compiled the tslib for my filesystem as mentioned in:
http://linux.omap.com/pipermail/linux-omap-open-source/2005-March/003174.html
and i have put the executables in the filesystem.
when i do/usr/X11/bin/ts_calibrate
i dont get any "calibration request" on the LCD.
But when i do:
cat /dev/input/event1
i could see that i get stuff on my host computer when i touch the screen. which means that my toucscreen is associated with event1. i have even set up the proper environment variables. but running ts_calibrate doesnt respond.
could someone tell me if am missing something?
thank you,
warm regards,
Shareef
Quoted 80 lines · mohammed shareef
Hi,
fortunately looks like am getting interrupts when i touch the touchscreen. i can say this because the spi interrupts were incremented when i touched. here is the output:
# cat /proc/interrupts CPU0 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 160: 2997 GPIO eth0 164: 0 GPIO spi2.0# cat /proc/interrupts CPU0 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 160: 3030 GPIO eth0 164: 5 GPIO spi2.0we can observe that it has increased from 0 to 5.
do i need some executable files in my filesystem to calibrate it?
thanx and regards,
ShareefQuoted 53 lines · arun c
Quoted 39 lines · mohammed shareef
hi arun/all,
when i do cat for interrupts i get:
# cat /proc/interrupts CPU0 19: 0 MPU DMA 20: 0 MPU DMA 21: 0 MPU DMA 22: 0 MPU DMA 23: 0 MPU DMA 24: 0 MPU DMA 25: 9834 MPU LCD DMA 31: 3 MPU lcdc 33: 1 MPU omap-keypad 36: 313 MPU i2c_omap 46: 148 MPU serial 54: 19893 MPU 32KHz timer 78: 0 MPU peripheral wakeup 85: 0 MPU DMA 86: 0 MPU DMA 87: 0 MPU DMA 88: 0 MPU DMA 89: 0 MPU DMA 90: 0 MPU DMA 91: 0 MPU DMA 92: 0 MPU DMA 93: 0 MPU DMA 94: 0 MPU DMA 160: 1409 GPIO eth0 164: 24 GPIO spi2.0 178: 0 GPIO serial wakeup 197: 0 GPIO serial wakeup 209: 19773 GPIO serial wakeup 222: 0 GPIO omap_cf 353: 0 MPUIO tps65010 354: 0 MPUIO mistral_wakeup Err: 0Quoted 7 lines
looks like am not getting the touchscreen interrupts.
i havent even calibrated my touchscreen. but i have enabled the SPI interface and the ADS7846 touchscreen in the kernel. could you tell me how to calibrate it or make it work? i guess i am missing out on some files like i have nothing like
ts_calibratein my filesystem.See this link, i think it can help you.
http://linux.omap.com/pipermail/linux-omap-open-source/2005-March/003174.htmlRegards,
Arun C