[PATCH] Input: wdt87xx_i2c - support new body WDT8752

2016-08-03 Thread HungNien Chen
for the operation complete in last driver. Extend it to 200ms since the spec says the typical is 30ms but the max is 200ms. Please review it and thanks ! Signed-off-by: HungNien Chen --- drivers/input/touchscreen/wdt87xx_i2c.c | 944 1 file changed, 730

[PATCH] Input: wdt87xx_i2c - Add retries for the I2C transfer functions

2015-07-30 Thread HungNien Chen
possibility to get the transfer packet error caused by the controller's fifo underflow when the controller change the freq to the lowest one. Add the retry loop in transfer functions to overcome this kind of temporary transfer packet errors. Signed-off-by: HungNien Chen --- drivers/input/touchs

[PATCH] Input: wdt87xx_i2c - Change the sleep time to 2500ms after the sw reset

2015-07-11 Thread HungNien Chen
make the i2c data error when doing fw update. We extend the sleep to 2500ms after the sw reset to skip this period time. Signed-off-by: HungNien Chen --- drivers/input/touchscreen/wdt87xx_i2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchsc

[PATCH] Input: wdt87xx_i2c - Add a prodcut_id attribute in sysfs This prodcut_id can be used by the fw updater to distingush products. Also modify the RETRY number to make sure the correctness of the

2015-07-09 Thread HungNien Chen
Signed-off-by: HungNien Chen --- drivers/input/touchscreen/wdt87xx_i2c.c | 68 - 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/wdt87xx_i2c.c b/drivers/input/touchscreen/wdt87xx_i2c.c index fb92ae1..b97cb4f 100644 --- a

[PATCH] Input: wdt87xx_i2c - Add a scaling factor for TOUCH_MAJOR event

2015-07-01 Thread HungNien Chen
Get the scaling factor when it reads the sys params. The width value will multiple the factor and report the value in the TOUCH_MAJOR event. Signed-off-by: HungNien Chen --- drivers/input/touchscreen/wdt87xx_i2c.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff

[PATCH v6] Input: add a driver for wdt87xx touchscreen controller

2015-06-12 Thread HungNien Chen
. modify some data structure declaration and shorten names of some variables 7. modify functions of request_irq and create_input_device to be more reasonable Signed-off-by: HungNien Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile |1 + drivers

[PATCH v5] Fix the resolution issue in ChromeOS

2015-05-28 Thread HungNien Chen
Signed-off-by: HungNien Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile |1 + drivers/input/touchscreen/wdt87xx_i2c.c | 1404 +++ 3 files changed, 1417 insertions(+) create mode 100644 drivers/input/touchscreen

[PATCH v4] Add pressure support and make some minor changes

2015-05-25 Thread HungNien Chen
Signed-off-by: HungNien Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile |1 + drivers/input/touchscreen/wdt87xx_i2c.c | 1388 +++ 3 files changed, 1401 insertions(+) create mode 100644 drivers/input/touchscreen

[PATCH v3] Fix endian issues and remove the board specific codes

2015-05-10 Thread HungNien Chen
Signed-off-by: HungNien Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile |1 + drivers/input/touchscreen/wdt87xx_i2c.c | 1509 +++ 3 files changed, 1522 insertions(+) create mode 100644 drivers/input/touchscreen

[PATCH v2] Fix the license mismatch and add the resolution setting

2015-04-28 Thread HungNien Chen
Signed-off-by: HungNien Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile |1 + drivers/input/touchscreen/wdt87xx_i2c.c | 1501 +++ 3 files changed, 1514 insertions(+) create mode 100644 drivers/input/touchscreen

[PATCH] [Input: add a driver for wdt87xx touchscreen controller] The main function of this driver is to report touch events and update firmware for the controller.

2015-04-23 Thread HungNien Chen
Signed-off-by: HungNien Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile |1 + drivers/input/touchscreen/wdt87xx_i2c.c | 1495 +++ 3 files changed, 1508 insertions(+) create mode 100644 drivers/input/touchscreen