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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
- 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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
901 - 974 of 974 matches
Mail list logo