I’m trying to wire a touchscreen lcd to the BBB.
The lcd appears to be working great, biggest trouble I’m having is with touch.
Main problem I’m having, I load my device tree file that enables lcd/touch. I can cat
out /dev/input/touchscreen0 or /dev/input/event1 and see data when tapping the lcd, as expected. It gets weird when I run ts_calibrate. The results of ts_calibrate seem to vary with each try. Sometimes it might finish, most times it just freezes, sometimes the order of the touch corners will vary(appears to get false touch events).
It in the chance it seemed to finish, I run ts_test and it will work good for a few seconds and then freeze.
In all cases after I have problems with either ts_calibrate/ts_test, when I try to cat out /dev/input/touchscreen0/event1,
it appears dead(i’ve checked to ensure no ts* utils were still running). Data no longer is coming out. So its looking like the ts utils kills the touchscreen after a very short period of usage, a few seconds. By just catting out the device (before running any ts utils) I can tap the screen all day and see data coming out.
The only way to restore it, is reboot and reload the device tree.
I’m mapping the following pins for touch:
AIN0 - left
AIN1 - right
AIN2 - down
AIN3 - up
Its just pin to pin connections. I believe I had the same touchscreen working on BB, and earlier with the BBB on 3.2. And I thought I had everything working on the BBB 3.8 kernel, but i’m beginning to doubt my memory…
I’ve tried building kernel/rootfs with Angstrom, I’ve tried Robert Nelsons guide both debian/ubuntu, all
seems to show the same issue.
I’ve been going back and forth trying to determine if it is kernel, hardware (wiring), possibly device tree related, or some rootfs issue (ts utils problem).
I’m coping the device tree file I’ve pieced together below. Any suggestions would be greatly appreciated.
- Copyright © 2012 Texas Instruments Incorporated - http://www.ti.com/