Skip to content

Commit

Permalink
Input: edt-ft5x06 - adjust delays to conform datasheet
Browse files Browse the repository at this point in the history
The FT5x06 datasheet specifies a minimum reset width of 5ms and a
delay between deassertion of reset and start of reporting of 300ms.
Adjust the delays to conform to the datasheet.

With the original delays I sometimes experienced communication
timeouts when initializing the controller.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Lothar Waßmann authored and Dmitry Torokhov committed Mar 28, 2014
1 parent dac90dc commit c080846
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/touchscreen/edt-ft5x06.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ static int edt_ft5x06_ts_reset(struct i2c_client *client,
return error;
}

mdelay(5);
msleep(5);
gpio_set_value(tsdata->wake_pin, 1);
}
if (gpio_is_valid(tsdata->reset_pin)) {
Expand All @@ -650,9 +650,9 @@ static int edt_ft5x06_ts_reset(struct i2c_client *client,
return error;
}

mdelay(50);
msleep(5);
gpio_set_value(tsdata->reset_pin, 1);
mdelay(100);
msleep(300);
}

return 0;
Expand Down

0 comments on commit c080846

Please sign in to comment.