Input: edt-ft5x06 - add support for iovcc-supply
authorStephan Gerhold <stephan@gerhold.net>
Wed, 2 Jun 2021 04:26:34 +0000 (21:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 Jun 2021 04:35:24 +0000 (21:35 -0700)
commitdf4c40f484191362976f46f655c88d4ea0b6d51f
treee91b6f57c6b24dc6695cb32436b87bc8192869ec
parent77191c8d6ccf2ef6d09a1a931419bd0595d046a1
Input: edt-ft5x06 - add support for iovcc-supply

At the moment, the edt-ft5x06 driver can control a single regulator
("vcc"). However, some FocalTech touch controllers have an additional
IOVCC pin that should be supplied with the digital I/O voltage.

The I/O voltage might be provided by another regulator that should also
be kept on. Otherwise, the touchscreen can randomly stop functioning if
the regulator is turned off because no other components still require it.

Implement (optional) support for also enabling an "iovcc-supply".
The datasheet specifies a delay of ~ 10us before enabling VDD/VCC
after IOVCC is enabled, so make sure to enable IOVCC first.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20210510193108.50178-2-stephan@gerhold.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/edt-ft5x06.c