Skip to content

Commit 5519cab

Browse files
Benjamin TissoiresJiri Kosina
authored andcommitted
HID: hid-multitouch: support for PixCir-based panels
Created a driver for PixCir based dual-touch panels, including the one in the Hanvon tablet. This is done in a code structure aimed at unifying support for several existing HID multitouch panels. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr> Signed-off-by: Stéphane Chatty <chatty@enac.fr> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 281054a commit 5519cab

5 files changed

Lines changed: 484 additions & 0 deletions

File tree

‎drivers/hid/Kconfig‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,15 @@ config HID_MONTEREY
285285
---help---
286286
Support for Monterey Genius KB29E.
287287

288+
config HID_MULTITOUCH
289+
tristate "HID Multitouch panels"
290+
depends on USB_HID
291+
---help---
292+
Generic support for HID multitouch panels.
293+
294+
Say Y here if you have one of the following devices:
295+
- PixCir touchscreen
296+
288297
config HID_NTRIG
289298
tristate "N-Trig touch screen"
290299
depends on USB_HID

‎drivers/hid/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ obj-$(CONFIG_HID_MAGICMOUSE) += hid-magicmouse.o
4646
obj-$(CONFIG_HID_MICROSOFT) += hid-microsoft.o
4747
obj-$(CONFIG_HID_MONTEREY) += hid-monterey.o
4848
obj-$(CONFIG_HID_MOSART) += hid-mosart.o
49+
obj-$(CONFIG_HID_MULTITOUCH) += hid-multitouch.o
4950
obj-$(CONFIG_HID_NTRIG) += hid-ntrig.o
5051
obj-$(CONFIG_HID_ORTEK) += hid-ortek.o
5152
obj-$(CONFIG_HID_PRODIKEYS) += hid-prodikeys.o

‎drivers/hid/hid-core.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,6 +1286,7 @@ static const struct hid_device_id hid_blacklist[] = {
12861286
{ HID_USB_DEVICE(USB_VENDOR_ID_BELKIN, USB_DEVICE_ID_FLIP_KVM) },
12871287
{ HID_USB_DEVICE(USB_VENDOR_ID_BTC, USB_DEVICE_ID_BTC_EMPREX_REMOTE) },
12881288
{ HID_USB_DEVICE(USB_VENDOR_ID_BTC, USB_DEVICE_ID_BTC_EMPREX_REMOTE_2) },
1289+
{ HID_USB_DEVICE(USB_VENDOR_ID_CANDO, USB_DEVICE_ID_CANDO_PIXCIR_MULTI_TOUCH) },
12891290
{ HID_USB_DEVICE(USB_VENDOR_ID_CANDO, USB_DEVICE_ID_CANDO_MULTI_TOUCH) },
12901291
{ HID_USB_DEVICE(USB_VENDOR_ID_CANDO, USB_DEVICE_ID_CANDO_MULTI_TOUCH_11_6) },
12911292
{ HID_USB_DEVICE(USB_VENDOR_ID_CANDO, USB_DEVICE_ID_CANDO_MULTI_TOUCH_15_6) },
@@ -1312,6 +1313,7 @@ static const struct hid_device_id hid_blacklist[] = {
13121313
{ HID_USB_DEVICE(USB_VENDOR_ID_GYRATION, USB_DEVICE_ID_GYRATION_REMOTE) },
13131314
{ HID_USB_DEVICE(USB_VENDOR_ID_GYRATION, USB_DEVICE_ID_GYRATION_REMOTE_2) },
13141315
{ HID_USB_DEVICE(USB_VENDOR_ID_GYRATION, USB_DEVICE_ID_GYRATION_REMOTE_3) },
1316+
{ HID_USB_DEVICE(USB_VENDOR_ID_HANVON, USB_DEVICE_ID_HANVON_MULTITOUCH) },
13151317
{ HID_USB_DEVICE(USB_VENDOR_ID_KENSINGTON, USB_DEVICE_ID_KS_SLIMBLADE) },
13161318
{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_ERGO_525V) },
13171319
{ HID_USB_DEVICE(USB_VENDOR_ID_LABTEC, USB_DEVICE_ID_LABTEC_WIRELESS_KEYBOARD) },

‎drivers/hid/hid-ids.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
#define USB_DEVICE_ID_BTC_EMPREX_REMOTE_2 0x5577
135135

136136
#define USB_VENDOR_ID_CANDO 0x2087
137+
#define USB_DEVICE_ID_CANDO_PIXCIR_MULTI_TOUCH 0x0703
137138
#define USB_DEVICE_ID_CANDO_MULTI_TOUCH 0x0a01
138139
#define USB_DEVICE_ID_CANDO_MULTI_TOUCH_11_6 0x0b03
139140
#define USB_DEVICE_ID_CANDO_MULTI_TOUCH_15_6 0x0f01
@@ -308,6 +309,9 @@
308309
#define USB_DEVICE_ID_HANWANG_TABLET_FIRST 0x5000
309310
#define USB_DEVICE_ID_HANWANG_TABLET_LAST 0x8fff
310311

312+
#define USB_VENDOR_ID_HANVON 0x20b3
313+
#define USB_DEVICE_ID_HANVON_MULTITOUCH 0x0a18
314+
311315
#define USB_VENDOR_ID_HAPP 0x078b
312316
#define USB_DEVICE_ID_UGCI_DRIVING 0x0010
313317
#define USB_DEVICE_ID_UGCI_FLYING 0x0020

0 commit comments

Comments
 (0)