And finally I have got a time to setup TouchScreen for my Rpi2. And I shat say that it wasn't easy.
What I have had:
- 3.5" TFT LCD Touch Screen Module 320*480 RGB Display Board with logo of WaveShare SpotPear
I have found one article with tutorial http://www.circuitbasics.com/setup-lcd-touchscreen-raspberry-pi/. It uses common custom driver for Touch LCDs https://github.com/notro/fbtft/. But author of this article has different module with different controller.
But my module has XPT2046 controller and it requires slightly different setup command. Lets see those differences
$ sudo nano /etc/modules
$ sudo nano /boot/cmdline.txt
$ sudo nano /boot/config.txtwe use config.txt and device tree overlays because in actually firmware of Rpi2 no longer uses ads7846_device.
so with those changes LCD screen works fine. But touch interface still doesn’t work I will do more investigations later, when I will get more free time. but if you have had same problem but now fixed it, please put comment here with right solution.