Skip to content

Commit 832f54c

Browse files
joelselvarajdtor
authored andcommitted
Input: edt-ft5x06 - add support for FocalTech FT5452 and FT8719
The driver is compatible with FocalTech FT5452 and FT8719 touchscreens too. FT5452 supports up to 5 touch points. FT8719 supports up to 10 touch points. Add compatible data for both of them. Signed-off-by: Joel Selvaraj <[email protected]> Link: https://lore.kernel.org/r/20240521-add-support-ft5452-and-ft8719-touchscreen-v1-2-2a648ac7176b@gmail.com Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent fe96230 commit 832f54c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/input/touchscreen/edt-ft5x06.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,10 @@ static const struct edt_i2c_chip_data edt_ft5x06_data = {
14621462
.max_support_points = 5,
14631463
};
14641464

1465+
static const struct edt_i2c_chip_data edt_ft5452_data = {
1466+
.max_support_points = 5,
1467+
};
1468+
14651469
static const struct edt_i2c_chip_data edt_ft5506_data = {
14661470
.max_support_points = 10,
14671471
};
@@ -1470,12 +1474,18 @@ static const struct edt_i2c_chip_data edt_ft6236_data = {
14701474
.max_support_points = 2,
14711475
};
14721476

1477+
static const struct edt_i2c_chip_data edt_ft8719_data = {
1478+
.max_support_points = 10,
1479+
};
1480+
14731481
static const struct i2c_device_id edt_ft5x06_ts_id[] = {
14741482
{ .name = "edt-ft5x06", .driver_data = (long)&edt_ft5x06_data },
14751483
{ .name = "edt-ft5506", .driver_data = (long)&edt_ft5506_data },
14761484
{ .name = "ev-ft5726", .driver_data = (long)&edt_ft5506_data },
1485+
{ .name = "ft5452", .driver_data = (long)&edt_ft5452_data },
14771486
/* Note no edt- prefix for compatibility with the ft6236.c driver */
14781487
{ .name = "ft6236", .driver_data = (long)&edt_ft6236_data },
1488+
{ .name = "ft8719", .driver_data = (long)&edt_ft8719_data },
14791489
{ /* sentinel */ }
14801490
};
14811491
MODULE_DEVICE_TABLE(i2c, edt_ft5x06_ts_id);
@@ -1486,8 +1496,10 @@ static const struct of_device_id edt_ft5x06_of_match[] = {
14861496
{ .compatible = "edt,edt-ft5406", .data = &edt_ft5x06_data },
14871497
{ .compatible = "edt,edt-ft5506", .data = &edt_ft5506_data },
14881498
{ .compatible = "evervision,ev-ft5726", .data = &edt_ft5506_data },
1499+
{ .compatible = "focaltech,ft5452", .data = &edt_ft5452_data },
14891500
/* Note focaltech vendor prefix for compatibility with ft6236.c */
14901501
{ .compatible = "focaltech,ft6236", .data = &edt_ft6236_data },
1502+
{ .compatible = "focaltech,ft8719", .data = &edt_ft8719_data },
14911503
{ /* sentinel */ }
14921504
};
14931505
MODULE_DEVICE_TABLE(of, edt_ft5x06_of_match);

0 commit comments

Comments
 (0)