Skip to content

Commit 5672bd3

Browse files
Philipp Puschmanndtor
authored andcommitted
Input: edt-ft5x06 - add delay after waking up
The touch controller needs some time to wake-up after setting the wake-up gpio. Without having a delay after wake-up probing regularly fails in edt_ft5x06_ts_identify() with an error (i.e. EREMOTEIO) that was caused by a failed i2c transfer. The datasheet sets the wake-up time to 5 ms, although it is not entirely clear. Signed-off-by: Philipp Puschmann <p.puschmann@pironex.com> Link: https://lore.kernel.org/r/20230505115823.545803-1-p.puschmann@pironex.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 3c98b8d commit 5672bd3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/input/touchscreen/edt-ft5x06.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client)
12411241
if (tsdata->wake_gpio) {
12421242
usleep_range(5000, 6000);
12431243
gpiod_set_value_cansleep(tsdata->wake_gpio, 1);
1244+
usleep_range(5000, 6000);
12441245
}
12451246

12461247
if (tsdata->reset_gpio) {

0 commit comments

Comments
 (0)