All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] HID: pulsar: add ATK A9 Mini+ and Compx 8K dongle support
@ 2026-12-01 14:24 Natalia Laskowska
  0 siblings, 0 replies; only message in thread
From: Natalia Laskowska @ 2026-12-01 14:24 UTC (permalink / raw)
  To: linux-input@vger.kernel.org
  Cc: Nikolas Koesling, Jiri Kosina, Benjamin Tissoires,
	linux-kernel@vger.kernel.org

Add the ATK A9 Mini+ (373b:128e) and the Compx 8K wireless dongle
(373b:1278) to the device table, using the ATK device type already
handled for the VXE R1 SE+ dongle (373b:1085). Both IDs share the
0x373b VID, which hid-ids.h already names after each brand for the
shared 0x3554 VID, so the dongle gets its own USB_VENDOR_ID_COMPX.

Both devices are protocol compatible with TYPE_ATK: the vendor interface
exposes report id 0x08 as a 16-byte input and a 16-byte output report on
usage page 0xff02, so they pass the report layout checks in
pulsar_probe() unchanged. The command framing matches as well: a 17-byte
request with report id 0x08 and the 0x04 battery query, checksummed so
that the first 16 bytes sum to 0x4d, and a reply that carries the level
in byte 6, the charging flag in byte 7 and the voltage in big-endian
bytes 8-9.

Tested with an A9 Mini+ over both its wired connection and the 8K
dongle: battery, charging state and voltage are reported correctly, and
the charging flag follows the cable.

Signed-off-by: Natalia Laskowska <nat@nekopon.pl>
Tested-by: Natalia Laskowska <nat@nekopon.pl>
---
 drivers/hid/Kconfig      | 3 ++-
 drivers/hid/hid-ids.h    | 4 ++++
 drivers/hid/hid-pulsar.c | 7 +++++++
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index d17d960ab..f1628ac48 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -1391,7 +1391,8 @@ config HID_PULSAR
 	  Provides battery level, voltage, and charging status
 	  monitoring via the power supply framework.
 
-	  Additional supported devices: Kysona M600, ATK VXE R1 SE+
+	  Additional supported devices: Kysona M600, ATK VXE R1 SE+,
+	  ATK A9 Mini+, Compx 8K wireless dongle
 
 config HID_WACOM
 	tristate "Wacom Intuos/Graphire tablet support (USB)"
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index c40d81841..8f2c1fbb6 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -265,6 +265,7 @@
 
 #define USB_VENDOR_ID_ATK_ALT		0x373B
 #define USB_DEVICE_ID_ATK_VXE_R1_SE_DONGLE	0x1085
+#define USB_DEVICE_ID_ATK_A9_MINI_WIRED	0x128e
 
 #define USB_VENDOR_ID_AUREAL		0x0755
 #define USB_DEVICE_ID_AUREAL_W01RN	0x2626
@@ -370,6 +371,9 @@
 #define USB_DEVICE_ID_CODEMERCS_IOW_FIRST	0x1500
 #define USB_DEVICE_ID_CODEMERCS_IOW_LAST	0x15ff
 
+#define USB_VENDOR_ID_COMPX		0x373b
+#define USB_DEVICE_ID_COMPX_8K_DONGLE	0x1278
+
 #define USB_VENDOR_ID_COOLER_MASTER	0x2516
 #define USB_DEVICE_ID_COOLER_MASTER_MICE_DONGLE	0x01b7
 
diff --git a/drivers/hid/hid-pulsar.c b/drivers/hid/hid-pulsar.c
index a1f0dcda9..d5814a394 100644
--- a/drivers/hid/hid-pulsar.c
+++ b/drivers/hid/hid-pulsar.c
@@ -12,6 +12,9 @@
  *		-M600
  *	- ATK
  *		- VXE R1 SE+
+ *		- A9 Mini+
+ *	- Compx
+ *		- 8K wireless dongle
  *	- VXE
  *		- Dragonfly R1 Pro
  *
@@ -744,6 +747,10 @@ static const struct hid_device_id pulsar_table[] = {
 	  .driver_data = TYPE_ATK },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ATK_ALT, USB_DEVICE_ID_ATK_VXE_R1_SE_DONGLE),
 	  .driver_data = TYPE_ATK },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_ATK_ALT, USB_DEVICE_ID_ATK_A9_MINI_WIRED),
+	  .driver_data = TYPE_ATK },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_COMPX, USB_DEVICE_ID_COMPX_8K_DONGLE),
+	  .driver_data = TYPE_ATK },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_VXE, USB_DEVICE_ID_VXE_DRAGONFLY_R1_PRO_DONGLE),
 	  .driver_data = TYPE_VXE },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_VXE, USB_DEVICE_ID_VXE_DRAGONFLY_R1_PRO_WIRED),
-- 
2.56.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 14:24 [PATCH] HID: pulsar: add ATK A9 Mini+ and Compx 8K dongle support Natalia Laskowska

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.