Commit Graph

686 Commits

Author SHA1 Message Date
Amy Maloche
27495ca54e input: atmel_mxt_ts: Fix macro (CONFIG_OF) name usage.
Macro should be CONFIG_OF and not OF_CONFIG.

Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
(cherry picked from commit 56cb58c1b832760adfe382b845e52837b7ea7e85)

Conflicts:

	drivers/input/touchscreen/atmel_mxt_ts.c

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
(cherry picked from commit 54d1b97939cab0482aa5f4549e81ecf3599e2024)

Change-Id: I102d6871958a03ca596c7c538c539fcc27a4e14d
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:19:47 -08:00
Amy Maloche
2dab38962a input: cyttsp-i2c-qc: move to multitouch protocol B
Move from multitouch protocol A to protocol B, and since some
applications are not working under BTN_2 reporting, all the instances
of HAT are removed along with BTN_2 reporting.

Change-Id: I25c9c811078452eb9ff11159d0f45c9e3f831849
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
(cherry picked from commit 94f65fcf5d89b7943777750b2e358c7421f26400)

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:18:34 -08:00
Jongrak Kwon
b56d966c19 mako: touch: PLG137 firmware E027 update
- Fixed issues in production test
  . ghost touch in high and low temperature
  . ghost touch with noisy charger connect
  . sensing test
- Stablized thumb operation
- Fixed flapping finger width report

Change-Id: I350ed94b9bfcb5a8feba3e0c9529ea86472097cd
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:08 -08:00
Jongrak Kwon
90b4ddbbc0 mako: touch: PLG137 firmware E015 update
- Improved ghost touch error
- Improved unstable when lifting finger

Change-Id: Icc752c07ad05f5888eff8db4a8064007d3e471f4
2013-03-04 12:45:34 -08:00
Jongrak Kwon
534f09d6e4 mako: touch: preserving touch data coherency
Synaptics firmware maintains internal cache to store a scan of
finger data so that the host reads finger data from this cache.
The firmware updates the cache when the host reads it nonsequentially.

The current driver reads only present finger data, which can cause
unexpected nonsequential access to cache and the cache can be updated
before the host reads the data, resulting in losing finger data coherency.

Modified the driver to access data sequentially even if there are
not present fingers in the middle so that the finger data coherency
can be preserved.

Change-Id: I4b975c2ab2445078f2a81c3dd4ce484002d27933
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:33 -08:00
Jongrak Kwon
6ea1f6f413 mako: touch: error checking for firmware update
Corrected not working touch problem when the firmware update was failed or
LCD was turned on or off during firmware update.

Change-Id: Ib61c3d9927d670eb4091253efc71499b88b51b9f
2013-03-04 12:45:19 -08:00
Jongrak Kwon
282302c825 mako: touch: add sys node for charger status update
Will be used to enable noise mitigation bit in firmware
to reduce noise when TA/USA/Wireless charger is connected.

Change-Id: Ia4174271758ca2dbd013b80ddcabffea2e2cae82
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:45:18 -08:00
Jongrak Kwon
fa7ae39986 mako: touch: ignore abnormal touch interrupt
When the touch driver detected an interrupt, it checks the interrupt
status register. If the value of the register is not normal,
such as zero, the touch driver considered it as a problem on the
device and reinitialized the touch device to recover.

This should not happen with normal touch firmware but, the touch
driver also need to ignore this kind of abnormal interrupt
rather than resetting the device, which causing unexpected freezing
during touch operation.

Change-Id: I989a9eab594f34ed9a32cea3e477faed38e32029
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:44:46 -08:00
Jongrak Kwon
42c990ff81 mako: touch: bug fix on report mode setting
There was a bug on setting the report mode, breaking other bit fields.
Due to this, the firmware jitter filter was disabled, causing
some noises. Expect more stable position report with this correction.

Change-Id: I14f48c39f654e5771eaf8b5a2e6a2fd0c713a3ee
2013-03-04 12:44:42 -08:00
Jongrak Kwon
a899208770 mako: touch: PLG137 firmware E009 update
Removed PEN support to make finger operation stable.

Change-Id: Iea1268b91fab51aa100591e359907907ab8adfdb
2013-03-04 12:44:25 -08:00
Jongrak Kwon
93d8e0841c mako: touch: fix the tool type to finger
The tool type checking for pen was incorrect.

Sometimes finger touch produces the same condition as PEN which is
width major and minor are all zero.
This wrong detection change the tracking ID, resulting in two finger
touch report even when single touch is used.

Fix the tool type to finger since mako will support only finger.

Change-Id: I4c7631b77fed677d27d430986d70407af3406aca
2013-03-04 12:44:25 -08:00
Jongrak Kwon
d299bede31 mako: touch: PLG137 firmware E008 update
Resolved touch malfunction when large object,
such as palm, is on the touch device when the system
is resumed by power key.

Noise immunity is also improved.

Change-Id: I020b861a8b1ad909ae7f00aed34de3b6da47367a
2013-03-04 12:44:15 -08:00
ks.kwon
18ccbbdbcc mako: touch: reset_pin control during touch power control.
This commit is to assert/de-assert reset signal during suspend/resume.
Without this commit, there is a 2~3mA of leakage current from reset pin
to touch contorller IC.

Change-Id: I32717412b1dec13996aa986c7939c76dd6453ebb
2013-03-04 12:44:13 -08:00
Jongrak Kwon
9124cb89b9 mako: touch: PLG137 firmware E004 udpate
Noise reduction.

Change-Id: I29a44e0b1a1d2f64acef527177b38b7786492e63
2013-03-04 12:43:33 -08:00
Jongrak Kwon
3a2532eeba mako: touch: support new touch panel (PLG137/0.9T)
Use ARRAYED_TOUCH_FW_BIN feature to support both new(PLG137/0.9T)
and old(TM2000/0.55T) panels with one binary.

Firmware Verison: New - E003, Old - E059 (no change)

Change-Id: Ia96eba137f8a02054eb8067d47dc887edffb9970
2013-03-04 12:43:21 -08:00
Jongrak Kwon
147bdffbae mako: touch: firmware upgrade and resolution change
- Firmware: E052 -> E059 (noise tunning & resolution change)
- Resolution: 1100x1900 -> 1536x2560

Need to reboot the system when abnormal touch work after upgrade

Change-Id: I476180c2a1fa5528fc90d2933072ac01a7e1fd31
2013-03-04 12:43:09 -08:00
Jongrak Kwon
c4a40d73e9 mako: touch: added tool type and touch minor option
- Let the low level driver pass tool type and use it
  (Synaptics: PEN when major = 0, minor = 0, Other: FINGER)
- Split touch major and minor value to choose
  circle vs. ellipse from platform datai
  (Currently defined to support circle)

Change-Id: Ibd79efb5d88843174c45147a4c7ea170632c3fdb
2013-03-04 09:12:26 -08:00
Jongrak Kwon
2809882d5f mako: touch: removed ghost codes and added touch point trace
Change-Id: Id9c060ba8ad12ade442bbc22fac8a0cde0715c41
2013-03-04 09:12:23 -08:00
Jongrak Kwon
d8943732ca mako: touch: disable ghost finger correction
The ghost function sets FORCE_FAST_RELAXATION and
FORCE_UPDATE registers, which cause touch abnormal function
after resume.

Also code clean up for register map initialization.

Change-Id: Ib442d4d7a2e995048fba902fe852a3851fdbf418
2013-03-04 09:12:21 -08:00
Jongrak Kwon
37b9eb8046 mako: touch: use MT protocol type B
- not applied to hard key function, so removed hard key stuff
- jitter and accuracy filter function also changed but not used at the moment
- corrected some wrong error handling in touch_probe and synaptics_ts_probe

Change-Id: I1af3032612cdedbfac9da9c5df17eeb861344226
2013-03-04 09:12:20 -08:00
Jongrak Kwon
3864ba662e mako: touch: upgrade firmware from E032 to E052
Also removed unused firmware SynaImage_Jp.h and
variable name correction.

Change-Id: I1332da88ec4fe5538cd68bace7ca7c701795dce3
2013-03-04 09:12:11 -08:00
Jongrak Kwon
9f216de2ac mako: touch: disable S/W accuracy and jitter filter
The feature has side effects on handling touch event.

Also, resolved divide by zero exception caused by
unused button initialization codes.

Change-Id: I9b1d1f302b9025a0d1d15891e5f320e7c149ae92
2013-03-04 09:12:10 -08:00
Jongrak Kwon
8a8a517fad mako: touch: resolved touch problem after resume
Checking the interrupt pin after reading touch data

Change-Id: Ide8688fed10c228b4bed7947bfccffabd545c5f8
2013-03-04 09:12:03 -08:00
Jongrak Kwon
0b7f6b4498 mako: touch: disable button and clean up
- disable button function
- clean up configuration
- remove unused codes
- remove softkey handlers
- remove interrupt thread (ISR send to work queue directly)

Change-Id: Id8bbf5d554e12a477e402c966b9ef21e1a02d86f
2013-03-04 09:11:54 -08:00
Jongrak Kwon
000adcf065 mako: touch driver merge
- lge touch common driver
- synaptics touch driver integration with lge common driver

Change-Id: I72e53f8d16610155ab1a31a366e33910a41643be
2013-02-28 12:14:25 -08:00
Amy Maloche
8b6e5d26eb input: atmel_mxt_ts: add support for 336S and 1664S controllers
New controllers in the Atmel maXTouch family require support
for new objects, and the addition of their family ID's and
respective reset times.

Change-Id: I3fb9494e7cc88a6b213cbe0310d95fdb4be299aa
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-02-27 18:20:49 -08:00
Amy Maloche
19b50fd2c9 tsc2007: Set input property bit to indicate a direct input device
Prop bit is checked in userspace and must be set in
driver in order to be recognized correctly, since it defaults
to mouse pointer.

Change-Id: I5eadfe45baac93b9e315381dcacc5a02c27bc0c9
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-02-27 18:18:47 -08:00
Anirudh Ghayal
5755c90e06 input: msm_ts: Set input property bit to indicate direct input device
Prop bit is checked in userspace and must be set in driver in order
to be recognized as a direct input device (touchscreen).

Change-Id: I80bf2b9fd390ed58a22a78834f71afe41e3d2776
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2013-02-27 18:17:39 -08:00
Amy Maloche
d5633453a0 touchscreen: cyttsp-i2c-qc: Add low power mode functionality
Low power mode changes are made in system information mode,
so modify ISR to check for completion of transition into this
mode.  Then, modify values and transition back into operating
mode.  Enable handshaking so that no communication is missed.

Change-Id: I0692e13810ab4aa88f8626d75a4e7f1ceb885a71
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-02-27 18:15:40 -08:00
Mohan Pallaka
480cd24b76 input: atmel_mxt_ts: Add firmware upgrade support for MXT224E
Add firmware upgrade support for MXT224E and also support
the new T55 object introduced with the newer firmware. Read
T38 object from touch controller after the firmware upgrade
to avoid reading/writing into old T38 address.

Change-Id: Ifc7e0b2c31badbbf5a402413e841606db4f6dc66
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2013-02-27 18:15:24 -08:00
Amy Maloche
b013b620ac cy8c_ts: Set input property bit to indicate a direct input device
Prop bit is checked in userspace and must be set in
driver in order to be recognized correctly, since it defaults
to mouse pointer.

Change-Id: Ifbd7ffe6633860ab3858cf2b3465d593724c5c64
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-02-27 18:15:13 -08:00
Amy Maloche
ac760faa9d cyttsp-i2c-qc: Set input property bit to indicate a direct input device
Prop bit is checked in userspace and must be set in
driver in order to be recognized correctly, since it defaults
to mouse pointer.

Change-Id: Ibc3ce400033af171b60821c2945596676107eb75
Signed-off-by: Jessica Gonzalez <jgaona@codeaurora.org>
2013-02-27 18:12:02 -08:00
Amy Maloche
c9e66d1ecb atmel_mxt_ts: Set input property bit to indicate a direct input device
Prop bit is checked in userspace and must be set in
driver in order to be recognized correctly, since it defaults
to mouse pointer.

Change-Id: Id490152174624e86e8b62b746d25baf2d544080a
Signed-off-by: Jessica Gonzalez <jgaona@codeaurora.org>
2013-02-27 18:12:02 -08:00
Amy Maloche
cdafa428bc ft5x06: Set input property bit to indicate a direct input device
Prop bit is checked in userspace and must be set in
driver in order to be recognized correctly, since it defaults
to mouse pointer.

Change-Id: Ibdc78547e6376e6db54db75b1423718d13afaaa7
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-02-27 18:11:49 -08:00
Amy Maloche
c9ff1f133a atmel_maxtouch: Set input property bit to indicate a direct input device
Prop bit is checked in userspace and must be set in
driver in order to be recognized correctly, since it defaults
to mouse pointer.

Change-Id: I8432716573a365c11b6837d1ce756364d2b98946
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-02-27 18:11:48 -08:00
Mohan Pallaka
bb2395a407 input: atmel_mxt_ts: Add support for T42 object
Touch suppression (T42) is used for suppressing unintentional
large touches such as palm. Add a handler for T42 to invalidate
touches when touch suppression is active

Change-Id: Ie24a24b685a947f047df61ead41660449c077971
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2013-02-27 18:11:11 -08:00
Stephen Boyd
533badde3d input: touchscreen: Add MSM legacy touchscreen driver
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-25 11:30:54 -08:00
Mohan Pallaka
a3bbf8ce4c input: ft5x06_ts: Add driver for ft5x06 series
Ft5x06 controllers are single chip capacitive
touch panel controller ICs with a built-in 8 bit
Micro Controller Unit. It supports multi-touch
capability and can detect up to five touches.

Change-Id: I39eb1175d473d1f2c463e1c4a0a1606307da9dc0
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2013-02-25 11:30:53 -08:00
Stephen Boyd
8835b4caf2 input: touchscreen: Add msm_ts driver
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-25 11:30:52 -08:00
Anirudh Ghayal
b5a1434021 input: tsc2007: Specify max/min coordinates from platform data
Provides flexibility to specify max/min x and y coordinates from
platform data. Useful in cases where the TS controller reports
coordinates at an offset from the predefined min/max values
(0 and 4096 respectively).

Change-Id: Ia93a8940078aa5960d1d900ac56b0b3354c82e40
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2013-02-25 11:30:51 -08:00
Anirudh Ghayal
00883c63af input: tsc2007: Remove unnecessary I2C write in the resume path
Across multiple suspend-resume cycles the I2C write failures
locked out the TSC2007 contoller. Remove this I2C operation
as it is not required.

Change-Id: I8fa97f0fc8eb89c1fd4fe1e3269ea050056d6625
CRs-Fixed: 266968
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2013-02-25 11:30:50 -08:00
Anirudh Ghayal
a0829cee12 input: tsc2007: Add early suspend support
Change-Id: I3c2722e858726ff6a95c3fc284db97b537dd20ee
CRs-Fixed: 258762
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2013-02-25 11:30:49 -08:00
Anirudh Ghayal
6f1bfa9f89 input: tsc2007: Power optimization in suspend/resume for TSC2007
Disable/enable the voltage regulators during suspend/resume operations.

Change-Id: I0d10edc87d07c01327fa2258aae964d430cae7e3
CRs-Fixed: 258762
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2013-02-25 11:30:49 -08:00
Anirudh Ghayal
efe979e255 input: tsc2007: Add features to the TSC2007 driver
The following features are now supported -

1. Inverse coordinates
2. Suspend / resume
3. Interrupt flags from platform data

Change-Id: I08adcdf0fd1c983ffaa958bea23e2ed06aa6e086
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2013-02-25 11:30:48 -08:00
Stephen Boyd
45a7ba329b Revert "Input: tsc2007 - convert to threaded IRQ"
This reverts commit 377dc5538c.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-25 11:30:47 -08:00
Stephen Boyd
e7f3cc5018 Revert "Input: tsc2007 - add open and close methods"
This reverts commit d3654d7ef3.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-25 11:30:46 -08:00
Stephen Boyd
88d5a554d4 Revert "Input: tsc2007 - make sure that X plate resistance is specified"
This reverts commit 341deefe8f.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-25 11:30:45 -08:00
Anirudh Ghayal
d00232f331 input: touchscreen: Add support for TMG200 touch controller
The TMG200 touch controller supports upto two touches. This
driver supports both TMG200 and TMA300 controllers.

CRs-Fixed: 226967
Change-Id: I32871e76d3dd77fec0a723e1c306492bda2de897
Signed-off-by: Anirudh Ghayal <aghayal@qualcomm.com>
2013-02-25 11:30:44 -08:00
Mohan Pallaka
e501de3c01 input: cyttsp-i2c: Enable firmware loading feature from driver
TTSP firmware can be loaded during driver's probe by updating
the firmware header file. This header file contains the firmware
data as part of an array and it's version number.

Change-Id: Ia80aab77d654d64ab3bb14c9b316bb851b90f241
Signed-off-by: Kevin McNeely <kev@cypress.com>
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2013-02-25 11:30:44 -08:00
Stephen Boyd
caba358c3c input: touchscreen: Add our version of cyttsp-i2c
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-25 11:30:43 -08:00