Skip to content

Commit 83a4a5a

Browse files
andrisasdtor
authored andcommitted
Input: imagis - add support for imagis IST3038H
Add support for imagis IST3038H, which seems mostly compatible with IST3038C except that it reports a different chip ID value. Tested on samsung,j5y17lte. Signed-off-by: Andras Sebok <sebokandris2009@gmail.com> Link: https://lore.kernel.org/r/20250224090354.102903-2-sebokandris2009@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent f5be37c commit 83a4a5a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/input/touchscreen/imagis.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#define IST3032C_WHOAMI 0x32c
2424
#define IST3038C_WHOAMI 0x38c
25+
#define IST3038H_WHOAMI 0x38d
2526

2627
#define IST3038B_REG_CHIPID 0x30
2728
#define IST3038B_WHOAMI 0x30380b
@@ -428,11 +429,19 @@ static const struct imagis_properties imagis_3038c_data = {
428429
.protocol_b = true,
429430
};
430431

432+
static const struct imagis_properties imagis_3038h_data = {
433+
.interrupt_msg_cmd = IST3038C_REG_INTR_MESSAGE,
434+
.touch_coord_cmd = IST3038C_REG_TOUCH_COORD,
435+
.whoami_cmd = IST3038C_REG_CHIPID,
436+
.whoami_val = IST3038H_WHOAMI,
437+
};
438+
431439
static const struct of_device_id imagis_of_match[] = {
432440
{ .compatible = "imagis,ist3032c", .data = &imagis_3032c_data },
433441
{ .compatible = "imagis,ist3038", .data = &imagis_3038_data },
434442
{ .compatible = "imagis,ist3038b", .data = &imagis_3038b_data },
435443
{ .compatible = "imagis,ist3038c", .data = &imagis_3038c_data },
444+
{ .compatible = "imagis,ist3038h", .data = &imagis_3038h_data },
436445
{ },
437446
};
438447
MODULE_DEVICE_TABLE(of, imagis_of_match);

0 commit comments

Comments
 (0)