Dear All,
Now I develop on am437x with ti-linux 3.12.10. And need the four-wire resistive touch in our design.
I added the touch screen configure in device tree by the following code:
&tscadc { status = "okay"; tsc { ti,wires = <4>; ti,x-plate-resistance = <200>; ti,coordiante-readouts = <5>; ti,wire-config = <0x00 0x11 0x22 0x33>; ti,charge-delay = <400>; }; };
The driver(ti_am335x_tsc.c) and device registered fine, then I ran "ts_calibrate" to calibrate and ran "ts_test" command for testing.
root@am437x-evm ~# ts_test .............. 946687272.940749: 11 41 324 946687272.942632: 11 41 320 946687272.944515: 11 41 314 946687272.946398: 12 41 306 946687272.948281: 12 42 295 946687272.950453: 18 459 0 # INCORRECT coordinate .............. 946687451.347583: 34 52 311 946687451.349466: 34 52 308 946687451.351349: 33 52 305 946687451.353232: 32 52 301 946687451.355116: 31 52 297 946687451.356999: 31 52 294 946687451.358883: 30 52 282 946687451.360767: 31 53 271 946687451.362938: 309 282 0 # INCORRECT coordinate .............. 946687574.954707: 13 29 279 946687574.956591: 13 28 274 946687574.958475: 13 28 272 946687574.960359: 13 28 265 946687574.962517: 13 28 0 # CORRECT coordinate ............... 946687575.848747: 11 31 296 946687575.850630: 11 31 289 946687575.852513: 11 31 276 946687575.854671: 11 31 0 # CORRECT coordinate ............... 946687576.396289: 7 30 300 946687576.398173: 8 30 291 946687576.400057: 8 31 288 946687576.403823: 14 48 251 946687576.403823: 14 48 251 946687576.405994: 49 452 0 # INCORRECT coordinate
As the above info, some times I couldn't get the correct coordinate when I released the touch but some times I got.
I had checked the driver(ti_am335x_tsc.c) but can not find any problem, and this touchscreen works OK on our am335x board (with Linux 3.2.0).
Can anyone provide some helps? All advices would be appreciated.
Warm Regards,
Kinly