Part Number: AM3354
Other Parts Discussed in Thread: TSC2046
Hi,
I have the following environment: Custom board, which is basically a copy of BBB with tsc2046 attached to spi0.0 and Resistive touchscreen (1024x768) attached to the TSC2046. I use Processor SDK Linux 06_01_00_08.
I have the following problem:
TSC2046 driver is correctly initialized in the kernel. I see the activity on the SPI line & the GPIO_PENDOW IRQ on an oscilloscope, when I touch the display, but when I run weston-calibrator it does not recognize the taps on the "x" simbol from the touchscreen.
I can see the touchscreen is sending data from xxd /dev/input/touchscreen0. I also used evtest and I am getting correct output out of it:
root@am335x-evm:~# evtest /dev/input/touchscreen0
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "TSC2046 touchscreen"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 0
Min 0
Max 1023
Event code 1 (ABS_Y)
Value 0
Min 0
Max 767
Event code 24 (ABS_PRESSURE)
Value 0
Min 0
Max 1
Properties:
Testing ... (interrupt to exit)
Event: time 1554515124.851973, type 3 (EV_ABS), code 0 (ABS_X), value 1746
Event: time 1554515124.851973, type 3 (EV_ABS), code 1 (ABS_Y), value 1155
Event: time 1554515124.851973, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 1
Event: time 1554515124.851973, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1554515124.851973, -------------- SYN_REPORT ------------
Event: time 1554515124.930751, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 1554515124.930751, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1554515124.930751, -------------- SYN_REPORT ------------
Event: time 1554515126.281975, type 3 (EV_ABS), code 0 (ABS_X), value 1811
Event: time 1554515126.281975, type 3 (EV_ABS), code 1 (ABS_Y), value 2099
Event: time 1554515126.281975, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 1
Event: time 1554515126.281975, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1554515126.281975, -------------- SYN_REPORT ------------
Event: time 1554515126.302033, type 3 (EV_ABS), code 0 (ABS_X), value 1810
Event: time 1554515126.302033, type 3 (EV_ABS), code 1 (ABS_Y), value 2110
Event: time 1554515126.302033, -------------- SYN_REPORT ------------
Event: time 1554515126.321968, type 3 (EV_ABS), code 0 (ABS_X), value 1822
Event: time 1554515126.321968, type 3 (EV_ABS), code 1 (ABS_Y), value 2120
Event: time 1554515126.321968, -------------- SYN_REPORT ------------
Event: time 1554515126.341945, type 3 (EV_ABS), code 0 (ABS_X), value 1821
Event: time 1554515126.341945, type 3 (EV_ABS), code 1 (ABS_Y), value 2128
Event: time 1554515126.341945, -------------- SYN_REPORT ------------
Event: time 1554515126.361982, type 3 (EV_ABS), code 0 (ABS_X), value 1828
Event: time 1554515126.361982, type 3 (EV_ABS), code 1 (ABS_Y), value 2122
Event: time 1554515126.361982, -------------- SYN_REPORT ------------
However, weston-calibrator does not accept touch events on the resistive touchscreen display. Can anyone point me to what might be the problem?
Thanks and regards.