]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ili210x - fix reset timing
authorMarek Vasut <marex@denx.de>
Wed, 18 May 2022 21:28:32 +0000 (14:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 May 2022 21:31:30 +0000 (14:31 -0700)
commit5e9b3c25c1b0f91788f279f90320187bfe54e222
tree5f90d3caf01a20f4ab6dcc845cbfb578475de5a5
parent7ebd933a47bfdd2dc8f55c39a391a10131afe5d3
Input: ili210x - fix reset timing

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: 1c2003ecc6373 ("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>
drivers/input/touchscreen/ili210x.c