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
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
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
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
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 |
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
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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
,
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
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
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
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
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
* 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
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
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
.
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
.
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
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
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
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
(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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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
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
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
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
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
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
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
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
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
801 - 900 of 974 matches
Mail list logo