Skip to contentSkip to conversation

Input/trackpoint: Add new JYT_NDT device variant id 7

PATCH Applied Yuan Yao 2 participants 4 messages Nov 13

Subsystems (2)
lore
Share & tools
lore

Yuan Yao

author
#0 lore raw

v2 cover Input/trackpoint: Add new JYT_NDT device variant id 7

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.

I tested the sensitivity/middle button lock/rate/resolution setting, the trackpoint works well in daily usage and when resume form system sleeping, no issue is found in my last weeks usage.

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

The patch is rebased to 7.4-rc1.

Changes from v1:

1. Change to correct vendor name JYT_NDT, with many thanks to Dmitry Torokhov, Jingle Wu, Vishnu Sankar for helping on identify the real vendor of this device.

v1: https://lore.kernel.org/all/[email protected]/

Yuan Yao (1):
Input: trackpoint - Add new TP JYT_NDT device variant id 7

 drivers/input/mouse/trackpoint.c | 2 ++
 drivers/input/mouse/trackpoint.h | 1 +
 2 files changed, 3 insertions(+)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 --
2.56.0

author
#1 lore raw

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

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

---
 drivers/input/mouse/trackpoint.c | 2 ++
 drivers/input/mouse/trackpoint.h | 1 +
 2 files changed, 3 insertions(+)
drivers/input/mouse/trackpoint.c +2 -0
index 3bd8fdf56cd3..2dde8cc5cab1 100644
@@ -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];
drivers/input/mouse/trackpoint.h +1 -0
index 3e03cdb39449..2aa76311e400 100644
@@ -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
Signature · 1 line
2.56.0
maintainer Applied
#2 lore raw

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

Quoted 8 lines · Yuan Yao

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.

Quoted 8 lines

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

Applied, thank you.

Signature · 1 line
Dmitry
author
#3 lore raw

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

Quoted 12 lines · Dmitry Torokhov
Quoted 11 lines · Yuan Yao

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

Quoted 7 lines
Quoted 5 lines

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

Applied, thank you.

Thanks Dmitry.
And Thanks again to Jingle Wu 吳金國 and Vishnu Sankar!

Quoted 3 lines

--
Dmitry