]> git.baikalelectronics.ru Git - kernel.git/commit
Input: tm2-touchkey - add vddio regulator
authorStephan Gerhold <stephan@gerhold.net>
Thu, 10 Dec 2020 03:39:07 +0000 (19:39 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 10 Dec 2020 03:47:11 +0000 (19:47 -0800)
commit9f14cb4a9c3f6c93a277254c01bf01b68a770ffb
tree5b54829d3543d9c03433f3aa4995de6687c09544
parent2b67a2ea31b0461aae381cb52960817f457c25b4
Input: tm2-touchkey - add vddio regulator

The Samsung touchkey controllers are often used with external pull-up
for the interrupt line and the I2C lines, so we might need to enable
a regulator to bring the lines into usable state. Otherwise, this might
cause spurious interrupts and reading from I2C will fail.

Implement support for a "vddio-supply" that is enabled by the
tm2-touchkey driver so that the regulator gets enabled when needed.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20201203131242.44397-3-stephan@gerhold.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/tm2-touchkey.c