[PATCH v2 1/1] Input: trackpoint - Add new TP JYT_NDT device variant id 7

From: Yuan Yao

Date: Fri Nov 13 2026 - 11:27:36 EST


The new trackpoint variant id 7 is found on Lenovo Thinkpad X14
Gen1 laptop(Product Name: 21XMA006CD), it belongs to JYT_NDT with
confirmation from Vishnu Sankar in Lenovo. now it's incorrectly
probed as Generic or Logitech PS/2 mouse.

Add the variant id 7 to match the TP_READ_ID command return
value, probe the device as trackpoint correctly.

BEFORE:
input: PS/2 Generic Mouse as /devices/platform/i8042/serio1/input/input63

AFTER:
psmouse serio1: trackpoint: JYT_NDT TrackPoint firmware: 0xa1, buttons: 3/3
input: TPPS/2 JYT_NDT TrackPoint as /devices/platform/i8042/serio1/input/input8

Signed-off-by: Yuan Yao <yaoyuan@xxxxxxxxxxxxxxxxx>
---
drivers/input/mouse/trackpoint.c | 2 ++
drivers/input/mouse/trackpoint.h | 1 +
2 files changed, 3 insertions(+)

diff --git a/drivers/input/mouse/trackpoint.c b/drivers/input/mouse/trackpoint.c
index 3bd8fdf56cd3..2dde8cc5cab1 100644
--- a/drivers/input/mouse/trackpoint.c
+++ b/drivers/input/mouse/trackpoint.c
@@ -25,6 +25,7 @@ static const char * const trackpoint_variants[] = {
[TP_VARIANT_NXP] = "NXP",
[TP_VARIANT_JYT_SYNAPTICS] = "JYT_Synaptics",
[TP_VARIANT_SYNAPTICS] = "Synaptics",
+ [TP_VARIANT_JYT_NDT] = "JYT_NDT"
};

/*
@@ -285,6 +286,7 @@ static int trackpoint_start_protocol(struct psmouse *psmouse,
case TP_VARIANT_ELAN:
case TP_VARIANT_NXP:
case TP_VARIANT_JYT_SYNAPTICS:
+ case TP_VARIANT_JYT_NDT:
case TP_VARIANT_SYNAPTICS:
if (variant_id)
*variant_id = param[0];
diff --git a/drivers/input/mouse/trackpoint.h b/drivers/input/mouse/trackpoint.h
index 3e03cdb39449..2aa76311e400 100644
--- a/drivers/input/mouse/trackpoint.h
+++ b/drivers/input/mouse/trackpoint.h
@@ -30,6 +30,7 @@
#define TP_VARIANT_NXP 0x04
#define TP_VARIANT_JYT_SYNAPTICS 0x05
#define TP_VARIANT_SYNAPTICS 0x06
+#define TP_VARIANT_JYT_NDT 0x07

/*
* Commands
--
2.56.0