lategoodbye / rpi-zero

Linux kernel source tree
Other
22 stars 3 forks source link

Measure and fix poll rate of raspberrypi-ts #45

Closed lategoodbye closed 10 months ago

lategoodbye commented 4 years ago

Recent issue in downstream shows a timing issue in polling behavior. As far i can see, this issue still persists in upstream, but the solution might be different.

lategoodbye commented 4 years ago

@vianpl Could you please give me some hints to test the raspberrypi-ts (especially to wiring and devicetree)?

vianpl commented 4 years ago

Hi @lategoodbye!

As far as raspberrypi-ts.c is concerned you can't do much to fix this issue. The firmware mandates the polling rate and that's the faster it'll ever be. IIRC the kernel driver uses the same polling frequency as the one downstream. Which, I assume, is adapted to the firmware's polling speed. To test it just connect the ribbon cable, power and ground then follow Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.txt.

If you want to use the I2C0 bus directly with upstream, bypassing the firmware, then you theoretically could get faster speeds. No need to change the wiring, though there are several issues:

lategoodbye commented 2 years ago

It seems that there is still an issue with the polling rate.

lategoodbye commented 10 months ago

Close this, because the non-firmware driver edt-ft5x06 is the right way tm