Input: cyttsp5 - add handling for vddio regulator
authorLin, Meng-Bo <linmengbo0689@protonmail.com>
Fri, 27 Oct 2023 22:56:33 +0000 (15:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 Oct 2023 23:20:38 +0000 (16:20 -0700)
commit2f06996d72df779a47852bcf059fc04a555fe342
treea7c80318b07e7fe07272eb5839edfee048b9a9cb
parentfade5a92931c241be5b7e185d946205cfdfcb26f
Input: cyttsp5 - add handling for vddio regulator

The Cypress touchscreen 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 cyttsp5
driver so that the regulator gets enabled when needed.

Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
Acked-by: Alistair Francis <alistair@alistair23.me>
Link: https://lore.kernel.org/r/20221117190507.87535-3-linmengbo0689@protonmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/cyttsp5.c