Hi Sergey, On Fri, Jun 18, 2021 at 05:51:49PM +0300, Sergey Larin wrote: > @@ -176,7 +232,9 @@ static irqreturn_t stmpe_keypad_irq(int irq, void *dev) > u8 data = fifo[i]; > int row = (data & STMPE_KPC_DATA_ROW) >> 3; > int col = data & STMPE_KPC_DATA_COL; > - int code = MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); > + int code = variant->read_inverted ? > + MATRIX_SCAN_CODE(col, row, STMPE_KEYPAD_ROW_SHIFT) > + : MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); Do we really need to do this swap vs. simply arranging the keymap differently for 1801? Thanks. -- Dmitry