[PATCH v2 7/8] input: goodix: use goodix_i2c_write_u8 instead of i2c_master_send

2015-06-08 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen

[PATCH v2 8/8] input: goodix: add support for ESD

2015-06-08 Thread Irina Tirdea
) { Name (_HID, GDIX1001) ... Name (_DSD, Package () { ToUUID(daffd814-6eba-4d8c-8a91-bc9bbf4aa301), Package () { Package (2) { esd-recovery-timeout-ms, Package(1) { 2000 }}, ... } } } Signed-off-by: Irina Tirdea irina.tir

[PATCH v2 3/8] input: goodix: export id and version read from device

2015-06-08 Thread Irina Tirdea
. Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers

[PATCH v2 0/8] Goodix touchscreen enhancements

2015-06-08 Thread Irina Tirdea
- dropped the checkpatch fixes that did not make sense - added Bastien's ack to the first patch Irina Tirdea (8): input: goodix: fix alignment issues input: goodix: fix variable length array warning input: goodix: export id and version read from device input: goodix: reset device at init

[PATCH v2 4/8] input: goodix: reset device at init

2015-06-08 Thread Irina Tirdea
}}, ... } } Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- .../bindings/input/touchscreen/goodix.txt | 5 ++ drivers/input/touchscreen/goodix.c | 100 + 2 files changed, 105

[PATCH v2 2/8] input: goodix: fix variable length array warning

2015-06-08 Thread Irina Tirdea
will lead to wasting 40 bytes when using devices with maximum 5 touch points. However, that is prefferable to using kmalloc which will use even more resources. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 1/8] input: goodix: fix alignment issues

2015-06-08 Thread Irina Tirdea
Fix alignment to match open parenthesis detected by running checkpatch.pl --strict. Signed-off-by: Irina Tirdea irina.tir...@intel.com Acked-by: Bastien Nocera had...@hadess.net --- drivers/input/touchscreen/goodix.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH v2 5/8] input: goodix: write configuration data to device

2015-06-08 Thread Irina Tirdea
and on Goodix driver gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 128 + 1

[PATCH v2 6/8] input: goodix: add power management support

2015-06-08 Thread Irina Tirdea
Implement suspend/resume for goodix driver. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea

[PATCH 6/9] input: goodix: write configuration data to device

2015-05-28 Thread Irina Tirdea
...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- .../bindings/input/touchscreen/goodix.txt | 5 + drivers/input/touchscreen/goodix.c | 143 + 2 files changed, 148 insertions(+) diff --git a/Documentation/devicetree/bindings/input

[PATCH 8/9] input: goodix: add support for ESD

2015-05-28 Thread Irina Tirdea
property. If it is set to 0, ESD protection is disabled. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- .../bindings/input/touchscreen/goodix.txt | 4 + drivers/input/touchscreen/goodix.c | 106 - 2 files changed, 106 insertions(+), 4 deletions

[PATCH 3/9] input: goodix: export id and version read from device

2015-05-28 Thread Irina Tirdea
. Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers

[PATCH 1/9] input: goodix: fix alignment issues

2015-05-28 Thread Irina Tirdea
Fix alignment to match open parenthesis detected by running checkpatch.pl --strict. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c

[PATCH 9/9] input: goodix: use goodix_i2c_write_u8 instead of i2c_master_send

2015-05-28 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen

[PATCH 2/9] input: goodix: fix variable length array warning

2015-05-28 Thread Irina Tirdea
Fix sparse warning: drivers/input/touchscreen/goodix.c:182:26: warning: Variable length array is used. Replace the variable length array with fixed length. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 5/9] input: goodix: reset device at init

2015-05-28 Thread Irina Tirdea
After power on, it is recommended that the driver resets the device. For reset the driver needs to control the interrupt and reset gpio pins (configured through ACPI/device tree). Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com

[PATCH 7/9] input: goodix: add power management support

2015-05-28 Thread Irina Tirdea
Implement suspend/resume for goodix driver. Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 81 +++--- 1 file changed, 76 insertions(+), 5 deletions(-) diff

[PATCH 4/9] input: goodix: add ACPI IDs for GT911 and GT9271

2015-05-28 Thread Irina Tirdea
Add ACPI IDs to support Goodix GT911 and GT9271 touchscreens. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 9561396

[PATCH 0/9] Goodix touchscreen enhancements

2015-05-28 Thread Irina Tirdea
Add several enhancements to the Goodix touchscreen driver: - write configuration data to the device - power management support - cleanup and refactoring Irina Tirdea (9): input: goodix: fix alignment issues input: goodix: fix variable length array warning input: goodix: export id

[PATCH v3 5/5] Input: goodix - add support for ESD

2015-06-29 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 162 +++-- 1 file changed, 156 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH v3 2/5] Input: goodix - write configuration data to device

2015-06-29 Thread Irina Tirdea
for various devices). Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 223 +++-- 1 file changed, 191 insertions(+), 32 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH v3 3/5] Input: goodix - add power management support

2015-06-29 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 94 -- 1 file changed, 89

[PATCH v3 1/5] Input: goodix - reset device at init

2015-06-29 Thread Irina Tirdea
Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- .../bindings/input/touchscreen/goodix.txt | 5 + drivers/input/touchscreen/goodix.c | 131 - 2 files changed, 134 insertions(+), 2 deletions(-) diff --git

[PATCH v3 0/5] Goodix touchscreen enhancements

2015-06-29 Thread Irina Tirdea
for suspend/resume sleep values - dropped the checkpatch fixes that did not make sense - added Bastien's ack to the first patch Irina Tirdea (5): Input: goodix - reset device at init Input: goodix - write configuration data to device Input: goodix - add power management support Input: goodix

[PATCH v3 4/5] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-06-29 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen

[PATCH v4 4/8] Input: goodix - add power management support

2015-07-31 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 94 -- 1 file changed, 89

[PATCH v4 3/8] Input: goodix - write configuration data to device

2015-07-31 Thread Irina Tirdea
for various devices). Signed-off-by: Octavian Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 225 +++-- 1 file changed, 192 insertions(+), 33 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH v4 2/8] Input: goodix - use actual config length for each device type

2015-07-31 Thread Irina Tirdea
more than the actual size of the configuration registers. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input

[PATCH v4 6/8] Input: goodix - add support for ESD

2015-07-31 Thread Irina Tirdea
protection mechanism is only available if the gpio pins are properly initialized from ACPI/DT. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Irina Tirdea irina.tir

[PATCH v4 0/8] Goodix touchscreen enhancements

2015-07-31 Thread Irina Tirdea
: goodix: add ACPI IDs for GT911 and GT9271 patch - add ACPI DSDT excerpt in commit message where necessary - add comments for suspend/resume sleep values - dropped the checkpatch fixes that did not make sense - added Bastien's ack to the first patch Irina Tirdea (8): Input: goodix - reset

[PATCH v4 1/8] Input: goodix - reset device at init

2015-07-31 Thread Irina Tirdea
Purdila octavian.purd...@intel.com Signed-off-by: Irina Tirdea irina.tir...@intel.com --- .../bindings/input/touchscreen/goodix.txt | 5 + drivers/input/touchscreen/goodix.c | 136 + 2 files changed, 141 insertions(+) diff --git a/Documentation/devicetree

[PATCH v4 5/8] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-07-31 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen

[PATCH v4 8/8] DO NOT APPLY! goodix configuration update helper

2015-07-31 Thread Irina Tirdea
changed, x,y axis are switched, etc.) Signed-off-by: Irina Tirdea irina.tir...@intel.com --- tools/touch-goodix-generate-fw.sh | 39 +++ 1 file changed, 39 insertions(+) create mode 100755 tools/touch-goodix-generate-fw.sh diff --git a/tools/touch-goodix

[PATCH v4 7/8] Input: goodix - add sysfs interface to dump config

2015-07-31 Thread Irina Tirdea
its configuration. Signed-off-by: Irina Tirdea irina.tir...@intel.com --- drivers/input/touchscreen/goodix.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index a23fe3e..c4512cf 100644

[PATCH v7 7/9] Input: goodix - add sysfs interface to dump config

2015-10-08 Thread Irina Tirdea
its configuration. This sysfs interface will be exported only if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/d

[PATCH v7 4/9] Input: goodix - add power management support

2015-10-08 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 94 -- 1 file

[PATCH v7 5/9] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-10-08 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers

[PATCH v7 2/9] Input: goodix - reset device at init

2015-10-08 Thread Irina Tirdea
eset-gpio", Package() {^STAC, 1, 0, 0 }}, ... } } Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- .../bindings/input/touchscreen/goodix.txt | 5 + drivers/input/touchscree

[PATCH v7 0/9] Goodix touchscreen enhancements

2015-10-08 Thread Irina Tirdea
suspend/resume sleep values - dropped the checkpatch fixes that did not make sense - added Bastien's ack to the first patch Irina Tirdea (9): Input: goodix - use actual config length for each device type Input: goodix - reset device at init Input: goodix - write configuration data to de

[PATCH v7 3/9] Input: goodix - write configuration data to device

2015-10-08 Thread Irina Tirdea
or various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 229 +++-- 1 file changed, 196 insertions(+), 33 deletions(-) diff

[PATCH v7 1/9] Input: goodix - use actual config length for each device type

2015-10-08 Thread Irina Tirdea
more than the actual size of the configuration registers. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Acked-by: Bastien Nocera <had...@hadess.net> --- drivers/input/touchscreen/goodix.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --g

[PATCH v7 9/9] Input: goodix - sort includes using inverse Xmas tree order

2015-10-08 Thread Irina Tirdea
Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 7f0da7e..1f0625a 100644 --- a/d

[PATCH v7 8/9] Input: goodix - add runtime power management support

2015-10-08 Thread Irina Tirdea
management support is only available if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 152 + 1 file changed, 138 insertions(+), 14 deletions(-) diff

[PATCH v8 3/9] Input: goodix - write configuration data to device

2015-10-08 Thread Irina Tirdea
or various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 229 +++-- 1 file changed, 196 insertions(+), 33 deletions(-) diff

[PATCH v8 2/9] Input: goodix - reset device at init

2015-10-08 Thread Irina Tirdea
{ Package (2) {"irq-gpio", Package() {^STAC, 0, 0, 0 }}, Package (2) {"reset-gpio", Package() {^STAC, 1, 0, 0 }}, ... } } Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@in

[PATCH v8 9/9] Input: goodix - sort includes using inverse Xmas tree order

2015-10-08 Thread Irina Tirdea
Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index b958b37..22bfc4b 100644 --- a/d

[PATCH v8 8/9] Input: goodix - add runtime power management support

2015-10-08 Thread Irina Tirdea
management support is only available if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 152 + 1 file changed, 138 insertions(+), 14 deletions(-) diff

[PATCH v8 5/9] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-10-08 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers

[PATCH v8 6/9] Input: goodix - add support for ESD

2015-10-08 Thread Irina Tirdea
ut-ms", Package(1) { 2000 }}, ... } }) } The ESD protection mechanism is only available if the gpio pins are properly initialized from ACPI/DT. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver gt9xx.c for Android (publicly available in Android kernel trees for various devices)

[PATCH v8 4/9] Input: goodix - add power management support

2015-10-08 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 94 -- 1 file

[PATCH v8 7/9] Input: goodix - add sysfs interface to dump config

2015-10-08 Thread Irina Tirdea
its configuration. This sysfs interface will be exported only if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/d

[PATCH v9 8/9] Input: goodix - add runtime power management support

2015-10-12 Thread Irina Tirdea
management support is only available if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers/input/touchscr

[PATCH v9 2/9] Input: goodix - reset device at init

2015-10-12 Thread Irina Tirdea
{ Package (2) {"irq-gpio", Package() {^STAC, 0, 0, 0 }}, Package (2) {"reset-gpio", Package() {^STAC, 1, 0, 0 }}, ... } } Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@i

[PATCH v9 3/9] Input: goodix - write configuration data to device

2015-10-12 Thread Irina Tirdea
or various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- driver

[PATCH v9 5/9] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-10-12 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file ch

[PATCH v9 1/9] Input: goodix - use actual config length for each device type

2015-10-12 Thread Irina Tirdea
more than the actual size of the configuration registers. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Acked-by: Bastien Nocera <had...@hadess.net> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers/input/t

[PATCH v9 7/9] Input: goodix - add sysfs interface to dump config

2015-10-12 Thread Irina Tirdea
its configuration. This sysfs interface will be exported only if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers

[PATCH v9 6/9] Input: goodix - add support for ESD

2015-10-12 Thread Irina Tirdea
ut-ms", Package(1) { 2000 }}, ... } }) } The ESD protection mechanism is only available if the gpio pins are properly initialized from ACPI/DT. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver gt9xx.c for Android (publicly available in Android kernel trees for various devices)

[PATCH v9 9/9] Input: goodix - sort includes using inverse Xmas tree order

2015-10-12 Thread Irina Tirdea
Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers/input/touchscreen/goodix.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --g

[PATCH v9 4/9] Input: goodix - add power management support

2015-10-12 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gm

[PATCH v10 1/8] Input: goodix - use actual config length for each device type

2015-11-18 Thread Irina Tirdea
more than the actual size of the configuration registers. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Acked-by: Bastien Nocera <had...@hadess.net> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers/input/t

[PATCH v10 0/8] Goodix touchscreen enhancements

2015-11-18 Thread Irina Tirdea
irst patch Irina Tirdea (8): Input: goodix - use actual config length for each device type Input: goodix - reset device at init Input: goodix - write configuration data to device Input: goodix - add power management support Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_se

[PATCH v10 4/8] Input: goodix - add power management support

2015-11-18 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 96 -- 1 file

[PATCH v10 3/8] Input: goodix - write configuration data to device

2015-11-18 Thread Irina Tirdea
or various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 247 - 1 file changed, 215 insertions(+), 32 deletions(-) diff

[PATCH v10 2/8] Input: goodix - reset device at init

2015-11-18 Thread Irina Tirdea
{ Package (2) {"irq-gpio", Package() {^STAC, 0, 0, 0 }}, Package (2) {"reset-gpio", Package() {^STAC, 1, 0, 0 }}, ... } } Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@in

[PATCH v10 5/8] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-11-18 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file ch

[PATCH v10 8/8] Input: goodix - add runtime power management support

2015-11-18 Thread Irina Tirdea
management support is only available if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 159 + 1 file changed, 145 insertions(+), 14 deletions(-) diff

[PATCH v10 6/8] Input: goodix - add support for ESD

2015-11-18 Thread Irina Tirdea
ut-ms", Package(1) { 2000 }}, ... } }) } The ESD protection mechanism is only available if the gpio pins are properly initialized from ACPI/DT. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver gt9xx.c for Android (publicly available in Android kernel trees for various devices)

[PATCH v10 7/8] Input: goodix - add sysfs interface to dump config

2015-11-18 Thread Irina Tirdea
its configuration. This sysfs interface will be exported only if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers

[PATCH v5 4/9] Input: goodix - write configuration data to device

2015-09-07 Thread Irina Tirdea
or various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 225 +++-- 1 file changed, 192 insertions(+), 33 deletions(-) diff --git a/dri

[PATCH v5 5/9] Input: goodix - add power management support

2015-09-07 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 94 -- 1 file

[PATCH v5 2/9] Input: goodix - use actual config length for each device type

2015-09-07 Thread Irina Tirdea
more than the actual size of the configuration registers. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers

[PATCH v5 3/9] Input: goodix - reset device at init

2015-09-07 Thread Irina Tirdea
Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- .../bindings/input/touchscreen/goodix.txt | 5 + drivers/input/touchscreen/goodix.c | 136 + 2 files changed, 141 insertions(+) diff --git a/D

[PATCH v5 0/9] Goodix touchscreen enhancements

2015-09-07 Thread Irina Tirdea
for config - dropped "input: goodix: add ACPI IDs for GT911 and GT9271" patch - add ACPI DSDT excerpt in commit message where necessary - add comments for suspend/resume sleep values - dropped the checkpatch fixes that did not make sense - added Bastien's ack to the first patch Irina

[PATCH v5 9/9] Input: goodix - add runtime power management support

2015-09-07 Thread Irina Tirdea
management support is only available if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 57 +++--- 1 file changed, 53 insertions(+), 4 deletions(-) diff

[PATCH v5 8/9] Input: goodix - add sysfs interface to dump config

2015-09-07 Thread Irina Tirdea
its configuration. This sysfs interface will be exported only if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/d

[RFC PATCH] PM / Runtime: runtime: Add sysfs option for forcing runtime suspend

2015-09-07 Thread Irina Tirdea
power management so that further acceses to the device will not change the actual state. The device can be resumed by setting the attribute to "on" or "auto". The behaviour of the interface when switching only between "on" and "auto" states remains unchanged. S

[PATCH v6 5/9] Input: goodix - add power management support

2015-09-15 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 94 -- 1 file

[PATCH v6 9/9] Input: goodix - add runtime power management support

2015-09-15 Thread Irina Tirdea
management support is only available if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 63 +++--- 1 file changed, 59 insertions(+), 4 deletions(-) diff

[PATCH v6 7/9] Input: goodix - add support for ESD

2015-09-15 Thread Irina Tirdea
ut-ms", Package(1) { 2000 }}, ... } }) } The ESD protection mechanism is only available if the gpio pins are properly initialized from ACPI/DT. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver gt9xx.c for Android (publicly available in Android kernel trees for various devices)

[PATCH v6 4/9] Input: goodix - write configuration data to device

2015-09-15 Thread Irina Tirdea
or various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 225 - 1 file changed, 194 insertions(+), 31 deletions(-) diff --git a/dri

[PATCH v6 8/9] Input: goodix - add sysfs interface to dump config

2015-09-15 Thread Irina Tirdea
its configuration. This sysfs interface will be exported only if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/d

[PATCH v6 6/9] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-09-15 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers

[PATCH v6 0/9] Goodix touchscreen enhancements

2015-09-15 Thread Irina Tirdea
uot; patch - add ACPI DSDT excerpt in commit message where necessary - add comments for suspend/resume sleep values - dropped the checkpatch fixes that did not make sense - added Bastien's ack to the first patch Irina Tirdea (9): Input: goodix - sort includes alphabetically Input: goodix -

[PATCH v6 3/9] Input: goodix - reset device at init

2015-09-15 Thread Irina Tirdea
Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- .../bindings/input/touchscreen/goodix.txt | 5 + drivers/input/touchscreen/goodix.c | 136 + 2 files changed, 141 insertions(+) diff --git a/D

[PATCH v6 1/9] Input: goodix - sort includes alphabetically

2015-09-15 Thread Irina Tirdea
Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Acked-by: Bastien Nocera <had...@hadess.net> --- drivers/input/touchscreen/goodix.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/go

[PATCH v11 4/8] Input: goodix - add power management support

2015-11-19 Thread Irina Tirdea
gt9xx.c for Android (publicly available in Android kernel trees for various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 96 -- 1 file

[PATCH v11 0/8] Goodix touchscreen enhancements

2015-11-19 Thread Irina Tirdea
- dropped "input: goodix: add ACPI IDs for GT911 and GT9271" patch - add ACPI DSDT excerpt in commit message where necessary - add comments for suspend/resume sleep values - dropped the checkpatch fixes that did not make sense - added Bastien's ack to the first patch Irina Tirdea (8

[PATCH v11 8/8] Input: goodix - add runtime power management support

2015-11-19 Thread Irina Tirdea
management support is only available if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 159 + 1 file changed, 145 insertions(+), 14 deletions(-) diff

[PATCH v11 5/8] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-11-19 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file ch

[PATCH v11 1/8] Input: goodix - use actual config length for each device type

2015-11-19 Thread Irina Tirdea
more than the actual size of the configuration registers. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Acked-by: Bastien Nocera <had...@hadess.net> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers/input/t

[PATCH v11 6/8] Input: goodix - add support for ESD

2015-11-19 Thread Irina Tirdea
ut-ms", Package(1) { 2000 }}, ... } }) } The ESD protection mechanism is only available if the gpio pins are properly initialized from ACPI/DT. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver gt9xx.c for Android (publicly available in Android kernel trees for various devices)

[PATCH v11 2/8] Input: goodix - reset device at init

2015-11-19 Thread Irina Tirdea
{ Package (2) {"irq-gpios", Package() {^STAC, 0, 0, 0 }}, Package (2) {"reset-gpios", Package() {^STAC, 1, 0, 0 }}, ... } } Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irin

[PATCH v11 3/8] Input: goodix - write configuration data to device

2015-11-19 Thread Irina Tirdea
or various devices). Signed-off-by: Octavian Purdila <octavian.purd...@intel.com> Signed-off-by: Irina Tirdea <irina.tir...@intel.com> --- drivers/input/touchscreen/goodix.c | 247 - 1 file changed, 215 insertions(+), 32 deletions(-) diff

[PATCH v11 7/8] Input: goodix - add sysfs interface to dump config

2015-11-19 Thread Irina Tirdea
its configuration. This sysfs interface will be exported only if the gpio pins are properly initialized from ACPI/DT. Signed-off-by: Irina Tirdea <irina.tir...@intel.com> Tested-by: Bastien Nocera <had...@hadess.net> Tested-by: Aleksei Mamlin <mamli...@gmail.com> --- drivers