[PATCH 25/53] Input: atmel_mxt_ts - Rename pressure to amplitude to match spec

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 2e6ddc5..ab6a1f6 100644

Atmel updates to atmel_mxt_ts touch controller driver - v5 Daniel Kurtz , Henrik Rydberg , Joonyoung Shim , alan.bow...@atmel.com, l

2013-06-05 Thread Nick Dyer
with this driver: https://github.com/atmel-maxtouch/obp-utils You can see the in-between versions at https://github.com/ndyer/linux/ regards -- Nick Dyer Senior Software Engineer ITDev Hardware and Software Development Consultancy http://www.itdev.co.uk -- To unsubscribe from this list: send the line

[PATCH 14/53] Input: atmel_mxt_ts - Download device config using firmware loader

2013-06-05 Thread Nick Dyer
format for the configuration which can be exported from their tools. This patch implements a parser for that format which loads the configuration via the firmware loader and sends it to the MXT chip. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 234

[PATCH 01/53] Input: atmel_mxt_ts - Remove unnecessary platform data

2013-06-05 Thread Nick Dyer
for device tree and other platforms where having to define a static configuration isn't helpful. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- arch/arm/mach-exynos/mach-nuri.c |5 --- arch/arm/mach-exynos/mach-universal_c210.c |5 --- arch/arm/mach-s5pv210/mach-goni.c

[PATCH 16/53] Input: atmel_mxt_ts - Add additional bootloader addresses

2013-06-05 Thread Nick Dyer
Move bootloaders reads/writes into separate functions. Instead of switching client->addr, define new field bootloader_addr in mxt_data. Implement lookup calculation for bootloader addresses. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c |

[PATCH 33/53] Input: atmel_mxt_ts - Add support for dynamic message size

2013-06-05 Thread Nick Dyer
The T5 object may have various sizes depending on the objects used on the particular maXTouch chip and firmware version, therefore it can't be hardcoded in the driver. Allocate a buffer on probe instead. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen

[PATCH 18/53] Input: atmel_mxt_ts - Implement bootloader frame retries

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index df8fc1a

[PATCH 53/53] Input: atmel_mxt_ts - Only use first T9 instance

2013-06-05 Thread Nick Dyer
and the positions will be mashed together. This also causes problems on Android if the number of slots exceeds 32. In the future, this could be handled by looking for enabled touch object instances and creating an input device for each one. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers

[PATCH 42/53] Input: atmel_mxt_ts - Implement support for T15 Key Array

2013-06-05 Thread Nick Dyer
There is a key array object in many maXTouch chips which allows some X/Y lines to be used as a key array. This patch maps them to a series of keys which may be configured in a platform data array. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 52/53] Input: atmel_mxt_ts - Handle cfg filename via pdata/sysfs

2013-06-05 Thread Nick Dyer
mxt_initialize() into mxt_configure_objects() to allow this. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 104 -- include/linux/i2c/atmel_mxt_ts.h |1 + 2 files changed, 86 insertions(+), 19 deletions(-) diff --git a/drivers/input

[PATCH 15/53] Input: atmel_mxt_ts - Calculate and check CRC in config file

2013-06-05 Thread Nick Dyer
By validating the checksum, we can identify if the configuration is corrupt. In addition, this patch writes the configuration in a short series of block writes rather than as many individual values. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 47/53] Input: atmel_mxt_ts - Release touch state during suspend

2013-06-05 Thread Nick Dyer
- flush any messages created after suspend - tell app layer that slots were released at suspend Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/drivers/input

[PATCH 51/53] Input: atmel_mxt_ts - Allow specification of firmware file name

2013-06-05 Thread Nick Dyer
On platforms which have multiple device instances using this driver, the firmware may be different on each device. This patch makes the user give the name of the firmware file when flashing. This also prevents accidental triggering of the firmware load process. Signed-off-by: Nick Dyer Acked

[PATCH 10/53] Input: atmel_mxt_ts - Add memory access interface via sysfs

2013-06-05 Thread Nick Dyer
ostic data, while the device is running. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 82 ++ 1 file changed, 82 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atme

[PATCH 04/53] Input: atmel_mxt_ts - define helper functions for size and instances

2013-06-05 Thread Nick Dyer
convenient accessor functions that do the +1 every time these fields are accessed. Signed-off-by: Daniel Kurtz Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 35 -- 1 file changed, 24 insertions(+), 11 deletions(-) diff

[PATCH 37/53] Input: atmel_mxt_ts - Output status from T48 Noise Supression

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index ca02ee1..5291471 100644

[PATCH 34/53] Input: atmel_mxt_ts - Decode T6 status messages

2013-06-05 Thread Nick Dyer
By storing the previous T6 status byte we can detect reset completion more correctly, and multiple debug output of the same status can be suppressed (for example CFGERR). Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 60

[PATCH 20/53] Input: atmel_mxt_ts - Add check for incorrect firmware file format

2013-06-05 Thread Nick Dyer
Atmel supplies firmware files in ASCII HEX format (.enc) which must be converted before they can be loaded by kernel driver. Try to detect the error and print a friendly error message rather than feeding junk to the bootloader. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input

[PATCH 50/53] Input: atmel_mxt_ts - Implement support for T100 touch object

2013-06-05 Thread Nick Dyer
The T100 object replaces the old T9 multitouch touchscreen object in new chips. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 299 -- 1 file changed, 288 insertions(+), 11 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 09/53] Input: atmel_mxt_ts - Make wait-after-reset period compatible with all chips

2013-06-05 Thread Nick Dyer
From: Iiro Valkonen The delay before the chip can be accessed after reset varies between different chips in maXTouch family. Waiting for an interrupt and a T6 status message with the RESET bit set is a better behaviour. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input

[PATCH 07/53] Input: atmel_mxt_ts - wait for CHG after bootloader resets

2013-06-05 Thread Nick Dyer
as we no longer wait longer than necessary for each reset. Signed-off-by: Benson Leung Signed-off-by: Daniel Kurtz Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/input

[PATCH 39/53] Input: atmel_mxt_ts - Implement vector/orientation support

2013-06-05 Thread Nick Dyer
to be enabled in maXTouch config (zero DISVECT bit in T9 CTRL field) Android converts the format in frameworks/base/services/input/Input.cpp, search for ORIENTATION_CALIBRATION_VECTOR. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c |9 +++-- 1

[PATCH 06/53] Input: atmel_mxt_ts - wait for CHG assert in mxt_check_bootloader

2013-06-05 Thread Nick Dyer
, and changes the mxt_interrupt handler to signal the completion. Signed-off-by: Benson Leung Signed-off-by: Daniel Kurtz Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 102 -- 1 file changed, 81 insertions(+), 21 deletions(-) diff --git a/drivers

[PATCH 22/53] Input: atmel_mxt_ts - Set default irqflags when there is no pdata

2013-06-05 Thread Nick Dyer
Signed-off-by: Daniel Kurtz Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 54 +- 1 file changed, 39 insertions(+), 15 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH 26/53] Input: atmel_mxt_ts - Rename touchscreen defines to include T9

2013-06-05 Thread Nick Dyer
This avoids confusion with the newer T100 touchscreen object. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH 43/53] Input: atmel_mxt_ts - Remove unused defines

2013-06-05 Thread Nick Dyer
Many of these values are out of date and they aren't used in the driver - all they do is increase the size of the kernel source. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 66 +- 1 file changed, 1 insertion

[PATCH 17/53] Input: atmel_mxt_ts - Read and report bootloader version

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 842312e..df8fc1a 100644

[PATCH 02/53] Input: atmel_mxt_ts - Improve T19 GPIO keys handling

2013-06-05 Thread Nick Dyer
* Remove unused dev variable. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 44 -- drivers/platform/x86/chromeos_laptop.c | 17 include/linux/i2c/atmel_mxt_ts.h |7 ++--- 3 files changed, 30 insertions(+), 38 dele

[PATCH 35/53] Input: atmel_mxt_ts - Split message handler into separate functions

2013-06-05 Thread Nick Dyer
This is in preparation for support of the T44 message count object. Signed-off-by: Nick Dyer Acked-by: Benson Leung --- drivers/input/touchscreen/atmel_mxt_ts.c | 120 +++--- 1 file changed, 62 insertions(+), 58 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH 35/53] Input: atmel_mxt_ts - Split message handler into separate functions

2013-06-05 Thread Nick Dyer
This is in preparation for support of the T44 message count object. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 120 +++--- 1 file changed, 62 insertions(+), 58 deletions

[PATCH 02/53] Input: atmel_mxt_ts - Improve T19 GPIO keys handling

2013-06-05 Thread Nick Dyer
. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 44 -- drivers/platform/x86/chromeos_laptop.c | 17 include/linux/i2c/atmel_mxt_ts.h |7 ++--- 3 files changed, 30 insertions(+), 38 deletions

[PATCH 43/53] Input: atmel_mxt_ts - Remove unused defines

2013-06-05 Thread Nick Dyer
Many of these values are out of date and they aren't used in the driver - all they do is increase the size of the kernel source. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 66

[PATCH 17/53] Input: atmel_mxt_ts - Read and report bootloader version

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH 26/53] Input: atmel_mxt_ts - Rename touchscreen defines to include T9

2013-06-05 Thread Nick Dyer
This avoids confusion with the newer T100 touchscreen object. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff

[PATCH 22/53] Input: atmel_mxt_ts - Set default irqflags when there is no pdata

2013-06-05 Thread Nick Dyer
-by: Yufeng Shen mile...@chromium.org Signed-off-by: Daniel Kurtz djku...@chromium.org Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 54 +- 1 file changed, 39 insertions(+), 15

[PATCH 39/53] Input: atmel_mxt_ts - Implement vector/orientation support

2013-06-05 Thread Nick Dyer
to be enabled in maXTouch config (zero DISVECT bit in T9 CTRL field) Android converts the format in frameworks/base/services/input/Input.cpp, search for ORIENTATION_CALIBRATION_VECTOR. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input

[PATCH 06/53] Input: atmel_mxt_ts - wait for CHG assert in mxt_check_bootloader

2013-06-05 Thread Nick Dyer
in mxt_check_bootloader, and changes the mxt_interrupt handler to signal the completion. Signed-off-by: Benson Leung ble...@chromium.org Signed-off-by: Daniel Kurtz djku...@chromium.org Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 102

[PATCH 07/53] Input: atmel_mxt_ts - wait for CHG after bootloader resets

2013-06-05 Thread Nick Dyer
firmware update time as we no longer wait longer than necessary for each reset. Signed-off-by: Benson Leung ble...@chromium.org Signed-off-by: Daniel Kurtz djku...@chromium.org Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 19 --- 1

[PATCH 20/53] Input: atmel_mxt_ts - Add check for incorrect firmware file format

2013-06-05 Thread Nick Dyer
Atmel supplies firmware files in ASCII HEX format (.enc) which must be converted before they can be loaded by kernel driver. Try to detect the error and print a friendly error message rather than feeding junk to the bootloader. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung

[PATCH 50/53] Input: atmel_mxt_ts - Implement support for T100 touch object

2013-06-05 Thread Nick Dyer
The T100 object replaces the old T9 multitouch touchscreen object in new chips. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 299 -- 1 file changed, 288 insertions(+), 11 deletions(-) diff --git a/drivers/input

[PATCH 09/53] Input: atmel_mxt_ts - Make wait-after-reset period compatible with all chips

2013-06-05 Thread Nick Dyer
From: Iiro Valkonen iiro.valko...@atmel.com The delay before the chip can be accessed after reset varies between different chips in maXTouch family. Waiting for an interrupt and a T6 status message with the RESET bit set is a better behaviour. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked

[PATCH 37/53] Input: atmel_mxt_ts - Output status from T48 Noise Supression

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH 34/53] Input: atmel_mxt_ts - Decode T6 status messages

2013-06-05 Thread Nick Dyer
By storing the previous T6 status byte we can detect reset completion more correctly, and multiple debug output of the same status can be suppressed (for example CFGERR). Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen

[PATCH 04/53] Input: atmel_mxt_ts - define helper functions for size and instances

2013-06-05 Thread Nick Dyer
alignment, add some convenient accessor functions that do the +1 every time these fields are accessed. Signed-off-by: Daniel Kurtz djku...@chromium.org Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 35

[PATCH 10/53] Input: atmel_mxt_ts - Add memory access interface via sysfs

2013-06-05 Thread Nick Dyer
, while the device is running. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 82 ++ 1 file changed, 82 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers

[PATCH 51/53] Input: atmel_mxt_ts - Allow specification of firmware file name

2013-06-05 Thread Nick Dyer
On platforms which have multiple device instances using this driver, the firmware may be different on each device. This patch makes the user give the name of the firmware file when flashing. This also prevents accidental triggering of the firmware load process. Signed-off-by: Nick Dyer nick.d

[PATCH 52/53] Input: atmel_mxt_ts - Handle cfg filename via pdata/sysfs

2013-06-05 Thread Nick Dyer
mxt_initialize() into mxt_configure_objects() to allow this. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 104 -- include/linux/i2c/atmel_mxt_ts.h |1 + 2 files changed, 86 insertions(+), 19 deletions(-) diff --git

[PATCH 15/53] Input: atmel_mxt_ts - Calculate and check CRC in config file

2013-06-05 Thread Nick Dyer
By validating the checksum, we can identify if the configuration is corrupt. In addition, this patch writes the configuration in a short series of block writes rather than as many individual values. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org

[PATCH 53/53] Input: atmel_mxt_ts - Only use first T9 instance

2013-06-05 Thread Nick Dyer
and the positions will be mashed together. This also causes problems on Android if the number of slots exceeds 32. In the future, this could be handled by looking for enabled touch object instances and creating an input device for each one. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson

[PATCH 18/53] Input: atmel_mxt_ts - Implement bootloader frame retries

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH 42/53] Input: atmel_mxt_ts - Implement support for T15 Key Array

2013-06-05 Thread Nick Dyer
There is a key array object in many maXTouch chips which allows some X/Y lines to be used as a key array. This patch maps them to a series of keys which may be configured in a platform data array. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org

[PATCH 47/53] Input: atmel_mxt_ts - Release touch state during suspend

2013-06-05 Thread Nick Dyer
- flush any messages created after suspend - tell app layer that slots were released at suspend Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 46 ++ 1 file changed, 46 insertions

[PATCH 33/53] Input: atmel_mxt_ts - Add support for dynamic message size

2013-06-05 Thread Nick Dyer
The T5 object may have various sizes depending on the objects used on the particular maXTouch chip and firmware version, therefore it can't be hardcoded in the driver. Allocate a buffer on probe instead. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org

Atmel updates to atmel_mxt_ts touch controller driver - v5 Daniel Kurtz djku...@chromium.org, Henrik Rydberg rydb...@euromail.se, Joonyoung Shim jy0922.s...@samsung.com, alan.bow...@atmel.com, l

2013-06-05 Thread Nick Dyer
with this driver: https://github.com/atmel-maxtouch/obp-utils You can see the in-between versions at https://github.com/ndyer/linux/ regards -- Nick Dyer Senior Software Engineer ITDev Hardware and Software Development Consultancy http://www.itdev.co.uk -- To unsubscribe from this list: send the line

[PATCH 25/53] Input: atmel_mxt_ts - Rename pressure to amplitude to match spec

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH 14/53] Input: atmel_mxt_ts - Download device config using firmware loader

2013-06-05 Thread Nick Dyer
format for the configuration which can be exported from their tools. This patch implements a parser for that format which loads the configuration via the firmware loader and sends it to the MXT chip. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers

[PATCH 01/53] Input: atmel_mxt_ts - Remove unnecessary platform data

2013-06-05 Thread Nick Dyer
for device tree and other platforms where having to define a static configuration isn't helpful. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- arch/arm/mach-exynos/mach-nuri.c |5 --- arch/arm/mach-exynos/mach-universal_c210.c |5

[PATCH 16/53] Input: atmel_mxt_ts - Add additional bootloader addresses

2013-06-05 Thread Nick Dyer
Move bootloaders reads/writes into separate functions. Instead of switching client-addr, define new field bootloader_addr in mxt_data. Implement lookup calculation for bootloader addresses. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers

[PATCH 27/53] Input: atmel_mxt_ts - Handle multiple input reports in one message

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 34 +++--- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH 11/53] Input: atmel_mxt_ts - Implement debug output for messages

2013-06-05 Thread Nick Dyer
Add a debug switch which causes all messages from the touch controller to be dumped to the dmesg log with a set prefix MXT MSG:. This is used by Atmel user-space utilities to debug touch operation. Enabling this output does impact touch performance. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk

[PATCH 13/53] Input: atmel_mxt_ts - Implement CRC check for configuration data

2013-06-05 Thread Nick Dyer
-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 55 +- include/linux/i2c/atmel_mxt_ts.h |1 + 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/drivers/input

[PATCH 31/53] Input: atmel_mxt_ts - Add bootloader addresses for new chips

2013-06-05 Thread Nick Dyer
the bootloader. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 32/53] Input: atmel_mxt_ts - Recover from bootloader on probe

2013-06-05 Thread Nick Dyer
This code attempts to recover from 1(b) and 3. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 68 ++ 1 file changed, 51 insertions(+), 17 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers

[PATCH 28/53] Input: atmel_mxt_ts - Move input device init into separate function

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 129 +- 1 file changed, 75 insertions(+), 54 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index c91b22f

[PATCH 46/53] Input: atmel_mxt_ts - Handle reports from T47 Stylus object

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH 48/53] Input: atmel_mxt_ts - Initialize power config before and after downloading cfg

2013-06-05 Thread Nick Dyer
If the power configuration is zero then the configuration download may fail to work properly, so initialize T7 before config download. The downloaded configuration may reset the T7 power configuration so it must be re-initialized afterwards. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked

[PATCH 23/53] Input: atmel_mxt_ts - Use deep sleep mode when stopped

2013-06-05 Thread Nick Dyer
. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 100 ++ 1 file changed, 74 insertions(+), 26 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH 21/53] Input: atmel_mxt_ts - Read screen config from chip

2013-06-05 Thread Nick Dyer
print it out. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- arch/arm/mach-exynos/mach-nuri.c |3 - arch/arm/mach-exynos/mach-universal_c210.c |3 - arch/arm/mach-s5pv210/mach-goni.c |3 - drivers/input/touchscreen

[PATCH 49/53] Input: atmel_mxt_ts - Add regulator control support

2013-06-05 Thread Nick Dyer
Allow the driver to optionally manage enabling/disable power to the touch controller itself. If the regulators are not present then use the deep sleep power mode instead. For a correct power on sequence, it is required that we have control over the RESET line. Signed-off-by: Nick Dyer nick.d

[PATCH 44/53] Input: atmel_mxt_ts - Verify Information Block checksum on probe

2013-06-05 Thread Nick Dyer
diagnosis. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 181 ++ 1 file changed, 111 insertions(+), 70 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b

[PATCH 08/53] Input: atmel_mxt_ts - Initialise IRQ before probing

2013-06-05 Thread Nick Dyer
(such as at mxt_proc_message) because some objects may be used for completions (T6). Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 73 +- 1 file changed, 51 insertions(+), 22 deletions(-) diff

[PATCH 05/53] Input: atmel_mxt_ts - Select FW_LOADER for firmware code

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig index f9a5fd8..beb5ad1 100644 --- a/drivers

[PATCH 40/53] Input: atmel_mxt_ts - implement I2C retries

2013-06-05 Thread Nick Dyer
Some maXTouch chips (eg mXT1386) will not respond on the first I2C request when they are in a sleep state. It must be retried after a delay for the chip to wake up. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 45

[PATCH 19/53] Input: atmel_mxt_ts - Improve bootloader progress output

2013-06-05 Thread Nick Dyer
By implementing a frame counter, print out fewer debug messages (the firmware may contain hundreds of frames). Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c |8 +++- 1 file changed, 7 insertions

[PATCH 36/53] Input: atmel_mxt_ts - Implement T44 message handling

2013-06-05 Thread Nick Dyer
maXTouch chips allow the reading of multiple messages in a single I2C transaction. The number of messages available to be read is given by the value in the T44 object which is located directly before the T5 object. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble

[PATCH 29/53] Input: atmel_mxt_ts - Handle APP_CRC_FAIL on startup

2013-06-05 Thread Nick Dyer
If the bootloader fails to start the appmode image on the touch controller, it stays in bootloader mode. It is possible to reflash a working firmware image from this state. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen

[PATCH 41/53] Input: atmel_mxt_ts - Implement T63 Active Stylus support

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 93 +- 1 file changed, 92 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH 30/53] Input: atmel_mxt_ts - Handle bootloader previously unlocked

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH 24/53] Input: atmel_mxt_ts - Add shutdown function

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index b3fe56c

[PATCH 38/53] Input: atmel_mxt_ts - Output status from T42 Touch Suppression

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH 12/53] Input: atmel_mxt_ts - Improve error reporting and debug

2013-06-05 Thread Nick Dyer
Add error messages for probe errors Report type in invalid object type Tweak some other debug output messages Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c | 33 +- 1 file

[PATCH 03/53] Input: atmel_mxt_ts - Return IRQ_NONE when interrupt handler fails

2013-06-05 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk Acked-by: Benson Leung ble...@chromium.org --- drivers/input/touchscreen/atmel_mxt_ts.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 45/53] Input: atmel_mxt_ts - Use T18 RETRIGEN to handle IRQF_TRIGGER_LOW

2013-06-05 Thread Nick Dyer
called RETRIGEN which, when enabled, reasserts the interrupt line every cycle if there are messages waiting. This also makes the workaround unnecessary. Note: the RETRIGEN feature is only in some firmware versions/chips, it's not valid simply to enable the bit. Signed-off-by: Nick Dyer nick.d

Re: [PATCH 10/53] Input: atmel_mxt_ts - Add memory access interface via sysfs

2013-06-05 Thread Nick Dyer
Dmitry Torokhov wrote: On Wednesday, June 05, 2013 06:37:03 PM Nick Dyer wrote: Atmel maXTouch chips can be addressed via an Object Based Protocol which defines how i2c registers are mapped to different functions within the chips. This interface exposes the register map and allows user-space

Re: [PATCH 10/53] Input: atmel_mxt_ts - Add memory access interface via sysfs

2013-06-05 Thread Nick Dyer
Dmitry Torokhov wrote: We have made a deliberate choice to implement this via sysfs rather than debugfs since it needs to work on devices that don't have debugfs enabled. Then they will have to enable it. Re-implementing something because someone might not enable needed subsystem is not a

Re: [PATCH 10/53] Input: atmel_mxt_ts - Add memory access interface via sysfs

2013-06-05 Thread Nick Dyer
Dmitry Torokhov wrote: debugfs is a debug filesystem. This interface is useful for purposes which are not debug. What other purposes does it serve? I'd expect you need it during new board bringup. Yes, during board bringup it's extremely useful. We have implemented numerous open and closed

Re: Atmel updates to atmel_mxt_ts touch controller driver

2013-04-08 Thread Nick Dyer
Henrik Rydberg wrote: >> Most of my focus in working on these changes has been to support Atmel's >> customers, who tend not to be using the mainline kernel. Unfortunately this >> has generated somewhat of a backlog in getting these improvements into >> mainline. My current focus is to get these

Re: Atmel updates to atmel_mxt_ts touch controller driver

2013-04-08 Thread Nick Dyer
Henrik Rydberg wrote: Most of my focus in working on these changes has been to support Atmel's customers, who tend not to be using the mainline kernel. Unfortunately this has generated somewhat of a backlog in getting these improvements into mainline. My current focus is to get these

Re: Atmel updates to atmel_mxt_ts touch controller driver

2013-02-22 Thread Nick Dyer
you can get that from dmesg output (it's in T6 messages). You can try the mxt-app tool without the driver changes via i2c-dev, just run it like "mxt-app -d2 -a4b" (for /dev/i2c-2, addr 4b). cheers -- Nick Dyer Senior Software Engineer, ITDev Hardware and Software Development Consultancy -

Re: [PATCH 11/40] Input: atmel_mxt_ts - Bootloader addresses for mXT1664/mXT1188S

2013-02-22 Thread Nick Dyer
Benson Leung wrote: > This is disappointing that Atmel decided to change the bootloader > address scheme for the 1664S family. Unfortunately, this ifdef won't > work for situations where there are more than one Atmel device of a > different kind on a system using this same driver. > > For the

[PATCH 18/40] Input: atmel_mxt_ts - Add support for dynamic message size

2013-02-22 Thread Nick Dyer
maXTouch chips and firmware versions have different sizes of message buffer depending on the objects used, therefore it can't be hardcoded in the driver. Allocate a buffer on probe instead. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 97

[PATCH 01/40] Input: atmel_mxt_ts - Make wait-after-reset period compatible with all chips

2013-02-22 Thread Nick Dyer
From: Iiro Valkonen The delay before the chip can be accessed after reset varies between different chips in maXTouch family. Waiting for 200ms and then monitoring the CHG (chip is ready when the line is low) is guaranteed to work with all chips. Signed-off-by: Nick Dyer --- drivers/input

[PATCH 17/40] Input: atmel_mxt_ts - Allow input device name to be configured from platform data

2013-02-22 Thread Nick Dyer
Some systems (for example Android IDC files) rely on this name being a specific string. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c |6 +- include/linux/i2c/atmel_mxt_ts.h |1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 35/40] Input: atmel_mxt_ts - Improve messages relating to info block read

2013-02-22 Thread Nick Dyer
The matrix size is only used to print out a debug message, and results in some rather confusing code to re-read it if the device configuration is updated. So don't print it out. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 ++ 1 file

[PATCH 27/40] Input: atmel_mxt_ts - Add check for incorrect firmware file format

2013-02-22 Thread Nick Dyer
Atmel supplies firmware files in ASCII HEX format (.enc) which must be converted before they can be loaded by kernel driver. Try to detect the error and print a friendly error message rather than feeding junk to the bootloader. Signed-off-by: Nick Dyer --- drivers/input/touchscreen

[PATCH 06/40] Input: atmel_mxt_ts - Remove unnecessary platform data

2013-02-22 Thread Nick Dyer
complex and makes device integration more error-prone because it duplicates information set elsewhere. In addition, different versions of maXTouch chips may have these values in different places or may not even have them at all. Signed-off-by: Nick Dyer --- arch/arm/mach-exynos/mach-nuri.c

[PATCH 26/40] Input: atmel_mxt_ts - Implement T63 Active Stylus support

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 91 +- 1 file changed, 90 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index b0dcae4..3aac912 100644

[PATCH 34/40] Input: atmel_mxt_ts - Remove mxt_make_highchg

2013-02-22 Thread Nick Dyer
rare), so it is better to either 1) Use level-triggered interrupts or 2) Use edge-triggered interrupts and enable the RETRIGEN feature in T18 COMMSCONFIG Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 13 + 1 file changed, 1 insertion(+), 12 deletions

[PATCH 20/40] Input: atmel_mxt_ts - Split interrupt handler into separate functions

2013-02-22 Thread Nick Dyer
This is in preparation for support of the T44 message count object. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 112 -- 1 file changed, 58 insertions(+), 54 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers

[PATCH 24/40] Input: atmel_mxt_ts - Implement vector/orientation support

2013-02-22 Thread Nick Dyer
to be enabled in maXTouch config (zero DISVECT bit in T9 CTRL field) Android converts the format in frameworks/base/services/input/Input.cpp, search for ORIENTATION_CALIBRATION_VECTOR. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c |9 +++-- 1 file changed, 7 insertions

<    4   5   6   7   8   9   10   >