Atmel updates to atmel_mxt_ts touch controller driver

2013-02-22 Thread Nick Dyer
patchset. 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 "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo inf

[PATCH 14/40] Input: atmel_mxt_ts - add shutdown function

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index bbe9aff..3994564 100644 --- a/drivers/input

[PATCH 19/40] Input: atmel_mxt_ts - Decode T6 status messages

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 41 ++ 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index c879778..bdf7555 100644

[PATCH 02/40] Input: atmel_mxt_ts - add macros for object instances and size

2013-02-22 Thread Nick Dyer
The raw Atmel Object Based Protocol stores the instances and size minus one as an efficiency measure. This can easily lead to bugs. Rename the variables to make it clear what they are and implement macros for the conversion. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 32/40] Input: atmel_mxt_ts - remove unused defines

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 67 +- 1 file changed, 1 insertion(+), 66 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 8794353..2f3793a 100644

[PATCH 08/40] Input: atmel_mxt_ts - Download device config using firmware loader

2013-02-22 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 207

[PATCH 05/40] Input: atmel_mxt_ts - Improve error reporting and debug

2013-02-22 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 35 -- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH 09/40] Input: atmel_mxt_ts - Calculate and check CRC in config file

2013-02-22 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 237

[PATCH 28/40] Input: atmel_mxt_ts - Add CHG line handling in bootloader code

2013-02-22 Thread Nick Dyer
The bootloader state machine toggles the CHG/Interrupt line to indicate when it has transitioned between states. Waiting for this event improves bootloader reliability. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 29 +++-- 1 file changed, 27

[PATCH 23/40] Input: atmel_mxt_ts - Output status from T42 Touch Suppression

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 94e54bd..b1fdc36 100644 --- a/drivers/input/touchscreen

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

2013-02-22 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 --- drivers/input

[PATCH 39/40] Input: atmel_mxt_ts - Add regulator control support

2013-02-22 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

[PATCH 15/40] Input: atmel_mxt_ts - Improve touch reporting for T9

2013-02-22 Thread Nick Dyer
Handle multiple touch statuses in one report Rename defines to add T9 Rename pressure to amplitude to match device spec Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 85 ++ 1 file changed, 51 insertions(+), 34 deletions(-) diff --git

[PATCH 30/40] Input: atmel_mxt_ts - recover from bootloader on probe

2013-02-22 Thread Nick Dyer
This code attempts to recover from 1(b) and 3. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 33 +++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

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

2013-02-22 Thread Nick Dyer
The mXT1664S family chips use different mappings for bootloader addresses. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

[PATCH 10/40] Input: atmel_mxt_ts - Improve bootloader support

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig|1 + drivers/input/touchscreen/atmel_mxt_ts.c | 318 +++--- 2 files changed, 244 insertions(+), 75 deletions(-) diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig

[PATCH 22/40] Input: atmel_mxt_ts - Output status from T48 Noise Supression

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 238c11c..94e54bd 100644 --- a/drivers/input

[PATCH 07/40] Input: atmel_mxt_ts - Implement CRC check for configuration data.

2013-02-22 Thread Nick Dyer
-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 61 -- include/linux/i2c/atmel_mxt_ts.h |1 + 2 files changed, 51 insertions(+), 11 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 33/40] Input: atmel_mxt_ts - Verify Information Block checksum on probe

2013-02-22 Thread Nick Dyer
diagnosis. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 217 ++ 1 file changed, 129 insertions(+), 88 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 2f3793a..6dbd3d6

[PATCH 37/40] Input: atmel_mxt_ts - Release touch state during suspend

2013-02-22 Thread Nick Dyer
- flush any messages created after suspend - tell app layer that slots were released at suspend Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 36 +- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen

[PATCH 04/40] Input: atmel_mxt_ts - Implement debug output for messages

2013-02-22 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. This does impact touch performance somewhat. Signed-off-by: Nick Dyer --- dri

[PATCH 36/40] Input: atmel_mxt_ts - Handle reports from T47 Stylus object

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 267b5d8..79fe3ba 100644 --- a/drivers/input

[PATCH 12/40] Input: atmel_mxt_ts - Read screen config from chip

2013-02-22 Thread Nick Dyer
Rather than having a separate configuration in platform data for screen size and orientation, read it from the settings that the touchscreen controller is using. Signed-off-by: Nick Dyer --- arch/arm/mach-exynos/mach-nuri.c |3 - arch/arm/mach-exynos/mach-universal_c210.c |3

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

2013-02-22 Thread Nick Dyer
Some maXTouch chips 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 39 +- 1 file changed, 27 insertions

[PATCH 03/40] Input: atmel_mxt_ts - Add memory access interface via sysfs

2013-02-22 Thread Nick Dyer
ostic data, while the device is running. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 1de1d2

[PATCH 16/40] Input: atmel_mxt_ts - Move input device configuration into separate function

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 83 +++--- 1 file changed, 53 insertions(+), 30 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 335fa1b..b7e5646 100644

[PATCH 21/40] Input: atmel_mxt_ts - Implement T44 message handling

2013-02-22 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 188

[PATCH 13/40] Input: atmel_mxt_ts - Use deep sleep mode when stopped

2013-02-22 Thread Nick Dyer
to issue a calibrate command after the chip has spent any time in deep sleep. This patch also deals with the situation where the power configuration is zero on probe, which would mean that the device never wakes up to execute commands. Signed-off-by: Nick Dyer --- drivers/input/touchscreen

[PATCH 29/40] Input: atmel_mxt_ts - Use wait_for_chg in soft_reset

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index f182228..96c961e 100644 --- a/drivers/input/touchscreen

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

2013-02-22 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 | 307 -- 1 file changed, 296 insertions(+), 11 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 31/40] Input: atmel_mxt_ts - Implement T15 Key Array support

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 52 ++ 1 file changed, 52 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 02fce62..8794353 100644 --- a/drivers/input

[PATCH 31/40] Input: atmel_mxt_ts - Implement T15 Key Array support

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 52 ++ 1 file changed, 52 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 02fce62..8794353 100644

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

2013-02-22 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 | 307 -- 1 file changed, 296 insertions(+), 11 deletions(-) diff --git a/drivers/input

[PATCH 29/40] Input: atmel_mxt_ts - Use wait_for_chg in soft_reset

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index f182228..96c961e 100644

[PATCH 21/40] Input: atmel_mxt_ts - Implement T44 message handling

2013-02-22 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 --- drivers/input/touchscreen

[PATCH 13/40] Input: atmel_mxt_ts - Use deep sleep mode when stopped

2013-02-22 Thread Nick Dyer
to issue a calibrate command after the chip has spent any time in deep sleep. This patch also deals with the situation where the power configuration is zero on probe, which would mean that the device never wakes up to execute commands. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers

[PATCH 16/40] Input: atmel_mxt_ts - Move input device configuration into separate function

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 83 +++--- 1 file changed, 53 insertions(+), 30 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 335fa1b

[PATCH 03/40] Input: atmel_mxt_ts - Add memory access interface via sysfs

2013-02-22 Thread Nick Dyer
, while the device is running. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

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

2013-02-22 Thread Nick Dyer
Some maXTouch chips 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 | 39 +- 1 file

[PATCH 12/40] Input: atmel_mxt_ts - Read screen config from chip

2013-02-22 Thread Nick Dyer
Rather than having a separate configuration in platform data for screen size and orientation, read it from the settings that the touchscreen controller is using. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- arch/arm/mach-exynos/mach-nuri.c |3 - arch/arm/mach-exynos/mach

[PATCH 36/40] Input: atmel_mxt_ts - Handle reports from T47 Stylus object

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 267b5d8..79fe3ba 100644

[PATCH 04/40] Input: atmel_mxt_ts - Implement debug output for messages

2013-02-22 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. This does impact touch performance somewhat. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk

[PATCH 37/40] Input: atmel_mxt_ts - Release touch state during suspend

2013-02-22 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 36 +- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 33/40] Input: atmel_mxt_ts - Verify Information Block checksum on probe

2013-02-22 Thread Nick Dyer
diagnosis. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 217 ++ 1 file changed, 129 insertions(+), 88 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

[PATCH 07/40] Input: atmel_mxt_ts - Implement CRC check for configuration data.

2013-02-22 Thread Nick Dyer
-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 61 -- include/linux/i2c/atmel_mxt_ts.h |1 + 2 files changed, 51 insertions(+), 11 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH 22/40] Input: atmel_mxt_ts - Output status from T48 Noise Supression

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 238c11c..94e54bd 100644

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

2013-02-22 Thread Nick Dyer
The mXT1664S family chips use different mappings for bootloader addresses. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH 10/40] Input: atmel_mxt_ts - Improve bootloader support

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/Kconfig|1 + drivers/input/touchscreen/atmel_mxt_ts.c | 318 +++--- 2 files changed, 244 insertions(+), 75 deletions(-) diff --git a/drivers/input/touchscreen/Kconfig b/drivers

[PATCH 30/40] Input: atmel_mxt_ts - recover from bootloader on probe

2013-02-22 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 | 33 +++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH 15/40] Input: atmel_mxt_ts - Improve touch reporting for T9

2013-02-22 Thread Nick Dyer
Handle multiple touch statuses in one report Rename defines to add T9 Rename pressure to amplitude to match device spec Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 85 ++ 1 file changed, 51 insertions(+), 34

[PATCH 39/40] Input: atmel_mxt_ts - Add regulator control support

2013-02-22 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 38/40] Input: atmel_mxt_ts - Initialize power config before and after downloading cfg

2013-02-22 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

[PATCH 23/40] Input: atmel_mxt_ts - Output status from T42 Touch Suppression

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 94e54bd..b1fdc36 100644

[PATCH 28/40] Input: atmel_mxt_ts - Add CHG line handling in bootloader code

2013-02-22 Thread Nick Dyer
The bootloader state machine toggles the CHG/Interrupt line to indicate when it has transitioned between states. Waiting for this event improves bootloader reliability. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 29

[PATCH 09/40] Input: atmel_mxt_ts - Calculate and check CRC in config file

2013-02-22 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 --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 05/40] Input: atmel_mxt_ts - Improve error reporting and debug

2013-02-22 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 35 -- 1 file changed, 24 insertions(+), 11 deletions(-) diff

[PATCH 08/40] Input: atmel_mxt_ts - Download device config using firmware loader

2013-02-22 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 207

[PATCH 02/40] Input: atmel_mxt_ts - add macros for object instances and size

2013-02-22 Thread Nick Dyer
The raw Atmel Object Based Protocol stores the instances and size minus one as an efficiency measure. This can easily lead to bugs. Rename the variables to make it clear what they are and implement macros for the conversion. Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input

[PATCH 32/40] Input: atmel_mxt_ts - remove unused defines

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 67 +- 1 file changed, 1 insertion(+), 66 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 8794353

[PATCH 19/40] Input: atmel_mxt_ts - Decode T6 status messages

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 41 ++ 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index c879778

[PATCH 14/40] Input: atmel_mxt_ts - add shutdown function

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index bbe9aff..3994564 100644

Atmel updates to atmel_mxt_ts touch controller driver

2013-02-22 Thread Nick Dyer
patchset. 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 unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

[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 nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c |9 +++-- 1 file

[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 nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 112 -- 1 file changed, 58 insertions(+), 54 deletions(-) diff --git a/drivers/input/touchscreen

[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 nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 13 + 1 file changed, 1 insertion

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

2013-02-22 Thread Nick Dyer
Signed-off-by: Nick Dyer nick.d...@itdev.co.uk --- 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

[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 nick.d...@itdev.co.uk --- arch/arm/mach-exynos

[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 nick.d...@itdev.co.uk --- drivers/input

[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 nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 26

[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 nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c |6 +- include/linux/i2c/atmel_mxt_ts.h |1 + 2 files changed, 6 insertions(+), 1 deletion

[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 iiro.valko...@atmel.com 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

[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 nick.d...@itdev.co.uk --- drivers/input/touchscreen/atmel_mxt_ts.c | 97

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

Re: Atmel updates to atmel_mxt_ts touch controller driver

2013-02-22 Thread Nick Dyer
, but 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

<    5   6   7   8   9   10