Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

input/touchscreen: imagis: add support for IST3032C

IST3032C is a touchscreen chip used for instance in the
samsung,coreprimevelte smartphone, with which this was tested. Add the
chip specific information to the driver.

Reviewed-by: Markuss Broks <markuss.broks@gmail.com>
Signed-off-by: Karel Balej <balejk@matfyz.cz>
Link: https://lore.kernel.org/r/20240301164659.13240-6-karelb@gimli.ms.mff.cuni.cz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Karel Balej and committed by
Dmitry Torokhov
90cb57a6 d88f84bf

+10
+10
drivers/input/touchscreen/imagis.c
··· 11 11 #include <linux/property.h> 12 12 #include <linux/regulator/consumer.h> 13 13 14 + #define IST3032C_WHOAMI 0x32c 15 + 14 16 #define IST3038B_REG_STATUS 0x20 15 17 #define IST3038B_REG_CHIPID 0x30 16 18 #define IST3038B_WHOAMI 0x30380b ··· 365 363 366 364 static DEFINE_SIMPLE_DEV_PM_OPS(imagis_pm_ops, imagis_suspend, imagis_resume); 367 365 366 + static const struct imagis_properties imagis_3032c_data = { 367 + .interrupt_msg_cmd = IST3038C_REG_INTR_MESSAGE, 368 + .touch_coord_cmd = IST3038C_REG_TOUCH_COORD, 369 + .whoami_cmd = IST3038C_REG_CHIPID, 370 + .whoami_val = IST3032C_WHOAMI, 371 + }; 372 + 368 373 static const struct imagis_properties imagis_3038b_data = { 369 374 .interrupt_msg_cmd = IST3038B_REG_STATUS, 370 375 .touch_coord_cmd = IST3038B_REG_STATUS, ··· 389 380 390 381 #ifdef CONFIG_OF 391 382 static const struct of_device_id imagis_of_match[] = { 383 + { .compatible = "imagis,ist3032c", .data = &imagis_3032c_data }, 392 384 { .compatible = "imagis,ist3038b", .data = &imagis_3038b_data }, 393 385 { .compatible = "imagis,ist3038c", .data = &imagis_3038c_data }, 394 386 { },