|
22 | 22 |
|
23 | 23 | #define IST3032C_WHOAMI 0x32c
|
24 | 24 | #define IST3038C_WHOAMI 0x38c
|
| 25 | +#define IST3038H_WHOAMI 0x38d |
25 | 26 |
|
26 | 27 | #define IST3038B_REG_CHIPID 0x30
|
27 | 28 | #define IST3038B_WHOAMI 0x30380b
|
@@ -428,11 +429,19 @@ static const struct imagis_properties imagis_3038c_data = {
|
428 | 429 | .protocol_b = true,
|
429 | 430 | };
|
430 | 431 |
|
| 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 | + |
431 | 439 | static const struct of_device_id imagis_of_match[] = {
|
432 | 440 | { .compatible = "imagis,ist3032c", .data = &imagis_3032c_data },
|
433 | 441 | { .compatible = "imagis,ist3038", .data = &imagis_3038_data },
|
434 | 442 | { .compatible = "imagis,ist3038b", .data = &imagis_3038b_data },
|
435 | 443 | { .compatible = "imagis,ist3038c", .data = &imagis_3038c_data },
|
| 444 | + { .compatible = "imagis,ist3038h", .data = &imagis_3038h_data }, |
436 | 445 | { },
|
437 | 446 | };
|
438 | 447 | MODULE_DEVICE_TABLE(of, imagis_of_match);
|
|
0 commit comments