summaryrefslogtreecommitdiffstats
path: root/drivers/input
Commit message (Collapse)AuthorAge
* input: input-cfboost: Include linux/sched/types.hNicolin Chen2018-07-05
| | | | | | | | | | | | | | | | | | | | | | There is a build error when compiling the driver with K4.14: drivers/input/input-cfboost.c: In function ‘cfboost_init’: drivers/input/input-cfboost.c:303:9: error: variable ‘sparm’ has initializer but incomplete type struct sched_param sparm = { ^~~~~~~~~~~ So this patch adds the corresponding header file to fix it. Bug 200425329 Change-Id: Idd3caabeb7c8ef3985a05ec5008f8605981c6900 Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1770000 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: Add Kconfig file for nvidia repoNicolin Chen2018-07-05
| | | | | | | | | | | | | | | This patch adds a Kconfig file for input drivers under nvidia repo. It also adds an entry for INPUT_CFBOOST. Bug 200425329 Change-Id: I3670d4f829993927899e65c15dff327d1264a877 Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1769999 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: touch: sharp: fixups for k4.14.Jordan Nien2018-06-21
| | | | | | | | | | | | | | | | | include linux/sched/signal.h to fix build error with "send_sig_info" for K4.14. Bug 200421480 Change-Id: Ib3075d99b1186c08b80f99affd644fdedd26c9d7 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1750573 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* drivers: Fix build error when compiling GPIO timed key as moduleMark Zhang2018-06-20
| | | | | | | | | | | | | | | | | | | When building gpio timed keys driver as a LKM, we hit an error: FATAL: modpost: GPL-incompatible module gpio_timed_keys.ko uses GPL-only symbol 'platform_driver_unregister' This is because we have a typo in MODULE_LICENSE which makes kernel thinks it's a proprietary module. Bug 200416410 Change-Id: Ia495a27ec9e4a6827ecbfaf917b4537d478c0643 Signed-off-by: Mark Zhang <markz@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1747220 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: eeti: Update to 2018/05/18 version.Jordan Nien2018-05-29
| | | | | | | | | | | | | | | | | | | | - update input enable/disable function to put touch chip into on/deep sleep mode and allow pm suspend/resume only if input disable is not being called. - fix the violation for kernel coding guidline that mixed case are not allowed. Bug 200404555 Change-Id: Ia6c89f47a5148e2afc64e20d2851daf2e79b78e9 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1727750 GVS: Gerrit_Virtual_Submit Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: touch: eeti: initial eeti platform usb driver.Jordan Nien2018-05-04
| | | | | | | | | | | | | | | | | | | - version: 2018/04/27 Bug 2084587 Bug 200404999 IP audit bug: Bug 200408817 Change-Id: If0a693f2dfa41971e9d1718444f4c9f6f0c1e640 Signed-off-by: EETI <touch_fae@eeti.com> Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1700605 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: egalax: update to 2018/04/23 version.Jordan Nien2018-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | - add input control for powerhal to control touch power state during display on/off. - disable touch power when the driver is unloaded and system shutdown. - Revise the probe and init code so that it won't conflict with eeti usb touch driver. - Don't show calibration state when the communication fail. Bug 200404555 Bug 2000404999 Bug 2084587 Change-Id: I2492c4aa10b37afba7c61961fb3951f982121691 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1692760 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* drivers:input: Add timed gpio keys driverKary Jin2018-04-17
| | | | | | | | | | | | | | | | | | | | | Create gpio_timed_keys driver that detects timed key presses and allows input devices to send different key codes based on the amount of time the key was pressed. This patch is heavily based on https://git-master.nvidia.com/r/821630 Bug 200401975 Change-Id: I8e2f4e97d3e7b20de983965000c9670db74d9e86 Signed-off-by: Kary Jin <karyj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1695863 Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: egalax: add touch calibraion sysfs.Jordan Nien2018-04-02
| | | | | | | | | | | | | | | - calibration sysfs is to indicate if calibration is done. Bug 200380972 Change-Id: Ibb316c3189cdcb7ce2140ae567cd2e051ea5edc1 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1681927 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: egalax: add touch orientation selection.Jordan Nien2018-03-23
| | | | | | | | | | | | | | | | - Add "flip-x = <1>" in DT to flip touch orientation x and "flip-y = <1>" in DT to flip touch orientation y. Bug 2080902 Change-Id: Ibce9298cda75ccc2a8394822ecfb99da9ad5a71f Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1674692 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: egalax: fix incorrect sysfs path.Jordan Nien2018-03-12
| | | | | | | | | | | | | | - sysfs is created on misc path instead of I2C path. Bug 200392574 Change-Id: Ic0788d060352addcc67560144d2f8c8451496cf3 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1669469 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: touch: sharp: change the permission of sysfs.Jordan Nien2018-03-06
| | | | | | | | | | | | | | | | - change the permission of sysfs to 0640. - fix the order for creating sysfs link. Bug 200392574 Change-Id: Ib4cf63763d78fc08e72c4f053379bae22a576e06 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1664957 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: egalax: add polarity selection for reset pin.Jordan Nien2018-02-23
| | | | | | | | | | | | | | | | | | - set active high for reset pin if "enable-active-high" is added in DT. Bug 2065523 Change-Id: I74d484dff6eaeeea8a27d65953ce0b0a930360f7 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1661565 Reviewed-by: David Pu <dpu@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Tested-by: Robert Shih <rshih@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: egalax: initial EETI touch driver.Jordan Nien2018-01-09
| | | | | | | | | | | | | | Bug 200357614 IP audit bug: Bug 200372459 Change-Id: I7146cda32e954aab9f78eebb50d546c38465b51e Signed-off-by: EETI <touch_fae@eeti.com> Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1613041 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: touch: rename atmel driverShawn Joo2018-01-04
| | | | | | | | | | | | | | | | | | | kernel overlay should not contain same filename with main kernel source. wrong driver in main source has been built instead of in overlay. Rename atmel driver. Bug 200364020 Change-Id: Iaf8dbfef8e5adaa03a1bbbe227b4a9b92f8b229e Signed-off-by: Shawn Joo <sjoo@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1624633 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Jordan Nien <jnien@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: raydium: make use of copy_from_userJordan Nien2017-11-02
| | | | | | | | | | | | | | | | Kernel is not supposed to access user space address directly. Bug 200340254 Change-Id: I4c69447529bdf2878afced0a0750d2f4a3772b44 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1589889 Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* nvidia: use kernel overlay featuresStephen Warren2017-10-29
| | | | | | | | | | | | | | | | Update all Kconfig files and Makefiles to rely on the kernel overlay feature. In particular, don't include any Kconfig files or Makefiles from other overlays. -I directives in CFLAGS are not yet cleaned up. Bug 1978395 Change-Id: I425d37d55f8ea61fb3a082a1504f994ff30cec03 Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1561187 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* input: cfboost: use CPU constraints for PM QOSBo Yan2017-10-15
| | | | | | | | | | | | | | The cluster specific PM QOS constraints are not being used currently, so it's deprecated. The generic CPU constraints are used instead. bug 2003851 Change-Id: I634cd549bdb3188d3a96233968766a85db460221 Signed-off-by: Bo Yan <byan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1576504 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit
* input: add LR388K7 and RM31080A driversDavid Pu2017-07-27
| | | | | | | | | those non-upstreamed drivers are moved to linux-nvidia repo. Bug 200325784 Change-Id: Ie61e77cec532e471302cbb6cea4d3dd5e8ec92f8 Signed-off-by: David Pu <dpu@nvidia.com>
* input: touch: raydium: V61.7 code dropXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | [1] Fix report pointer bug [2] Modify pointer specifier for all printf-like function [3] Add protection in KRL_CMD_WRITE_W_COUNT [4] Fix GPIO sensor select bug [5] Fix slowscan function bug [6] Refine some statements [7] Enhance stability of idle mode on Pismo (64-bit platform) [8] Fix Raydium_selftest bug (result in touch not work) Change-Id: Idf4c42e017fd752097a675ae8706f4fc51d328d1 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/351894 Reviewed-on: http://git-master/r/356103 (cherry picked from commit 004bfd88e1458c04e9d33e1ca31b0b162ba8ac8c) Reviewed-on: http://git-master/r/356129 Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touch: Raydium: change to deferrable timerHunk Lin2017-07-27
| | | | | | | | | | | | | Set the timer to deferrable. So it will reduce CPU wakeups. Bug 1434388 Change-Id: I1e3bd08f9f299d73538cb5487cd434e128c75763 Signed-off-by: Hunk Lin <hulin@nvidia.com> Reviewed-on: http://git-master/r/352019 Reviewed-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Hayden Du <haydend@nvidia.com>
* input: touch: raydium updates for slow scanXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | Raydium code drop. Added updates for Pluto, Dalmore slow scan Bug 1054801 Change-Id: I5728ea0ae4c1a34a65e97c49cc387067df5a1dcf Signed-off-by: David Jung <djung@nvidia.com> Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/163056 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
* input: touch: raydium: set 'enabled' in probeHunk Lin2017-07-27
| | | | | | | | | | | | | | | | | | When touch is probed, 'enabled' should be true, ohterwise the disable function will be skipped. Bug 1179797 Change-Id: I865bd3ceb18018484911bf6ee4a7f8984870b731 Signed-off-by: Hunk Lin <hulin@nvidia.com> Reviewed-on: http://git-master/r/167193 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Shridhar Rasal <srasal@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: David Jung <djung@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: David Jung <djung@nvidia.com>
* input: touch: raydium: add enable/disableMallikarjun Kasoju2017-07-27
| | | | | | | | | | | | | | | | | | | For 'enabled' sysfs provide enable and disable and invoke respective suspend and resume PM. This functionality will replace early suspend functionality. Bug 1063749 Change-Id: I100c6b4d8d4d71861fdacc6b1c0d2efafc8a6b4c Signed-off-by: David Jung <djung@nvidia.com> Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/147699 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Rebase-Id: R3fbbe4bbd47ede02ac2fbf9770232da6d66abbf0
* input: touch: raydium: Update Raydium direct touch driver.David Jung2017-07-27
| | | | | | | | | | | | | | | | | | | | | Update Raydium files to support 5 inch touch sensor from Wintech. Also adds 5-inch, 10-inch panel support. Bug 1030747 Reviewed-on: http://git-master/r/133031 (cherry picked from commit 9033bee975273d0dfcc0d9cc8a8c7b97b2e77069) Change-Id: I846b9d0faba31072113e030aa7102b34074c2585 Signed-off-by: David Jung <djung@nvidia.com> Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/143114 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Rebase-Id: R84f2852e4a5a704feecd90e9b23195ed3fc19d1a
* input: touchscreen: Raydium DirectTouch driverAli Ekici2017-07-27
| | | | | | | | | | | | | | | | | | | | | Modified driver files to support unified DirectTouch which can support Kai and Cardhu together. Vendor-supplied source code update. Bug 832605 Signed-off-by: Ali Ekici <aekici@nvidia.com> Change-Id: If0799147b50e9c2cf102d2216103e30b525026e4 Reviewed-on: http://git-master/r/80128 Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> Tested-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> (cherry picked from commit 1dfd9d747b8ceb344a435daac60d30f1a6441bcb) Reviewed-on: http://git-master/r/83568 Tested-by: Gerrit_Virtual_Submit Rebase-Id: Rb00482627510c2fb79b03e5f7b4f056451235f21
* input: touch: raydium: fix touch not working.Jordan Nien2017-07-27
| | | | | | | | | | | | | | | | | | | | - Issue: With partner build, there is no input disable/enable from frameworks to put touch into suspend state during lp0. It lead to touch stop working after lp0. - enable device suspend/resume if input disable/enable is not called to fix this issue. Bug 200162806 Change-Id: If09033197cfad8bd431a49cd8db3c5197c1ccbd9 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: http://git-master/r/925955 (cherry picked from commit 2ba7b886ea927b29e33382272acf9e6ac0a1c925) Reviewed-on: http://git-master/r/930365 GVS: Gerrit_Virtual_Submit Reviewed-by: David Pu <dpu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
* input: touch: Raydium: fix possible NULL dereference.Jordan Nien2017-07-27
| | | | | | | | | | | | | Coverity id : 13379 Bug 1416640 Change-Id: I6d895f1a1854ed0ecde46e541c262cb76972c104 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: http://git-master/r/925392 (cherry picked from commit 09065810ff5a1daf4c8c37cd9c05ee57ed29b6e8) Reviewed-on: http://git-master/r/928464 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* input: touch: Raydium: add shutdown callAlex Chen2017-07-27
| | | | | | | | | | | | | | | | Add shutdown call to turn off touch screen 1.8v & 3.3v power rails when system shutdown Bug 1546667 Change-Id: I376edeb2f77a787c8c7441fe95b69b38083f54c5 Signed-off-by: Alex Chen <alchen@nvidia.com> Reviewed-on: http://git-master/r/659976 (cherry picked from commit 8e16b4ee6e6291a563248b11eccc86d883029e95) Reviewed-on: http://git-master/r/665283 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Robert Collins <rcollins@nvidia.com>
* input: touch: Raydium: Code drop v73.16Alex Chen2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | change list: 1. Enable CS_SUPPORT in driver 2. Fix compile error about data type with Android 5.0 3. Slowscan patch 4. Remove calibration file check string 5. Resolve clock reference unbalance issue 6. Refine quickly swiping issue Bug 1546667 Bug 1561841 Bug 200043979 Bug 200052217 Bug 200055008 Bug 200057160 Change-Id: Iccf5a1de3ff903d06f2429d98fd00cfc75958176 Signed-off-by: Alex Chen <alchen@nvidia.com> Reviewed-on: http://git-master/r/655175 (cherry picked from commit cf496be2e7118bf2c78dfd62acd817b0fc5c52a9) Reviewed-on: http://git-master/r/660615 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jordan Nien <jnien@nvidia.com> Reviewed-by: Robert Collins <rcollins@nvidia.com>
* input: touch: Raydium: Add sensor select for LokiXiaohui Tao2017-07-27
| | | | | | | | | | | | | | Base SKU -> 0x02 Prem SKU -> 0x00 Change-Id: Ifedb66a960ca102c7045a740298cf84648d83f67 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/603693 Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com> Tested-by: David Dastous St Hilaire <ddastoussthi@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Jon Mayo <jmayo@nvidia.com>
* input: touch: raydium: Remove unnecessary stringJeff Tsai2017-07-27
| | | | | | | | | | | | Bug 1574050 Change-Id: I17f33bbfbdef245654866f2d8cea5e7e0eada96e Signed-off-by: Jeff Tsai <jefft@nvidia.com> Reviewed-on: http://git-master/r/591910 Reviewed-by: Robert Collins <rcollins@nvidia.com> Tested-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touch: Fix build warningsSumit Singh2017-07-27
| | | | | | | | | | | | | | | | | | | Fix Warnings: - format '%d' expects argument of type 'int', but argument has type 'size_t' - cast to pointer from integer of different size, in drivers/input/touchscreen/rm31080a_ts.c file. Bug 1566945 Change-Id: Icb2b7cdd9d7734dd105ffde267a9bb5855a27b63 Signed-off-by: Sumit Singh <sumsingh@nvidia.com> Reviewed-on: http://git-master/r/593256 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
* touch: Raydium: Code drop v73.15Alex Chen2017-07-27
| | | | | | | | | | | | | | change list: 1. Fix self_test calibration issue (touch failure) 2. Fix SPI check fail with RM31081 (partial fix for Ardbeg) Bug 1561841 Change-Id: I68fd20f9258116974f16503b2d9f0a8d444c1b48 Signed-off-by: Alex Chen <alchen@nvidia.com> Reviewed-on: http://git-master/r/562962 Reviewed-by: Mitch Luban <mluban@nvidia.com> Tested-by: Mitch Luban <mluban@nvidia.com>
* input: Raydium: Code drop v73.12Alex Chen2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | change list: 1. Loki T132 touch loading failure 2. Clock keeps on during LP0 with RM31280 3. Patch for single finger touch doesn't work after LP0, fixed on ST8 (v6x.x) 4. Change idle scan rate to 20Hz 5. Change selftest configure file format as XML The XML file for selftest for all platforms after verification will be updated soon. Bug 200015833 Bug 200027658 Bug 200033039 Bug 1551950 Change-Id: I40b2f99e8f8714783b57c1e224dcce61a575389c Signed-off-by: Alex Chen <alchen@nvidia.com> Reviewed-on: http://git-master/r/542613 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touch: Raydium: v73.10 code dropAlex Chen2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | Bug 200004233 1. Raising service priority to avoid "service busy" issue while system fully loading 2. Test_mode function@driver (Change idle escape threshold at runtime) Usage: a. Disable: echo 0 > /sys/devices/virtual/misc/touch/test_mode b. Enable: echo 1 > /sys/devices/virtual/misc/touch/test_mode c. Set: echo 2 2 100 > /sys/devices/virtual/misc/touch/test_mode (take touch threshold 100 as example) d. Check: cat /sys/devices/virtual/misc/touch/test_mode 3. Coding style refine 4. Add mutex_lock/mutex_unlock protection in KRL_CMD_FLUSH_QU command table Change-Id: I0028e5c2f45d7b128b580e8d81d3dbe397ce6411 Signed-off-by: Alex Chen <alchen@nvidia.com> Reviewed-on: http://git-master/r/433991 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Robert Collins <rcollins@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
* input: touch: raydium: update to 62.6Jordan Nien2017-07-27
| | | | | | | | | | | | | | | | | | | | | 62.6 changelist: [1] remove function border area palm rejection. [2] fix idle mode problem. Change-Id: Ib0c740d27d2f30bdb81737b393c65f9d26bdc3f6 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: http://git-master/r/395671 (cherry picked from commit 773454e62ae332a9694c4c6c0c0af55703144174) Reviewed-on: http://git-master/r/407525 (cherry picked from commit 73bf8f953fbae9258017c17d88437cc80b55883a) Reviewed-on: http://git-master/r/406616 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Chen <alchen@nvidia.com> Tested-by: Alex Chen <alchen@nvidia.com> Reviewed-by: Robert Collins <rcollins@nvidia.com> Tested-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
* input: touch: raydium: update to 62.4Vincent Chen2017-07-27
| | | | | | | | | | | | | | | | | | | | | | 62.4 changelist: [1] improve TN8 stylus performance. [2] improve TN8 finger performance. [3] modify selftest function. Change-Id: Ida5a7e79c14a02d49dee3ccffa2344cc55563570 Reviewed_On: http://git-master/r/394462 (cherry picked from commit 12fef93a6711a0dccc7a524acf568286cb25814b) Signed-off-by: Vincent Chen <zochen@nvidia.com> Reviewed-on: http://git-master/r/394896 (cherry picked from commit ab165bc5c195db1a7a034b02174c2717e454c409) Reviewed-on: http://git-master/r/407524 (cherry picked from commit 8a5fe78411acccc5ea809f98aca2c716a4b1b232) Reviewed-on: http://git-master/r/406613 Reviewed-by: Alex Chen <alchen@nvidia.com> Tested-by: Alex Chen <alchen@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
* input: touchscreen: raydium: update driver to 62.3Vincent Chen2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 62.2 changes: [1] fix error/warning from checkpatch [2] add keybit [3] Device tree support [4] All the sysfs nodes are moved to 'sys/devices/virtual/misc/touch' and also rename the device as 'touch' [5] Using default path to loading all libraries instead of absolute path [6] Remove PM suspend/resume operations to prevent from LP0 resume failure due to race condition [7] Touch performance refine (palm, stylus, ......) [8] fix slowscan issue [9] Add TLK support [10] Add TN8 support 62.3 changes: [1] fix checkpatch error. [2] improve TN8 stylus performance. [3] improve TN8 finger performance. [4] add error code in selftest function. [5] add TN8 noise hopping function. [6] add codes for x64 system." bug 1446493 bug 1482112 bug 1469135 bug 1468629 bug 1465587 bug 1453371 bug 1437076 bug 1405258 Change-Id: I633cddb8b65a9c7fe741f6a782d4a4f5fd792c58 Signed-off-by: Vincent Chen <zochen@nvidia.com> Signed-off-by: Robert Collins <rcollins@nvidia.com> Reviewed-on: http://git-master/r/401082 Tested-by: Hridya Valsaraju <hvalsaraju@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touch: raydium: suspend/resume with displayXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | We would need to call suspend/resume only with display on/off. This would remove extra complexity and save power in order to avoid some use cases that cause touch does not work. Bug 1450642 Change-Id: I923a669cf9c293def53842b74b2dfd046d2a1411 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/373798 Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Chen <alchen@nvidia.com> Tested-by: Alex Chen <alchen@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com>
* input: touch: Raydium: v61.9 code dropAlex Chen2017-07-27
| | | | | | | | | | | | | | | | | | | | | | [1] fix resume timing issue [2] Touch/Stylus performance improvement [3] Add new parameter file for TP 15.6" project (CES demo purpose) [4] Refine return value definition in kernel driver [5] Separate the flag for identifying queue flushed in kernel driver [6] fix resume issue on v61.8 bug 1450642 bug 1447702 bug 1443387 bug 1438889 bug 1429239 bug 1372937 Change-Id: Ie709bc89c88f23be6839f03c4c8b8db556c2d477 Signed-off-by: Alex Chen <alchen@nvidia.com> Reviewed-on: http://git-master/r/365297 Reviewed-by: Mitch Luban <mluban@nvidia.com> Tested-by: Mitch Luban <mluban@nvidia.com>
* input: touch: raydium: V61.7 code dropXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | [1] Fix report pointer bug [2] Modify pointer specifier for all printf-like function [3] Add protection in KRL_CMD_WRITE_W_COUNT [4] Fix GPIO sensor select bug [5] Fix slowscan function bug [6] Refine some statements [7] Enhance stability of idle mode on Pismo (64-bit platform) [8] Fix Raydium_selftest bug (result in touch not work) Change-Id: Idf4c42e017fd752097a675ae8706f4fc51d328d1 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/351894 Reviewed-on: http://git-master/r/356103 (cherry picked from commit 004bfd88e1458c04e9d33e1ca31b0b162ba8ac8c) Reviewed-on: http://git-master/r/356129 Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touch: Raydium: change to deferrable timerHunk Lin2017-07-27
| | | | | | | | | | | | | Set the timer to deferrable. So it will reduce CPU wakeups. Bug 1434388 Change-Id: I1e3bd08f9f299d73538cb5487cd434e128c75763 Signed-off-by: Hunk Lin <hulin@nvidia.com> Reviewed-on: http://git-master/r/352019 Reviewed-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Hayden Du <haydend@nvidia.com>
* input: touch: Raydium: Add compat supportRobert Collins2017-07-27
| | | | | | | | | | | Bug 1406928 Change-Id: Ib2eb64f474f4f2229801e80ac6f934af86ee0f4b Signed-off-by: Robert Collins <rcollins@nvidia.com> Reviewed-on: http://git-master/r/347664 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hayden Du <haydend@nvidia.com> Tested-by: Hayden Du <haydend@nvidia.com>
* input: touch: raydium: add DT support to Raydium spi touchJajambo Liao2017-07-27
| | | | | | | | | | | | | Add device tree support to Raydium touch drivers Bug 1405258 Change-Id: Ie93df28303866fcae73ddfb4ac191c7339adbe83 Signed-off-by: Jajambo Liao <jajambol@nvidia.com> Reviewed-on: http://git-master/r/344059 Reviewed-by: Jordan Nien <jnien@nvidia.com> Reviewed-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
* input: touch: Raydium: Code drop v61.5Xiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | [1] Partially resolve user space pointer directly used in kernel driver (except DEV_ATTR part) [2] Report mode switch support [3] Refine multiple input devices and input protocol A [4] Support eraser [5] Implement mechanism to ensure multi-resume/suspend will be correctly executed [6] Fix CS cmd fail issue [7] Fix fast draw suffered from line broken issue [8] Fix idle mode stability on Ardbeg issue Bug 1414130 Bug 1408503 Bug 1398820 Bug 1398173 Bug 1371286 Bug 1392722 Change-Id: Icbd9250339a04f60390d5247e37aad3bfc49c526 Reviewed-on: http://git-master/r/346650 GVS: Gerrit_Virtual_Submit Reviewed-by: Xiaohui Tao <xtao@nvidia.com> Tested-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touch: radyium: code drop v60.8Xiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | Fix potential deadlock Add Loki panel support Bug 1350878 Bug 1380477 Bug 1357654 Bug 1365494 Change-Id: I1b997217cab4abb3eb974230811e6df06588801b Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/290022 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input:touch:raydium: fix touch off with displayoffXiaohui Tao2017-07-27
| | | | | | | | | | | | | | Do not call suspend/resume in display off case for touch. Bug 1293127 Change-Id: I2c1986f80bca01f937b72d4dddb91e20247c258e Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/263498 (cherry picked from commit 15b02eca5e9510cea68619c2905634df6dc9184a) Reviewed-on: http://git-master/r/276341 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touch: raydium: v60.6 code dropXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | a. Checkpatch done (Bug ID 1368132) b. Fix 3.3V control issue (Bug ID 1354253, 1348628) as the attached pictures. The 3.3V is turned off in LP0 mode. c. Refine suspend/resume timing issue (Bug ID 1359713, 1288233, 1283537) Bug 1368132 Bug 1354253 Bug 1348628 Bug 1359713 Bug 1288233 Bug 1283537 Change-Id: I639d311b51e4bd7feffcc904caa34370ab52e505 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/276340 Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input:touch:raydium: fix touch off with displayoffXiaohui Tao2017-07-27
| | | | | | | | | | | | Do not call suspend/resume in display off case for touch. Bug 1293127 Change-Id: I7b2d273d53bedfacb7c8ee5771fa3697b95028e7 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/263498 Reviewed-by: Mitch Luban <mluban@nvidia.com> Tested-by: Mitch Luban <mluban@nvidia.com>