Skip to content

Commit 73cca71

Browse files
passgatdtor
authored andcommitted
Input: ti_am335x_tsc - set ADCREFM for X configuration
As reported by the STEPCONFIG[1-16] registered field descriptions of the TI reference manual, for the ADC "in single ended, SEL_INM_SWC_3_0 must be 1xxx". Unlike the Y and Z coordinates, this bit has not been set for the step configuration registers used to sample the X coordinate. Fixes: 1b8be32 ("Input: add support for TI Touchscreen controller") Signed-off-by: Dario Binacchi <dariobin@libero.it> Link: https://lore.kernel.org/r/20211212125358.14416-2-dariobin@libero.it Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 046612a commit 73cca71

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/input/touchscreen/ti_am335x_tsc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ static void titsc_step_config(struct titsc *ts_dev)
131131
u32 stepenable;
132132

133133
config = STEPCONFIG_MODE_HWSYNC |
134-
STEPCONFIG_AVG_16 | ts_dev->bit_xp;
134+
STEPCONFIG_AVG_16 | ts_dev->bit_xp |
135+
STEPCONFIG_INM_ADCREFM;
135136
switch (ts_dev->wires) {
136137
case 4:
137138
config |= STEPCONFIG_INP(ts_dev->inp_yp) | ts_dev->bit_xn;

0 commit comments

Comments
 (0)