Commit Graph
3227 Commits
Author SHA1 Message Date
Jie Cheng 421ff3df74 sensors: Add the class device support for kxtj9 sensor
Add the sensor class device support for the kxtj9 accelerometer
sensor.

Change-Id: I4548c6787f8bc4654c1b3e08d65fa4cb1727bef5
Signed-off-by: Jie Cheng <rockiec@codeaurora.org>
2013-11-28 10:50:48 +08:00
Linux Build Service Account b80cfa0b28 Merge "input: sensors: remove undesired kxtj9 accelerometer power up and access" 2013-11-26 07:57:57 -08:00
Oliver Wang 8d58f6861c input: sensors: remove undesired kxtj9 accelerometer power up and access
The kxtj9 irq handling and enable/disable logic is not correctly
handled. Thus causing the sensor consumes more power.

Change-Id: I114e36c648d9c7e485d77ed5e490c518c93855d3
CRs-fixed: 580419
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
2013-11-26 03:34:50 -08:00
Bingzhe Cai e044dc7b99 input: sensors: calibrate the cm36283 als sensor for 8x10 MTP
The cm36283 als sensor reported inaccurate illumination value
due to not calibrated on 8x10 MTP devices.

CRs-Fixed: 579407
Change-Id: Ie7239f11944579e3d107b3fe739844ceb764998b
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-11-25 01:49:43 -08:00
Linux Build Service Account ac9d322515 Merge "input: misc: mma8x5x should not read data during suspend" 2013-11-14 08:09:01 -08:00
Linux Build Service Account 79be77b630 Merge "input: touchscreen: ft5x06: fix firmware force update issue" 2013-11-14 08:08:47 -08:00
Bingzhe Cai 3fd4f57749 input: misc: mma8x5x should not read data during suspend
Mma8x5x accelerometer driver continue polling sensor data after
sensor power off, this is because power state flag has been added
into sensor state variable but control condition logic did not
update accordingly.

Change-Id: I4b2ad1a043782d9dea03c5af9a688a0cc4439186
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-11-14 17:19:01 +08:00
Linux Build Service Account 5fb632f5c1 Merge "input: synaptics_fw_update: Rectify the package_id parsing" 2013-11-13 10:49:12 -08:00
Sarada Prasanna Garnayak fe94fe5cc1 input: synaptics_fw_update: Rectify the package_id parsing
Rectify the package id parsing which aborts firmware upgradation
due to package id mismatch.

CRs-Fixed: 574411
Change-Id: Ib047b8824e270c4ab57c7524c74dfb4dac9378f1
Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org>
2013-11-13 13:13:19 +05:30
Bingzhe Cai eef6456724 input: touchscreen: ft5x06: fix firmware force update issue
Force firmware update cannot work when touchscreen controller
cannot report correct family ID. If touchscreen is does not work
in correct state and it reports wrong family ID, it cannot be
recovered by force update, this change use family ID from device
tree instead of read from controller register to fix this issue.

Change-Id: I85d24bfc68a7777053c15f28a84027260c68cebd
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-11-08 02:45:17 -08:00
Linux Build Service Account 24992f580e Merge "input: touchscreen: Add fw_name sysfs entry in Goodix driver" 2013-11-07 01:30:30 -08:00
Linux Build Service Account a0da9f24d4 Merge "input: touchscreen: ft5x06: add FT5336 firmware update support" 2013-11-06 04:00:43 -08:00
Bingzhe Cai 49d5662db4 input: touchscreen: ft5x06: add FT5336 firmware update support
FT5336 use new firmware bootloader, current dirver cannot update
its firmware. Driver needs update to support this new firmware
bootloader.

CRs-Fixed: 567511
Change-Id: I5c210097a6b3daedce52c4dda806c698cda63968
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-11-04 04:45:21 -08:00
Bingzhe Cai 58db10d585 input: touchscreen: power off touch panel during suspend
Allow turn off touch panel power and reconfigure related GPIOs
to maximize power saving.

CRs-Fixed: 568957
Change-Id: I25d7dc8abbd6dae4c54ee14f8feaf5701f64fd95
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-11-04 19:38:47 +08:00
Bingzhe Cai 4deceb3a97 input: touchscreen: ft5x06: remove unbalanced touch event
Touchscreen driver may generate unbalanced input events when
enter suspend state, these unbalanced event will make input
system always wait for symmetrical input event and can not
handle input event properly. PRESSURE event is removed to
keep input events symmetrical.

CRs-Fixed: 566134
Change-Id: I3f6fda3fb5d0a717ae943a9113be89623c96ce61
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-10-30 10:33:29 +08:00
Linux Build Service Account 29c2869580 Merge "input: synaptics_i2c_rmi4: Turn off the reset gpio before freeing it." 2013-10-29 08:38:53 -07:00
Sarada Prasanna Garnayak 9644241425 input: synaptics_i2c_rmi4: Turn off the reset gpio before freeing it.
Set the direction of reset GPIO to input before freeing it. This
eliminates any leakage current which may be there.

CRs-Fixed: 554264
Change-Id: Ib439de058326bf0d14d6e18b0a6198b4f682daf8
Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org>
2013-10-29 12:34:37 +05:30
Shantanu Jain f8165003d2 input: touchscreen: Add fw_name sysfs entry in Goodix driver
Add fw_name sysfs entry in Goodix driver. This entry allows
user to read and write firmware name from sysfs.

CRs-fixed: 555332
Change-Id: I69585d757f1a6dc40834a99ee67c872bf6f3ea13
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2013-10-28 17:46:36 -07:00
Linux Build Service Account e66d6788a8 Merge "input: misc: stk3x1x: turn off device power when sensor is not enabled" 2013-10-26 04:51:18 -07:00
Linux Build Service Account b171a5a044 Merge "input: synaptics_i2c_rmi4: Check configuration after reset" 2013-10-25 21:00:40 -07:00
Bingzhe Cai 271114e094 input: misc: stk3x1x: turn off device power when sensor is not enabled
Device needs to turn off when both ambient light sensor and
proximity sensor is not enabled, this will maximize power saving.

Change-Id: I3195f180e065c1605029af37da4a65ce30612ac2
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-10-25 17:57:34 +08:00
Himanshu Aggarwal b0966ac4e5 input: atmel_mxt_ts: Add NULL pointer check
Add null pointer exception check for pointer 'fw'
which may be NULL after request_firmware() call
and may be deferenced.

Change-Id: Ie4b4bb8548eb89b01f7f688372d8b0300542f72a
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2013-10-25 09:17:26 +05:30
Amy Maloche cc1d0dcc70 input: synaptics_i2c_rmi4: Check configuration after reset
After resuming from suspend, configuration may be lost.  Check
"Unconfigured" bit and if it is set, reconfigure the device.

Change-Id: Id55cc3a7f1c6e0885fa6b186696eab86a18103a7
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-10-24 14:44:48 -07:00
Linux Build Service Account fd55b4144a Merge "input: misc: turn off mma8x5x device power while disabled" 2013-10-18 09:17:57 -07:00
Linux Build Service Account 959fcb7931 Merge "input: touchscreen: remove PRESSURE event from ft5x06 driver" 2013-10-18 09:17:36 -07:00
Bingzhe Cai 70626743f6 input: misc: turn off mma8x5x device power while disabled
Disable device regulators for power saving while device is not in
active state.

CRs-Fixed: 547435
Change-Id: I0984ef75e927d1b8e177782503bb3b2cfa8fa987
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-10-17 15:51:59 +08:00
Linux Build Service Account 9e65cc1330 Merge "input: sensor: clean up some debugging log" 2013-10-15 23:34:20 -07:00
Linux Build Service Account 29f6c83c6d Merge "input: touchscreen: add multiple config data support for GT9xx" 2013-10-14 06:30:35 -07:00
Linux Build Service Account aafa15ab95 Merge "input: touchscreen: Use proper conventional functions for debug" 2013-10-14 06:30:35 -07:00
Linux Build Service Account c746a798d7 Merge "input: touchscreen: Add dynamic detection support to Goodix driver" 2013-10-14 06:30:34 -07:00
Bingzhe Cai 15d144659f input: touchscreen: add multiple config data support for GT9xx
Goodix GT9xx touchscreen driver supports up to six groups of config
data and uses hardware GPIO configuration to select which one will
be used. This change allows these six config groups to be loaded
from devicetree.

Change-Id: I9dfd698e7084164688dd964ed914d5eecc75ecd3
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-10-14 17:19:29 +08:00
Shantanu Jain 7dc2b470a6 input: touchscreen: Use proper conventional functions for debug
Replace non-standard debug function with the conventional
functions in Goodix driver. And remove unnecessary debug
function used in Goodix driver.

Change-Id: Ia89d225333c1309710aab67b9c406784567e3050
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2013-10-14 17:09:42 +08:00
Shantanu Jain 3f80befce8 input: touchscreen: Add dynamic detection support to Goodix driver
Add dynamic detection support to goodix driver, where
the driver tries to read the chip id and make sure
it is communicating with the right chip.

gtp_read_version is modified to gtp_read_fw_version
which reads the firmware version from the controller
and will be used during fw update process.

CRs-fixed: 538818
Change-Id: I2dc51b84f817413da6bf9b266e2fe7e0bb09c4bc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2013-10-14 17:07:20 +08:00
Bingzhe Cai 3ebefb672b input: touchscreen: remove PRESSURE event from ft5x06 driver
There is no need to send ABS_MT_PRESSURE event when contact is
removed from touchscreen, this redundant event will confuse some
APP and cause malfunction.

CRs-Fixed: 537993
Change-Id: Ie2aef79f99cb80c10706f832cfab583ba742fdf1
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-10-10 16:53:27 +08:00
Oliver Wang d89c81b018 input: sensor: clean up some debugging log
The driver outputs too much logs and affect debugging other issues.
Some more clean up is done in the patch to supress the checkpatch
failures and keep the code style consistency.

Change-Id: I8ad9eeb2e100ab3a6999c895c4e264e689d0702c
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
2013-10-09 23:31:12 -07:00
Bingzhe Cai d85a69dcb8 input: touchscreen: add option to ignore Focaltech family-id check
Focaltech touchscreen ICs may use different chip IDs for same module.
Add support to ignore ID check for such cases.

Change-Id: I0fe8da6a5e687317b4878b59ac5d1a4a4b620e1d
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-10-09 22:15:31 +08:00
Linux Build Service Account 0e287becd6 Merge "input: atmel_mxt_ts: Support for secure touch polling" 2013-10-03 05:37:37 -07:00
Linux Build Service Account 4ad70bb3b5 Merge "input: synaptics: Avoid kernel crash when voltages are unstable" 2013-10-03 05:37:18 -07:00
Bingzhe Cai 56e43d0333 input: touchpanel: fix security issues in GT915 driver
There are multiple buffer overflow and input validation issues
in Goodix gt915 driver, fix these issues by adding data length
check and change file system node mode.

CRs-Fixed: 526101
Change-Id: I5173fc1ca021fd45c939c7c8a4f460651330de5b
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2013-10-02 14:39:41 +08:00
Amy Maloche 1e0c66a1cb input: atmel_mxt_ts: Support for secure touch polling
Add support for polling to the secure touch sysfs notification
file.

Change-Id: I08603c7ba9fdf041460f285bfc61d93541c79752
Acked-by: Christian Bolis <cbolis@qti.qualcomm.com>
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-09-30 11:05:02 -07:00
Alexandra Chin b2d3aeafac input: synaptics: Avoid kernel crash when voltages are unstable
2013.09.24
- Fixed kernel panic when voltages are unstable (error handling)

Signed-off-by: Alexandra Chin <alexandra.chin@tw.synaptics.com>
Change-Id: Ie1da0e4215ad7aeff2d5e1df1846e417609afb73
Git-commit: d19d8947f5c24d57fe5ce8b92510401a15b860ba
Git-repo: git://github.com/synaptics-touch/msm-3.4.git
[amaloche@codeaurora.org: Modified commit message for proper form]
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-09-27 13:01:34 -07:00
Linux Build Service Account 76759c9421 Merge "input: synaptics_i2c_rmi4: Enable power saving in suspend mode" 2013-09-27 07:38:56 -07:00
Amy Maloche 80c15573c6 input: synaptics_i2c_rmi4: Enable power saving in suspend mode
Enable power saving in suspend cycle by turning off regulators and
disabling gpios.  Remove software reset on resume so that
active mode power numbers are not impacted.

CRs-fixed: 543944
Change-Id: I1929913691c45693f647a5c4bc08e0fbb85a3ad4
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-09-26 10:19:49 -07:00
Linux Build Service Account af3cb0facc Merge "input: synaptics_i2c_rmi4: Read display resolution from dt" 2013-09-25 13:18:32 -07:00
Linux Build Service Account 72238865c8 Merge "input: synaptics_i2c_rmi4: Enable user to set reset delay" 2013-09-25 13:18:32 -07:00
Linux Build Service Account 3170131257 Merge "input: synaptics_fw_update: Add necessary delay for polling mode" 2013-09-25 13:18:31 -07:00
Linux Build Service Account df79ce3f5e Merge "input: synaptics_i2c_rmi4: Update driver for S3408 support" 2013-09-25 13:18:30 -07:00
Linux Build Service Account 80297a4df5 Merge "Sensors: remove the MPU3050 driver parent" 2013-09-23 09:33:00 -07:00
Linux Build Service Account 912f7d3ce4 Merge "input: synaptics_i2c_rmi4: Release touch data before suspend." 2013-09-23 07:13:26 -07:00
Amy Maloche a7983b33d1 input: synaptics_i2c_rmi4: Read display resolution from dt
Read display resolution from platform data in order
to properly use all virtual key implementations.

Change-Id: Ic0a13d6a8166379f08c5bfb49d5ea47ac22b3229
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013-09-19 11:30:40 -07:00