Input: goodix - add regulators suppot
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 3 Apr 2019 22:20:26 +0000 (15:20 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Apr 2019 23:10:42 +0000 (16:10 -0700)
commitae97fb589648cd5558f1ceea317404a639307501
treebda65aa2969e515cce8a5ca9842ff06f7bfff23a
parentecdf3a965826d8d900a747f0650acb172191dc9b
Input: goodix - add regulators suppot

Goodix CTP controllers require AVDD28, VDDIO regulators for power-on
sequence.

The delay between these regualtor operations as per Power-on Timing
from datasheet[1] is 0 (T1 >= 0 usec).

So, enable and disable these regulators in proper order using normal
regulator functions without any delay in between.

[1] GT5663 Datasheet_English_20151106_Rev.01

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/touchscreen/goodix.txt
drivers/input/touchscreen/goodix.c