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>
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>
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>
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>
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>
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>
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>
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>
Allow user to set reset delay in device tree. Default at
100ms.
Change-Id: Ie785e7b1d6c1c734faee72962f1dee4db7034a65
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2013.08.27
- Fixed i2c goes down if driver does lockdown during system bootup
when device is communicated using polling mode.
The reason is that driver cannot access to device immediately after
command erase all.
Signed-off-by: Alexandra Chin <alexandra.chin@tw.synaptics.com>
Change-Id: Ieff08ee390a00100ed04dcf102ed22932c707b81
Git-commit: 9e65e64c4e12afdc3e49b7bf0a7093f091fd4f31
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>
Support flip X & flip Y through sysfs entry and move
lockdown enablement to device tree from #define.
Change-Id: If5cf5fc6c07f9226800823f64d14a01d3651d9aa
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Remove the MPU3040 gyroscope driver parent to allow the system
registers the driver in the "/sys/devices/virtual/input" folder.
The system will give the driver sysfs interface correct permission
according to the ueventd file.
CRs-Fixed: 510210
Change-Id: I957acc809005a06f6a8219140d8a4d609e46b435
Signed-off-by: Jie Cheng <rockiec@codeaurora.org>
Add FIR filter to process light sensor data of stk3x1x ALPS. This
filter is used to suppress data jitter which is caused by power
supply noise.
CRs-Fixed: 524706
Change-Id: Ic3a33621dffc69f198f0389efcb82aa0963efd97
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Change name of light sensor device that sensor HAL can distinguish
the device with other devices. Sensor HAL needs to distinguish different
devices because device drivers may use different sysfs interfaces and
may report different formats of data.
CRs-Fixed 524706
Change-Id: I3d2d31ef12c30abb9d884eda5b1248160aa2aceb
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Increase idle state polling interval for MMA8x5x to reduce power
consumption caused by idle polling.
CRs-Fixed: 542388
Change-Id: Id1e2c319e1310abfdf7d9ecd416c94c63d0e1768
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Permissions should be set to 0664 instead of 0777 for sysfs
entries. Change them to pass CTS test.
Change-Id: I50237eaa917303efda0ad049649611bf1b6d9c31
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Release all touch data before touch device switch to suspend
state.
Change-Id: I17d237cce5e6cb7e092a96e6b40524810849b510
Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org>
The error handling routine in the previous code may cause
NULL pointer failure if probing error. Fix the issue by
re-arranging the error handling procedure.
Change-Id: I3529e00ccb92160011a622644bc10bedceda1c86
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
Report cm36283 sensor input event via workqueue.
Change-Id: I9af0f70a8a3c46c23d1cc921015fa1d37b079f6c
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
Add Capella cm36283 ambient light/proximity sensor devicetree support
to make it compatible with the current Linux kernel structure.
Change-Id: I23d7916480d1924b4a0a8121b2a587993a1d4b61
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
Multi-touch(MT) protocol B use input_mt_report_slot_state()
instead of send ABS_MT_TRACKING_ID event directly, so modify
the driver to follow the protocol and remove redundant protocol
A code.
Change-Id: I542e61fabaaa04fcf5fb7e454e10599511f18e39
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Upgrade firmware on the controller only when a new
version of firmware is available.
Change-Id: I4cf75b3c5efb90f151da09ed73b1ba62b9b5bb1c
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Add cm36283 proximity and ambient light sensor suspend/resume
support.
Change-Id: Ibbe70955955487386bc190285675fb678c6e875c
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
Fix cm36283 driver building error, which is caused by not compatible with
the current kernel source code.
Change-Id: If383201fac55f4fb701b869be0b3a6164f4d3ba4
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>