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
@@ -363,6 +365,13 @@ static int imagis_resume(struct device *dev)
363
365
364
366
static DEFINE_SIMPLE_DEV_PM_OPS (imagis_pm_ops , imagis_suspend , imagis_resume ) ;
365
367
368
+ static const struct imagis_properties imagis_3032c_data = {
369
+ .interrupt_msg_cmd = IST3038C_REG_INTR_MESSAGE ,
370
+ .touch_coord_cmd = IST3038C_REG_TOUCH_COORD ,
371
+ .whoami_cmd = IST3038C_REG_CHIPID ,
372
+ .whoami_val = IST3032C_WHOAMI ,
373
+ };
374
+
366
375
static const struct imagis_properties imagis_3038b_data = {
367
376
.interrupt_msg_cmd = IST3038B_REG_STATUS ,
368
377
.touch_coord_cmd = IST3038B_REG_STATUS ,
@@ -380,6 +389,7 @@ static const struct imagis_properties imagis_3038c_data = {
380
389
381
390
#ifdef CONFIG_OF
382
391
static const struct of_device_id imagis_of_match [] = {
392
+ { .compatible = "imagis,ist3032c" , .data = & imagis_3032c_data },
383
393
{ .compatible = "imagis,ist3038b" , .data = & imagis_3038b_data },
384
394
{ .compatible = "imagis,ist3038c" , .data = & imagis_3038c_data },
385
395
{ },
0 commit comments