]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Input: ili210x - fix reset timing
authorMarek Vasut <marex@denx.de>
Wed, 18 May 2022 21:28:32 +0000 (14:28 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:22:45 +0000 (09:22 +0200)
commit6e4efa9a9f9b6689ada29b484213900f4766d6e7
treef879a5a3113d9c026b45e5093d957a00b911e889
parentefcb992177a936750d5e6e111ce4c2ba5da3c01d
Input: ili210x - fix reset timing

BugLink: https://bugs.launchpad.net/bugs/1981375
commit e4920d42ce0e9c8aafb7f64b6d9d4ae02161e51e upstream.

According to Ilitek "231x & ILI251x Programming Guide" Version: 2.30
"2.1. Power Sequence", "T4 Chip Reset and discharge time" is minimum
10ms and "T2 Chip initial time" is maximum 150ms. Adjust the reset
timings such that T4 is 12ms and T2 is 160ms to fit those figures.

This prevents sporadic touch controller start up failures when some
systems with at least ILI251x controller boot, without this patch
the systems sometimes fail to communicate with the touch controller.

Fixes: 201f3c803544c ("Input: ili210x - add reset GPIO support")
Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20220518204901.93534-1-marex@denx.de
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/input/touchscreen/ili210x.c