HID: i2c-hid: elan: Add ili9882t timing
authorCong Yang <yangcong5@huaqin.corp-partner.google.com>
Wed, 2 Aug 2023 07:19:47 +0000 (15:19 +0800)
committerBenjamin Tissoires <bentiss@kernel.org>
Mon, 21 Aug 2023 15:21:43 +0000 (17:21 +0200)
commitf2f43bf15d7aa3286eced18d5199ee579e2c2614
treea2e71dc6548a4bc7069a96b6ffa942af73b5fef0
parent7d3b0d9ebddd90e5d541d8d2d81027581758548b
HID: i2c-hid: elan: Add ili9882t timing

The ili9882t is a TDDI IC (Touch with Display Driver). The
datasheet specifies there should be 60ms between touch SDA
sleep and panel RESX. Doug's series[1] allows panels and
touchscreens to power on/off together, so we can add the 65 ms
delay in i2c_hid_core_suspend before panel_unprepare.

Because ili9882t touchscrgeen is a panel follower, and
needs to use vccio-supply instead of vcc33-supply, so set
it NULL to ili9882t_chip_data, then not use vcc33 regulator.

[1]: https://lore.kernel.org/all/20230727171750.633410-1-dianders@chromium.org

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Cong Yang <yangcong5@huaqin.corp-partner.google.com>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20230802071947.1683318-3-yangcong5@huaqin.corp-partner.google.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/i2c-hid/i2c-hid-of-elan.c