OrangePi_CM5/drivers/input/touchscreen
Linus Walleij 6771609e19 Input: atmel_mxt_ts - fix up inverted RESET handler
[ Upstream commit feedaacdadfc332e1a6e436f3adfbc67e244db47 ]

This driver uses GPIO descriptors to drive the touchscreen RESET line. In
the existing device trees this has in conflict with intution been flagged
as GPIO_ACTIVE_HIGH and the driver then applies the reverse action by
driving the line low (setting to 0) to enter reset state and driving the
line high (setting to 1) to get out of reset state.

The correct way to handle active low GPIO lines is to provide the
GPIO_ACTIVE_LOW in the device tree (thus properly describing the hardware)
and letting the GPIO framework invert the assertion (driving high) to a
low level and vice versa.

This is considered a bug since the device trees are incorrectly
mis-specifying the line as active high.

Fix the driver and all device trees specifying a reset line.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Philippe Schenker <philippe.schenker@toradex.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201104153032.1387747-1-linus.walleij@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-21 15:15:32 +02:00
..
88pm860x-ts.c
…
Kconfig
…
Makefile
…
ad7877.c
…
ad7879-i2c.c
…
ad7879-spi.c
…
ad7879.c
…
ad7879.h
…
ads7846.c Input: ads7846 - fix unaligned access on 7845 2020-12-30 11:53:14 +01:00
ar1021_i2c.c
…
atmel_mxt_ts.c Input: atmel_mxt_ts - fix up inverted RESET handler 2022-08-21 15:15:32 +02:00
auo-pixcir-ts.c
…
bcm_iproc_tsc.c
…
bu21013_ts.c
…
bu21029_ts.c
…
chipone_icn8318.c
…
chipone_icn8505.c
…
colibri-vf50-ts.c
…
cy8ctma140.c
…
cy8ctmg110_ts.c
…
cyttsp4_core.c
…
cyttsp4_core.h
…
cyttsp4_i2c.c
…
cyttsp4_spi.c
…
cyttsp_core.c
…
cyttsp_core.h
…
cyttsp_i2c.c
…
cyttsp_i2c_common.c
…
cyttsp_spi.c
…
da9034-ts.c
…
da9052_tsi.c
…
dynapro.c
…
edt-ft5x06.c
…
eeti_ts.c
…
egalax_ts.c
…
egalax_ts_serial.c
…
ektf2127.c
…
elants_i2c.c Input: elants_i2c - do not check Remark ID on eKTH3900/eKTH5312 2021-12-29 12:26:06 +01:00
elo.c Input: elo - fix an error code in elo_connect() 2021-03-04 11:38:10 +01:00
exc3000.c
…
fsl-imx25-tcq.c
…
fujitsu_ts.c
…
goodix.c Input: goodix - add id->model mapping for the "9111" model 2021-12-29 12:26:06 +01:00
gunze.c
…
hampshire.c
…
hideep.c Input: hideep - fix the uninitialized use in hideep_nvm_unlock() 2021-07-20 16:05:44 +02:00
hp680_ts_input.c
…
htcpen.c
…
ili210x.c Input: ili210x - fix reset timing 2022-05-25 09:18:01 +02:00
imx6ul_tsc.c
…
inexio.c
…
ipaq-micro-ts.c
…
iqs5xx.c
…
jornada720_ts.c
…
lpc32xx_ts.c
…
mainstone-wm97xx.c
…
max11801_ts.c
…
mc13783_ts.c
…
mcs5000_ts.c
…
melfas_mip4.c
…
migor_ts.c
…
mk712.c
…
mms114.c
…
mtouch.c
…
mxs-lradc-ts.c
…
of_touchscreen.c Input: touchscreen - avoid bitwise vs logical OR warning 2021-12-22 09:30:58 +01:00
pcap_ts.c
…
penmount.c
…
pixcir_i2c_ts.c
…
raspberrypi-ts.c
…
raydium_i2c_ts.c Input: raydium_ts_i2c - do not send zero length 2021-03-04 11:38:23 +01:00
resistive-adc-touch.c
…
rohm_bu21023.c
…
s3c2410_ts.c
…
s6sy761.c Input: s6sy761 - fix coordinate read bit shift 2021-04-21 13:00:54 +02:00
silead.c Input: silead - add workaround for x86 BIOS-es which bring the chip up in a stuck state 2021-05-22 11:40:52 +02:00
sis_i2c.c
…
st1232.c
…
stmfts.c Input: stmfts - do not leave device disabled in stmfts_input_open 2022-06-09 10:21:18 +02:00
stmpe-ts.c
…
sun4i-ts.c
…
sur40.c Input: sur40 - fix an error code in sur40_probe() 2021-03-04 11:38:09 +01:00
surface3_spi.c
…
sx8654.c
…
ti_am335x_tsc.c
…
touchit213.c
…
touchright.c
…
touchwin.c
…
tps6507x-ts.c
…
ts4800-ts.c
…
tsc40.c
…
tsc200x-core.c
…
tsc200x-core.h
…
tsc2004.c
…
tsc2005.c
…
tsc2007.h
…
tsc2007_core.c
…
tsc2007_iio.c
…
ucb1400_ts.c
…
usbtouchscreen.c Input: usbtouchscreen - fix control-request directions 2021-07-14 16:55:37 +02:00
wacom_i2c.c
…
wacom_w8001.c
…
wdt87xx_i2c.c
…
wm97xx-core.c
…
wm831x-ts.c
…
wm9705.c
…
wm9712.c
…
wm9713.c
…
zet6223.c
…
zforce_ts.c
…
zinitix.c Input: zinitix - do not report shadow fingers 2022-04-08 14:39:48 +02:00
zylonite-wm97xx.c
…