Input: Add driver for PixArt PS/2 touchpad
authorBinbin Zhou <zhoubinbin@loongson.cn>
Tue, 23 Jul 2024 18:28:31 +0000 (11:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 24 Jul 2024 04:27:18 +0000 (21:27 -0700)
commit740ff03d7238214a318cdcfd96dec51832b053d2
treefbe81fadcffd8be1d0617185c8e56350b13d1df3
parent075d9b22c8feacd02f3ffdce918d34790a3ba9d1
Input: Add driver for PixArt PS/2 touchpad

This patch introduces a driver for the PixArt PS/2 touchpad, which
supports both clickpad and touchpad types.

At the same time, we extended the single data packet length to 16,
because according to the current PixArt hardware and FW design, we need
11 bytes/15 bytes to represent the complete three-finger/four-finger data.

Co-developed-by: Jon Xie <jon_xie@pixart.com>
Signed-off-by: Jon Xie <jon_xie@pixart.com>
Co-developed-by: Jay Lee <jay_lee@pixart.com>
Signed-off-by: Jay Lee <jay_lee@pixart.com>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://lore.kernel.org/r/20240704125243.3633569-1-zhoubinbin@loongson.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/Kconfig
drivers/input/mouse/Makefile
drivers/input/mouse/pixart_ps2.c [new file with mode: 0644]
drivers/input/mouse/pixart_ps2.h [new file with mode: 0644]
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/psmouse.h