2 * Driver for Goodix Touchscreens
4 * Copyright (c) 2014 Red Hat Inc.
5 * Copyright (c) 2015 K. Merker <merker@debian.org>
7 * This code is based on gt9xx.c authored by andrew@goodix.com:
9 * 2010 - 2012 Goodix Technology.
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the Free
15 * Software Foundation; version 2 of the License.
18 #include <linux/kernel.h>
19 #include <linux/dmi.h>
20 #include <linux/firmware.h>
21 #include <linux/gpio/consumer.h>
22 #include <linux/i2c.h>
23 #include <linux/input.h>
24 #include <linux/input/mt.h>
25 #include <linux/module.h>
26 #include <linux/delay.h>
27 #include <linux/irq.h>
28 #include <linux/interrupt.h>
29 #include <linux/slab.h>
30 #include <linux/acpi.h>
32 #include <asm/unaligned.h>
34 struct goodix_ts_data {
35 struct i2c_client *client;
36 struct input_dev *input_dev;
42 unsigned int max_touch_num;
43 unsigned int int_trigger_type;
45 struct gpio_desc *gpiod_int;
46 struct gpio_desc *gpiod_rst;
50 struct completion firmware_loading_complete;
51 unsigned long irq_flags;
54 #define GOODIX_GPIO_INT_NAME "irq"
55 #define GOODIX_GPIO_RST_NAME "reset"
57 #define GOODIX_MAX_HEIGHT 4096
58 #define GOODIX_MAX_WIDTH 4096
59 #define GOODIX_INT_TRIGGER 1
60 #define GOODIX_CONTACT_SIZE 8
61 #define GOODIX_MAX_CONTACTS 10
63 #define GOODIX_CONFIG_MAX_LENGTH 240
64 #define GOODIX_CONFIG_911_LENGTH 186
65 #define GOODIX_CONFIG_967_LENGTH 228
67 /* Register defines */
68 #define GOODIX_REG_COMMAND 0x8040
69 #define GOODIX_CMD_SCREEN_OFF 0x05
71 #define GOODIX_READ_COOR_ADDR 0x814E
72 #define GOODIX_REG_CONFIG_DATA 0x8047
73 #define GOODIX_REG_ID 0x8140
75 #define GOODIX_BUFFER_STATUS_READY BIT(7)
76 #define GOODIX_BUFFER_STATUS_TIMEOUT 20
78 #define RESOLUTION_LOC 1
79 #define MAX_CONTACTS_LOC 5
82 static const unsigned long goodix_irq_flags[] = {
84 IRQ_TYPE_EDGE_FALLING,
90 * Those tablets have their coordinates origin at the bottom right
91 * of the tablet, as if rotated 180 degrees
93 static const struct dmi_system_id rotated_screen[] = {
94 #if defined(CONFIG_DMI) && defined(CONFIG_X86)
96 .ident = "Teclast X89",
98 /* tPAD is too generic, also match on bios date */
99 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
100 DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
101 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
105 .ident = "Teclast X98 Pro",
108 * Only match BIOS date, because the manufacturers
109 * BIOS does not report the board name at all
112 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
113 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
117 .ident = "WinBook TW100",
119 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
120 DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
124 .ident = "WinBook TW700",
126 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
127 DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
135 * goodix_i2c_read - read data from a register of the i2c slave device.
137 * @client: i2c device.
138 * @reg: the register to read from.
139 * @buf: raw write data buffer.
140 * @len: length of the buffer to write
142 static int goodix_i2c_read(struct i2c_client *client,
143 u16 reg, u8 *buf, int len)
145 struct i2c_msg msgs[2];
146 u16 wbuf = cpu_to_be16(reg);
150 msgs[0].addr = client->addr;
152 msgs[0].buf = (u8 *)&wbuf;
154 msgs[1].flags = I2C_M_RD;
155 msgs[1].addr = client->addr;
159 ret = i2c_transfer(client->adapter, msgs, 2);
160 return ret < 0 ? ret : (ret != ARRAY_SIZE(msgs) ? -EIO : 0);
164 * goodix_i2c_write - write data to a register of the i2c slave device.
166 * @client: i2c device.
167 * @reg: the register to write to.
168 * @buf: raw data buffer to write.
169 * @len: length of the buffer to write
171 static int goodix_i2c_write(struct i2c_client *client, u16 reg, const u8 *buf,
178 addr_buf = kmalloc(len + 2, GFP_KERNEL);
182 addr_buf[0] = reg >> 8;
183 addr_buf[1] = reg & 0xFF;
184 memcpy(&addr_buf[2], buf, len);
187 msg.addr = client->addr;
191 ret = i2c_transfer(client->adapter, &msg, 1);
193 return ret < 0 ? ret : (ret != 1 ? -EIO : 0);
196 static int goodix_i2c_write_u8(struct i2c_client *client, u16 reg, u8 value)
198 return goodix_i2c_write(client, reg, &value, sizeof(value));
201 static int goodix_get_cfg_len(u16 id)
209 return GOODIX_CONFIG_911_LENGTH;
213 return GOODIX_CONFIG_967_LENGTH;
216 return GOODIX_CONFIG_MAX_LENGTH;
220 static int goodix_ts_read_input_report(struct goodix_ts_data *ts, u8 *data)
222 unsigned long max_timeout;
227 * The 'buffer status' bit, which indicates that the data is valid, is
228 * not set as soon as the interrupt is raised, but slightly after.
229 * This takes around 10 ms to happen, so we poll for 20 ms.
231 max_timeout = jiffies + msecs_to_jiffies(GOODIX_BUFFER_STATUS_TIMEOUT);
233 error = goodix_i2c_read(ts->client, GOODIX_READ_COOR_ADDR,
234 data, GOODIX_CONTACT_SIZE + 1);
236 dev_err(&ts->client->dev, "I2C transfer error: %d\n",
241 if (data[0] & GOODIX_BUFFER_STATUS_READY) {
242 touch_num = data[0] & 0x0f;
243 if (touch_num > ts->max_touch_num)
247 data += 1 + GOODIX_CONTACT_SIZE;
248 error = goodix_i2c_read(ts->client,
249 GOODIX_READ_COOR_ADDR +
250 1 + GOODIX_CONTACT_SIZE,
252 GOODIX_CONTACT_SIZE *
261 usleep_range(1000, 2000); /* Poll every 1 - 2 ms */
262 } while (time_before(jiffies, max_timeout));
265 * The Goodix panel will send spurious interrupts after a
266 * 'finger up' event, which will always cause a timeout.
271 static void goodix_ts_report_touch(struct goodix_ts_data *ts, u8 *coor_data)
273 int id = coor_data[0] & 0x0F;
274 int input_x = get_unaligned_le16(&coor_data[1]);
275 int input_y = get_unaligned_le16(&coor_data[3]);
276 int input_w = get_unaligned_le16(&coor_data[5]);
278 /* Inversions have to happen before axis swapping */
280 input_x = ts->abs_x_max - input_x;
282 input_y = ts->abs_y_max - input_y;
284 swap(input_x, input_y);
286 input_mt_slot(ts->input_dev, id);
287 input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, true);
288 input_report_abs(ts->input_dev, ABS_MT_POSITION_X, input_x);
289 input_report_abs(ts->input_dev, ABS_MT_POSITION_Y, input_y);
290 input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, input_w);
291 input_report_abs(ts->input_dev, ABS_MT_WIDTH_MAJOR, input_w);
295 * goodix_process_events - Process incoming events
297 * @ts: our goodix_ts_data pointer
299 * Called when the IRQ is triggered. Read the current device state, and push
300 * the input events to the user space.
302 static void goodix_process_events(struct goodix_ts_data *ts)
304 u8 point_data[1 + GOODIX_CONTACT_SIZE * GOODIX_MAX_CONTACTS];
308 touch_num = goodix_ts_read_input_report(ts, point_data);
313 * Bit 4 of the first byte reports the status of the capacitive
314 * Windows/Home button.
316 input_report_key(ts->input_dev, KEY_LEFTMETA, point_data[0] & BIT(4));
318 for (i = 0; i < touch_num; i++)
319 goodix_ts_report_touch(ts,
320 &point_data[1 + GOODIX_CONTACT_SIZE * i]);
322 input_mt_sync_frame(ts->input_dev);
323 input_sync(ts->input_dev);
327 * goodix_ts_irq_handler - The IRQ handler
329 * @irq: interrupt number.
330 * @dev_id: private data pointer.
332 static irqreturn_t goodix_ts_irq_handler(int irq, void *dev_id)
334 struct goodix_ts_data *ts = dev_id;
336 goodix_process_events(ts);
338 if (goodix_i2c_write_u8(ts->client, GOODIX_READ_COOR_ADDR, 0) < 0)
339 dev_err(&ts->client->dev, "I2C write end_cmd error\n");
344 static void goodix_free_irq(struct goodix_ts_data *ts)
346 devm_free_irq(&ts->client->dev, ts->client->irq, ts);
349 static int goodix_request_irq(struct goodix_ts_data *ts)
351 return devm_request_threaded_irq(&ts->client->dev, ts->client->irq,
352 NULL, goodix_ts_irq_handler,
353 ts->irq_flags, ts->client->name, ts);
357 * goodix_check_cfg - Checks if config fw is valid
359 * @ts: goodix_ts_data pointer
360 * @cfg: firmware config data
362 static int goodix_check_cfg(struct goodix_ts_data *ts,
363 const struct firmware *cfg)
368 if (cfg->size > GOODIX_CONFIG_MAX_LENGTH) {
369 dev_err(&ts->client->dev,
370 "The length of the config fw is not correct");
374 raw_cfg_len = cfg->size - 2;
375 for (i = 0; i < raw_cfg_len; i++)
376 check_sum += cfg->data[i];
377 check_sum = (~check_sum) + 1;
378 if (check_sum != cfg->data[raw_cfg_len]) {
379 dev_err(&ts->client->dev,
380 "The checksum of the config fw is not correct");
384 if (cfg->data[raw_cfg_len + 1] != 1) {
385 dev_err(&ts->client->dev,
386 "Config fw must have Config_Fresh register set");
394 * goodix_send_cfg - Write fw config to device
396 * @ts: goodix_ts_data pointer
397 * @cfg: config firmware to write to device
399 static int goodix_send_cfg(struct goodix_ts_data *ts,
400 const struct firmware *cfg)
404 error = goodix_check_cfg(ts, cfg);
408 error = goodix_i2c_write(ts->client, GOODIX_REG_CONFIG_DATA, cfg->data,
411 dev_err(&ts->client->dev, "Failed to write config data: %d",
415 dev_dbg(&ts->client->dev, "Config sent successfully.");
417 /* Let the firmware reconfigure itself, so sleep for 10ms */
418 usleep_range(10000, 11000);
423 static int goodix_int_sync(struct goodix_ts_data *ts)
427 error = gpiod_direction_output(ts->gpiod_int, 0);
431 msleep(50); /* T5: 50ms */
433 error = gpiod_direction_input(ts->gpiod_int);
441 * goodix_reset - Reset device during power on
443 * @ts: goodix_ts_data pointer
445 static int goodix_reset(struct goodix_ts_data *ts)
449 /* begin select I2C slave addr */
450 error = gpiod_direction_output(ts->gpiod_rst, 0);
454 msleep(20); /* T2: > 10ms */
456 /* HIGH: 0x28/0x29, LOW: 0xBA/0xBB */
457 error = gpiod_direction_output(ts->gpiod_int, ts->client->addr == 0x14);
461 usleep_range(100, 2000); /* T3: > 100us */
463 error = gpiod_direction_output(ts->gpiod_rst, 1);
467 usleep_range(6000, 10000); /* T4: > 5ms */
469 /* end select I2C slave addr */
470 error = gpiod_direction_input(ts->gpiod_rst);
474 error = goodix_int_sync(ts);
482 * goodix_get_gpio_config - Get GPIO config from ACPI/DT
484 * @ts: goodix_ts_data pointer
486 static int goodix_get_gpio_config(struct goodix_ts_data *ts)
490 struct gpio_desc *gpiod;
494 dev = &ts->client->dev;
496 /* Get the interrupt GPIO pin number */
497 gpiod = devm_gpiod_get_optional(dev, GOODIX_GPIO_INT_NAME, GPIOD_IN);
499 error = PTR_ERR(gpiod);
500 if (error != -EPROBE_DEFER)
501 dev_dbg(dev, "Failed to get %s GPIO: %d\n",
502 GOODIX_GPIO_INT_NAME, error);
506 ts->gpiod_int = gpiod;
508 /* Get the reset line GPIO pin number */
509 gpiod = devm_gpiod_get_optional(dev, GOODIX_GPIO_RST_NAME, GPIOD_IN);
511 error = PTR_ERR(gpiod);
512 if (error != -EPROBE_DEFER)
513 dev_dbg(dev, "Failed to get %s GPIO: %d\n",
514 GOODIX_GPIO_RST_NAME, error);
518 ts->gpiod_rst = gpiod;
524 * goodix_read_config - Read the embedded configuration of the panel
526 * @ts: our goodix_ts_data pointer
528 * Must be called during probe
530 static void goodix_read_config(struct goodix_ts_data *ts)
532 u8 config[GOODIX_CONFIG_MAX_LENGTH];
535 error = goodix_i2c_read(ts->client, GOODIX_REG_CONFIG_DATA,
536 config, ts->cfg_len);
538 dev_warn(&ts->client->dev,
539 "Error reading config (%d), using defaults\n",
541 ts->abs_x_max = GOODIX_MAX_WIDTH;
542 ts->abs_y_max = GOODIX_MAX_HEIGHT;
544 swap(ts->abs_x_max, ts->abs_y_max);
545 ts->int_trigger_type = GOODIX_INT_TRIGGER;
546 ts->max_touch_num = GOODIX_MAX_CONTACTS;
550 ts->abs_x_max = get_unaligned_le16(&config[RESOLUTION_LOC]);
551 ts->abs_y_max = get_unaligned_le16(&config[RESOLUTION_LOC + 2]);
553 swap(ts->abs_x_max, ts->abs_y_max);
554 ts->int_trigger_type = config[TRIGGER_LOC] & 0x03;
555 ts->max_touch_num = config[MAX_CONTACTS_LOC] & 0x0f;
556 if (!ts->abs_x_max || !ts->abs_y_max || !ts->max_touch_num) {
557 dev_err(&ts->client->dev,
558 "Invalid config, using defaults\n");
559 ts->abs_x_max = GOODIX_MAX_WIDTH;
560 ts->abs_y_max = GOODIX_MAX_HEIGHT;
562 swap(ts->abs_x_max, ts->abs_y_max);
563 ts->max_touch_num = GOODIX_MAX_CONTACTS;
566 if (dmi_check_system(rotated_screen)) {
567 ts->inverted_x = true;
568 ts->inverted_y = true;
569 dev_dbg(&ts->client->dev,
570 "Applying '180 degrees rotated screen' quirk\n");
575 * goodix_read_version - Read goodix touchscreen version
577 * @ts: our goodix_ts_data pointer
579 static int goodix_read_version(struct goodix_ts_data *ts)
585 error = goodix_i2c_read(ts->client, GOODIX_REG_ID, buf, sizeof(buf));
587 dev_err(&ts->client->dev, "read version failed: %d\n", error);
591 memcpy(id_str, buf, 4);
593 if (kstrtou16(id_str, 10, &ts->id))
596 ts->version = get_unaligned_le16(&buf[4]);
598 dev_info(&ts->client->dev, "ID %d, version: %04x\n", ts->id,
605 * goodix_i2c_test - I2C test function to check if the device answers.
607 * @client: the i2c client
609 static int goodix_i2c_test(struct i2c_client *client)
615 while (retry++ < 2) {
616 error = goodix_i2c_read(client, GOODIX_REG_CONFIG_DATA,
621 dev_err(&client->dev, "i2c test failed attempt %d: %d\n",
630 * goodix_request_input_dev - Allocate, populate and register the input device
632 * @ts: our goodix_ts_data pointer
634 * Must be called during probe
636 static int goodix_request_input_dev(struct goodix_ts_data *ts)
640 ts->input_dev = devm_input_allocate_device(&ts->client->dev);
641 if (!ts->input_dev) {
642 dev_err(&ts->client->dev, "Failed to allocate input device.");
646 input_set_abs_params(ts->input_dev, ABS_MT_POSITION_X,
647 0, ts->abs_x_max, 0, 0);
648 input_set_abs_params(ts->input_dev, ABS_MT_POSITION_Y,
649 0, ts->abs_y_max, 0, 0);
650 input_set_abs_params(ts->input_dev, ABS_MT_WIDTH_MAJOR, 0, 255, 0, 0);
651 input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
653 input_mt_init_slots(ts->input_dev, ts->max_touch_num,
654 INPUT_MT_DIRECT | INPUT_MT_DROP_UNUSED);
656 ts->input_dev->name = "Goodix Capacitive TouchScreen";
657 ts->input_dev->phys = "input/ts";
658 ts->input_dev->id.bustype = BUS_I2C;
659 ts->input_dev->id.vendor = 0x0416;
660 ts->input_dev->id.product = ts->id;
661 ts->input_dev->id.version = ts->version;
663 /* Capacitive Windows/Home button on some devices */
664 input_set_capability(ts->input_dev, EV_KEY, KEY_LEFTMETA);
666 error = input_register_device(ts->input_dev);
668 dev_err(&ts->client->dev,
669 "Failed to register input device: %d", error);
677 * goodix_configure_dev - Finish device initialization
679 * @ts: our goodix_ts_data pointer
681 * Must be called from probe to finish initialization of the device.
682 * Contains the common initialization code for both devices that
683 * declare gpio pins and devices that do not. It is either called
684 * directly from probe or from request_firmware_wait callback.
686 static int goodix_configure_dev(struct goodix_ts_data *ts)
690 ts->swapped_x_y = device_property_read_bool(&ts->client->dev,
691 "touchscreen-swapped-x-y");
692 ts->inverted_x = device_property_read_bool(&ts->client->dev,
693 "touchscreen-inverted-x");
694 ts->inverted_y = device_property_read_bool(&ts->client->dev,
695 "touchscreen-inverted-y");
697 goodix_read_config(ts);
699 error = goodix_request_input_dev(ts);
703 ts->irq_flags = goodix_irq_flags[ts->int_trigger_type] | IRQF_ONESHOT;
704 error = goodix_request_irq(ts);
706 dev_err(&ts->client->dev, "request IRQ failed: %d\n", error);
714 * goodix_config_cb - Callback to finish device init
716 * @ts: our goodix_ts_data pointer
718 * request_firmware_wait callback that finishes
719 * initialization of the device.
721 static void goodix_config_cb(const struct firmware *cfg, void *ctx)
723 struct goodix_ts_data *ts = ctx;
727 /* send device configuration to the firmware */
728 error = goodix_send_cfg(ts, cfg);
730 goto err_release_cfg;
733 goodix_configure_dev(ts);
736 release_firmware(cfg);
737 complete_all(&ts->firmware_loading_complete);
740 static int goodix_ts_probe(struct i2c_client *client,
741 const struct i2c_device_id *id)
743 struct goodix_ts_data *ts;
746 dev_dbg(&client->dev, "I2C Address: 0x%02x\n", client->addr);
748 if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {
749 dev_err(&client->dev, "I2C check functionality failed.\n");
753 ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL);
758 i2c_set_clientdata(client, ts);
759 init_completion(&ts->firmware_loading_complete);
761 error = goodix_get_gpio_config(ts);
765 if (ts->gpiod_int && ts->gpiod_rst) {
766 /* reset the controller */
767 error = goodix_reset(ts);
769 dev_err(&client->dev, "Controller reset failed.\n");
774 error = goodix_i2c_test(client);
776 dev_err(&client->dev, "I2C communication failure: %d\n", error);
780 error = goodix_read_version(ts);
782 dev_err(&client->dev, "Read version failed.\n");
786 ts->cfg_len = goodix_get_cfg_len(ts->id);
788 if (ts->gpiod_int && ts->gpiod_rst) {
789 /* update device config */
790 ts->cfg_name = devm_kasprintf(&client->dev, GFP_KERNEL,
791 "/*(DEBLOBBED)*/", ts->id);
795 error = reject_firmware_nowait(THIS_MODULE, true, ts->cfg_name,
796 &client->dev, GFP_KERNEL, ts,
799 dev_err(&client->dev,
800 "Failed to invoke firmware loader: %d\n",
807 error = goodix_configure_dev(ts);
815 static int goodix_ts_remove(struct i2c_client *client)
817 struct goodix_ts_data *ts = i2c_get_clientdata(client);
819 if (ts->gpiod_int && ts->gpiod_rst)
820 wait_for_completion(&ts->firmware_loading_complete);
825 static int __maybe_unused goodix_suspend(struct device *dev)
827 struct i2c_client *client = to_i2c_client(dev);
828 struct goodix_ts_data *ts = i2c_get_clientdata(client);
831 /* We need gpio pins to suspend/resume */
832 if (!ts->gpiod_int || !ts->gpiod_rst) {
833 disable_irq(client->irq);
837 wait_for_completion(&ts->firmware_loading_complete);
839 /* Free IRQ as IRQ pin is used as output in the suspend sequence */
842 /* Output LOW on the INT pin for 5 ms */
843 error = gpiod_direction_output(ts->gpiod_int, 0);
845 goodix_request_irq(ts);
849 usleep_range(5000, 6000);
851 error = goodix_i2c_write_u8(ts->client, GOODIX_REG_COMMAND,
852 GOODIX_CMD_SCREEN_OFF);
854 dev_err(&ts->client->dev, "Screen off command failed\n");
855 gpiod_direction_input(ts->gpiod_int);
856 goodix_request_irq(ts);
861 * The datasheet specifies that the interval between sending screen-off
862 * command and wake-up should be longer than 58 ms. To avoid waking up
863 * sooner, delay 58ms here.
869 static int __maybe_unused goodix_resume(struct device *dev)
871 struct i2c_client *client = to_i2c_client(dev);
872 struct goodix_ts_data *ts = i2c_get_clientdata(client);
875 if (!ts->gpiod_int || !ts->gpiod_rst) {
876 enable_irq(client->irq);
881 * Exit sleep mode by outputting HIGH level to INT pin
884 error = gpiod_direction_output(ts->gpiod_int, 1);
888 usleep_range(2000, 5000);
890 error = goodix_int_sync(ts);
894 error = goodix_request_irq(ts);
901 static SIMPLE_DEV_PM_OPS(goodix_pm_ops, goodix_suspend, goodix_resume);
903 static const struct i2c_device_id goodix_ts_id[] = {
904 { "GDIX1001:00", 0 },
907 MODULE_DEVICE_TABLE(i2c, goodix_ts_id);
910 static const struct acpi_device_id goodix_acpi_match[] = {
915 MODULE_DEVICE_TABLE(acpi, goodix_acpi_match);
919 static const struct of_device_id goodix_of_match[] = {
920 { .compatible = "goodix,gt911" },
921 { .compatible = "goodix,gt9110" },
922 { .compatible = "goodix,gt912" },
923 { .compatible = "goodix,gt927" },
924 { .compatible = "goodix,gt9271" },
925 { .compatible = "goodix,gt928" },
926 { .compatible = "goodix,gt967" },
929 MODULE_DEVICE_TABLE(of, goodix_of_match);
932 static struct i2c_driver goodix_ts_driver = {
933 .probe = goodix_ts_probe,
934 .remove = goodix_ts_remove,
935 .id_table = goodix_ts_id,
938 .acpi_match_table = ACPI_PTR(goodix_acpi_match),
939 .of_match_table = of_match_ptr(goodix_of_match),
940 .pm = &goodix_pm_ops,
943 module_i2c_driver(goodix_ts_driver);
945 MODULE_AUTHOR("Benjamin Tissoires <benjamin.tissoires@gmail.com>");
946 MODULE_AUTHOR("Bastien Nocera <hadess@hadess.net>");
947 MODULE_DESCRIPTION("Goodix touchscreen driver");
948 MODULE_LICENSE("GPL v2");