Commit Graph
2977 Commits
Author SHA1 Message Date
Linux Build Service Account c94d38a9a7 Merge "sensors: change sysfs attribute permissions" 2012-11-19 08:57:02 -08:00
Wentao Xu 75a5e4bf66 sensors: change sysfs attribute permissions
Those attributes used to be writable by world. This change allows
read only access by world.

CRs-Fixed: 382751
Change-Id: I516332bb937b4b34d48c810e4c07924189d6a1ba
Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
2012-11-16 17:54:28 -05:00
Sreenivasulu Chalam Charla a339ef7888 input: atmel_mxt_ts: no config update for major mismatch
This change is needed in order to ensure that force config update
logic is controlled by a flag in DT/Board file/Sysfs. If config update
need to be done, then major number on device must match.
If force config update is chosen, then we override the major
version too.

Change-Id: Id1cd0cb333e1090e4d838604ee1895d54b02ce0b
Signed-off-by: Sreenivasulu Chalam Charla <sreeniva@codeaurora.org>
2012-10-31 23:09:20 +05:30
Shantanu Jain 6d7c6e5660 input: Makefile: Add support for QRD SKUD
During the merge of msm-3.4, the TS driver got ommitted
from compilation. The same is added here for QRD SKUD.

Change-Id: I511c2856310595d9e1ad94c1247d168ec40312ca
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2012-10-22 19:35:38 +05:30
Linux Build Service Account 79f3c615fc Merge "Revert "touchscreen: cyttsp-i2c-qc: Add low power mode functionality"" 2012-10-12 01:52:34 -07:00
Linux Build Service Account 58bb66dd94 Merge "Revert "touchscreen: cyttsp-i2c-qc: Configure low power mode based on pdata"" 2012-10-11 20:43:29 -07:00
Sreenivasulu Chalam Charla c90b04c88b Revert "touchscreen: cyttsp-i2c-qc: Add low power mode functionality"
This reverts commit 304d9f5172.
low power mode changes are causing issues like,delay in reponse to
touch , and controller is not recognizing the touch events as its
scan rate is also low in low power mode state . since controller is
not recognizing the touch in low power mode state , so only way
for the controller to come out of low power mode is to do multi-touch
and controller responds randomly to one of the touches and comes out
of the low power mode.

Change-Id: I29669b7deb77c43f2c4564930e0c506446b75825
Signed-off-by: Sreenivasulu Chalam Charla <sreeniva@codeaurora.org>
2012-10-11 13:49:37 +05:30
Linux Build Service Account 19cb70215b Merge "input: gpio-keys: Accept device name from device node" 2012-10-10 15:03:41 -07:00
Sreenivasulu Chalam Charla 6e36e44cfe Revert "touchscreen: cyttsp-i2c-qc: Configure low power mode based on pdata"
This reverts commit 4c43345774.
low power mode changes are causing issues like,delay in reponse to
touch , and controller is not recognizing the touch events as its
scan rate is also low in low power mode state . since controller is
not recognizing the touch in low power mode state , so only way
for the controller to come out of low power mode is to do multi-touch
and controller responds randomly to one of the touches and comes out
of the low power mode.

Change-Id: Iee6a23cd776c9eeb12216675104fd139f05b87ab
Signed-off-by: Sreenivasulu Chalam Charla <sreeniva@codeaurora.org>
2012-10-10 18:14:12 +05:30
Amy Maloche c6d558c152 input: gpio-keys: Accept device name from device node
The device name is not properly set if the platform device
is created from device tree.  Read "input-name" property to
set the device name.

Change-Id: I04a5575cd775f7c66884d603de33a0a49b322432
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2012-10-09 09:30:22 -07:00
Mohan Pallaka dd1f7ccd5d input: pmic8xxx-pwrkey: Support sysfs interface for debounce
Add sysfs entry to configure debounce delay from user space
dynamically.

CRs-fixed: 401582
Change-Id: I23231555832e0506140e25827f544cb5e541e4c6
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2012-10-08 17:53:47 +05:30
Linux Build Service Account 0ed8a6070d Merge "input: pm8xxx-pwrkey: Update key press status during probe" 2012-10-05 02:43:48 -07:00
Linux Build Service Account 583ffe7789 Merge "input: atmel_mxt_ts: Send calibrate command during resume" 2012-10-03 03:16:17 -07:00
Mohan Pallaka 63a5f65704 input: atmel_mxt_ts: Send calibrate command during resume
Touch controller might freeze because of bugs in firmware,
water drops on the panel or other extreme environmental
conditions. In such cases, recover touch by sending
calibrate command during resume.

Change-Id: I821e984fb035e4997ee1bfc78ce7c912f9a08c94
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2012-10-03 13:12:35 +05:30
Amy Maloche e8a03c5551 touchscreen: atmel_mxt_ts: support multiple instances of T9 object
When calculating the minimum report ID, the number of report IDs
for each instance need to be accounted for.

Change-Id: Ib75ce79c732a5b8591324a3a7bb5e83a4c37aba4
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2012-10-02 15:36:38 -07:00
Mohan Pallaka bd38250554 input: pm8xxx-pwrkey: Update key press status during probe
Power key could be in pressed state during boot. Set the flag
to track the press status properly by reading press irq status.

CRs-fixed: 404018
Change-Id: I93a8584420002d9cb399484b3ac77fa2ed954690
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2012-09-26 14:52:42 +05:30
Amy Maloche 94f65fcf5d 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>
2012-09-14 16:16:34 +05:30
Linux Build Service Account 428237092a Merge "touchscreen: cyttsp-i2c-qc: Configure low power mode based on pdata" 2012-09-11 15:54:22 -07:00
Shantanu Jain 4c43345774 touchscreen: cyttsp-i2c-qc: Configure low power mode based on pdata
Low power mode was always being enabled in the driver. Enable
low power mode only if desired (specified via platform data).

CRs-Fixed: 382655
Change-Id: Ia1e22b83d972e3cf9c94407d88f97d5967a61b2f
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2012-09-11 11:43:10 +05:30
Anirudh Ghayal 306e3197b5 input: pwrkey: Handle out-of-order press and release interrupts
There is a possibility of receiving a release interrupt
before press when both these actions (press and release) of the
power-key are very close-by (~1-2ms) to the debounce time
of the key. Handle this case by maintaining a state variable.

Also mark the release interrupt as a wakeup source to
wakeup the system when the above mentioned abnormal case
occurs.

CRs-Fixed: 394289
Change-Id: I74475c1e5159dd30e52aca91243eec7e2fac4d57
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2012-09-11 06:15:24 +05:30
Wentao Xu 04f4cc9ff3 input: mpu3050: adjust LPF bandwidth according to sampling frequency
Low pass filter bandwidth is configured to be equal to or greater than
half of the sampling freqency.

Change-Id: Ib715242692322025c8c2e00ee79fe2fd70941518
Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
2012-08-28 10:13:45 -04:00
Amy Maloche 56cb58c1b8 input: atmel_mxt_ts: Fix macro (CONFIG_OF) name usage
Macro should be CONFIG_OF and not OF_CONFIG.

Change-Id: I5b3094a86f4fb250eed764e4aa88ca0fb4a4bfef
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2012-08-23 17:33:16 -07:00
Mohan Pallaka d96f5032cd input: atmel_mxt_ts: Add device tree support
Parse the device tree elements and fill platform
data structure.

Change-Id: Ia37f1ae420e7092e892bd76a1cf0029950c415d7
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2012-08-21 14:44:29 -07:00
Linux Build Service Account 482454d203 Merge "input: atmel_mxt_ts: add support for 336S and 1664S controllers" into msm-3.4 2012-08-15 16:56:53 -07:00
Amy Maloche 41f1cc38fa 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>
2012-08-14 18:20:40 -07:00
Wentao Xu c7769c01ac input: mpu3050: make sample rate configurable, and use interrupt
Required by 8x30 platform

Change-Id: I51b39e1ee5e367fd72151854e3d421538074d6d6
Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
2012-08-13 10:09:38 -04:00
Linux Build Service Account 5bc7efb378 Merge "tsc2007: Set input property bit to indicate a direct input device" into msm-3.4 2012-08-03 06:49:32 -07:00
Wentao Xu 114c0151c7 msm: 8930: add native support to lis3dh accelerometer
Needed when sensor processor not present. The lis3dh driver is
modified to request regulator

Change-Id: I389d5aa6a7771a9e1fe230ec593ff428e979c236
Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
2012-07-30 14:06:35 -06:00
Anirudh Ghayal 3aaf03e26a 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>
2012-07-26 13:32:25 +05:30
Amy Maloche 08f1cc1232 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>
2012-07-25 11:32:54 -07:00
Linux Build Service Account 86a9cf1133 Merge "STMicroelectronics LIS3DH device driver version 1.1.0" into msm-3.4 2012-07-24 12:12:32 -07:00
Linux Build Service Account c4b646ff80 Merge "touchscreen: cyttsp-i2c-qc: Add low power mode functionality" into msm-3.4 2012-07-15 03:32:43 -07:00
Samuel Huo 84e7b7b293 STMicroelectronics LIS3DH device driver version 1.1.0
For Android/Linux kernel 3.4. This is the initial commit.

Change-Id: I96e300d7b59743df1f757746228b47b5d444c76c
Signed-off-by: Samuel Huo <samuel.huo@st.com>
Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
2012-07-12 19:30:58 -04:00
Mohan Pallaka 78fe53c96f 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>
2012-07-12 16:54:56 +05:30
Amy Maloche 304d9f5172 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>
2012-07-09 12:23:44 -07:00
Amy Maloche 283782850c 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>
2012-07-09 12:19:09 -07:00
Linux Build Service Account 993fb108d3 Merge "input: change mpu3050 driver to request regulator, add poll support" into msm-3.4 2012-06-22 23:11:23 -07:00
Linux Build Service Account a70d8d3c17 Merge "cyttsp-i2c-qc: Set input property bit to indicate a direct input device" into msm-3.4 2012-06-22 21:27:07 -07:00
Linux Build Service Account 53593cb536 Merge "atmel_mxt_ts: Set input property bit to indicate a direct input device" into msm-3.4 2012-06-22 21:27:05 -07:00
Linux Build Service Account f2bd41381a Merge "ft5x06: Set input property bit to indicate a direct input device" into msm-3.4 2012-06-22 08:44:50 -07:00
Linux Build Service Account 17199b88ce Merge "atmel_maxtouch: Set input property bit to indicate a direct input device" into msm-3.4 2012-06-22 08:44:38 -07:00
Wentao Xu dac9e600a5 input: change mpu3050 driver to request regulator, add poll support
Needed on 8x30 MTP/MDP platforms, where interrupt line polled up and
does not work with driver's default configuration

Change-Id: I4827c7a1f7df147245336d18523088c013381f1e
Signed-off-by: Wentao Xu <wentaox@codeaurora.org>
2012-06-22 10:00:43 -04:00
Amy Maloche da85bc6059 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>
2012-06-21 18:22:01 -07:00
Amy Maloche 9d0faa0ce4 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>
2012-06-21 17:54:01 -07:00
Amy Maloche 5520db2210 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>
2012-06-20 11:07:40 -07:00
Amy Maloche dd2703d758 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>
2012-06-20 11:05:08 -07:00
Mohan Pallaka b6acab43a3 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>
2012-06-19 11:47:58 +05:30
Steve Muckle f132c6cf77 Merge commit 'AU_LINUX_ANDROID_ICS.04.00.04.00.126' into msm-3.4
AU_LINUX_ANDROID_ICS.04.00.04.00.126 from msm-3.0.
First parent is from google/android-3.4.

* commit 'AU_LINUX_ANDROID_ICS.04.00.04.00.126': (8712 commits)
  PRNG: Device tree entry for qrng device.
  vidc:1080p: Set video core timeout value for Thumbnail mode
  msm: sps: improve the debugging support in SPS driver
  board-8064 msm: Overlap secure and non secure video firmware heaps.
  msm: clock: Add handoff ops for 7x30 and copper XO clocks
  msm_fb: display: Wait for external vsync before DTV IOMMU unmap
  msm: Fix ciruclar dependency in debug UART settings
  msm: gdsc: Add GDSC regulator driver for msm-copper
  defconfig: Enable Mobicore Driver.
  mobicore: Add mobicore driver.
  mobicore: rename variable to lower case.
  mobicore: rename folder.
  mobicore: add makefiles
  mobicore: initial import of kernel driver
  ASoC: msm: Add SLIMBUS_2_RX CPU DAI
  board-8064-gpio: Update FUNC for EPM SPI CS
  msm_fb: display: Remove chicken bit config during video playback
  mmc: msm_sdcc: enable the sanitize capability
  msm-fb: display: lm2 writeback support on mpq platfroms
  msm_fb: display: Disable LVDS phy & pll during panel off
  ...

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
2012-06-06 18:45:28 -07:00
Anirudh Ghayal 279a2ae5bc input: atmel-mxt-ts: Report the correct pressure value
The contact area was earlier being reported as pressure.
The controller explicitly reports the pressure value, use that.

Change-Id: I1548329a676fd9a6e6a8a63ed76244e68a29c282
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2012-05-18 18:10:36 +05:30
Colin Cross f02fac6330 Merge commit 'v3.4-rc6' into android-3.4
Conflicts:
	arch/arm/mm/cache-l2x0.c
	arch/arm/mm/mmu.c

Change-Id: If4f371a21c052fa597d107c44b128a093e4a8b91
2012-05-07 18:20:34 -07:00