summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
Commit message (Collapse)AuthorAge
* 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>
* 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: 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: 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: 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: raydium: Support for Loki touch panelXiaohui Tao2017-07-27
| | | | | | | | | | Change-Id: Idd48fede69dc8952df2489cf53d213bb3e9c48cc Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/277925 Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit 3b192fc70e38e9a2ea975f6c5c40fd8e258d68bd) Signed-off-by: Ajay Nandakumar <anandakumarm@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: touchscreen: raydium v60.2 touch driverXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | raydium code drop [1] Add additional info for regulator event msg [2] Add RM_PLATFORM_A010 for Ardbeg AVC sensor [3] Fix no touch function in Pluto platform with RM31081 from idle mode [4] Refine Pismo touch direction [5] Fix idle mode problem with Ardbeg AVC sensor Bug 1330952 Change-Id: Ib282bec3f07a16eb657314ee5127824f02a89d02 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/257604 Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touchscreen: raydium add detection of AVC sensorXiaohui Tao2017-07-27
| | | | | | | Change-Id: I32db26ebfa18d219f2df05b75dcd5e45250c9b23 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/255809 Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touchscreen: raydium v60.2 touch driverXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | raydium code drop [1] Add additional info for regulator event msg [2] Add RM_PLATFORM_A010 for Ardbeg AVC sensor [3] Fix no touch function in Pluto platform with RM31081 from idle mode [4] Refine Pismo touch direction [5] Fix idle mode problem with Ardbeg AVC sensor Bug 1330952 Change-Id: Ib282bec3f07a16eb657314ee5127824f02a89d02 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/257604 Reviewed-by: Mitch Luban <mluban@nvidia.com> (cherry picked from commit 227b8493a0795aff1bd8d1518e5e4fac1f5e7eae) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/261036
* input: touchscreen: raydium add detection of AVC sensorXiaohui Tao2017-07-27
| | | | | | | | | | | | | Bug 1343545 Change-Id: I32db26ebfa18d219f2df05b75dcd5e45250c9b23 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/255809 (cherry picked from commit 2d4726ea827a74a554e3e732cfad4f1a9f3cfa55) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/258559 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
* input: touchscreen: raydium v60.0 touch driverXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | raydium code drop [1] Shorten suspend/resume duration [2] Uniform debug msgs (with prefix "Raydium" and using dev_info instead of printk) [3] Idle mode abnormal CPU clock frequency [4] AVC snesor support (To verify AVC sensor, the return value of rm_tch_get_gpio_sensor_select routine in rm31080a_ts.c should be changed from 0 to 1. *0 for normal dalmore sensor ; 1 for ANC sensor) [5] Pismo support (To verify Pismo, the past platform ID of dalmore_touch_init routine in /kernel/arch/arm/mach-tegra/board-dalmore.c should be changed from RM_PLATFORM_D010 to RM_PLATFORM_P140) [6] Reduce TCH_WAKE_LOCK_TIMEOUT from 2 secs to 500 msec Bug 1343545 Change-Id: Ia65ecb13dc667fce937e82858321ca44f50bb733 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/255657 (cherry picked from commit ad8d07d3ce337390b34784387693b63c6f4ca7d2) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/258557 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
* Input: touch: raydium: Update to Raydium v56.1 driverXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Raydium code drop Jump directly from v51 to v56.1 V52 Changes (Beta) (Roth only): [1] Add Kernel control architecturee (SlowScan/SetIdle/Start/End..) [2] New parameter loading architecture [3] Refine ESD solution for MP [4] Re-fine self-test procedure for MP [5] Load calibration file from environment variable path [6] Fix the LP0 2 sec delay issue [7] Fix finger on the screen during boot up issue [8] This version only support Roth platform [9] Refine coding style (4/16) [10] Newer parameter modifier apk (4/16) [11] Newer architecture for idle mode power saving has some problem, please ignore the idle mode verification on this trial version (4/16) V53 Changes (Beta) (Roth only): [1] Save calibration file from environment variable path [2] Refine selftest threshold V54 Changes (Beta) (Roth only): [1] Fix the hard code file path to environment variable path [2] Remove the redundancy message in kernel layer V54.1 Changes (Beta) (Roth only): [1] Refine environment variable path mechanism [2] Add test version field for debugging [3] Enable environment variable path debug msgs V54.2 Changes (Beta) (Roth only): [1] Refine coding style [2] Add kernel command entries [3] Using kernel command instead of hard-coded in suspend/resume routine [4] Using lower report rate during idle mode to fix CPU ain't got into idle mode (5 Hz) V55.0 Changes (Beta) (Roth only): [1] Fix idle mode issue & increase report rate [2] Add error handling block for kernel table loading [3] Refine coding style V55.1 Changes (Beta) (Roth only): [1] Refine parameter for factory test [2] Add copy file from TOUCH_CONF_DIR in parameter loading [3] Turn on loading file logcat msgs V55.2 Changes (Beta) (Roth only): [1] Remove unnecessary code [2] Add GPIO interface for future sensor select [3] Refine selftest procedure [4] Refine calibration procedure V55.3 Changes (Beta) (Roth only): [1] Add support to disable power and clock when display is off [2] Parameter fine-tune V55.4 Changes (Beta) (Roth only): [1] Fix CTS test failure in service transaction return [2] Fix stub command error return V55.5 Changes (Beta): [1] Suppor roth/pluto/dalmore V55.6 Changes (Beta): [1] Refine coding style [2] Parameter fine tune for pluto/dalmore V55.7 Changes (Beta): [1] Parameter fine tune for pluto/dalmore V55.8 Changes (Beta): [1] Parameter fine tune for pluto(Orientation setting for RM31081) V55.9 Changes (Beta): [1] Refine resume control flow [2] Modify touch WDT function [3] Touch start/stop control flow modification V55.10 Changes (Beta): [1] Set REST as the following Suspend 1. Pull RESET low 2. Disable clk and power 3. Pull RESET high Resume 1. Pull RESET low 2. Enable power ,clk 3. Pull RESET high V56 Changes: [1] Fix CTS fail error V56.1 Changes: [1] Fix CTS fail error [2] Shorten suspend/resume duration Bug 1278869 Bug 1283619 Bug 1297187 Bug 1280093 Bug 1257642 Bug 1245549 Bug 1245404 Change-Id: I04acd5001e6ec675c3a4ddf2db892e0886d36303 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/234223 Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
* input: touch: raydium: correct queueing of resumesDavid Jung2017-07-27
| | | | | | | | | | | | | | Raydium code drop. Queue a maximum of one resume. Bug 1225919 Change-Id: Ice8433752483c9a1b1b73266705d3d19fbd553ff Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/203052 Reviewed-by: Robert Collins <rcollins@nvidia.com> Tested-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
* input: touch: raydium slow scan updatesDavid Jung2017-07-27
| | | | | | | | | | | | | | | | | | Raydium code drop. Update code for slow scan. Bug 1054801 Change-Id: Ie123e14ab9892b8055ab7af4bae9dd14189acfa6 Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/194480 (cherry picked from commit 0ba3a9a571aa6eec71c7e27f765cf056c45c512d) Signed-off-by: David Jung <djung@nvidia.com> Change-Id: I8f52ea1bcbc48c1d152ffaa7613c3da4da5a47b6 Reviewed-on: http://git-master/r/201265 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
* ARM: tegra: Roth: Implement touch infrastructureRobert Collins2017-07-27
| | | | | | | | | | | | | | | | Nvidia changes to add Roth board files. Bug 1178869 Change-Id: I11d5fafe34f1e3c7eb9389887bff2352e4103608 Signed-off-by: Robert Collins <rcollins@nvidia.com> Reviewed-on: http://git-master/r/171519 GVS: Gerrit_Virtual_Submit (cherry picked from commit 1eaadfd926977c44c26f3b67cac2364cd03ecf84) Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: http://git-master/r/194871 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@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>
* touch: raydium: Update to board filesDavid Jung2017-07-27
| | | | | | | | | | | | | | | | | | Nvidia updates to add names for platform id, clocks to data descriptors. Correct 1.8V and 3.3V names for touch screen. Bug 1054288 Bug 1165520 Change-Id: I0ea7c63775ae64b8ec8386f5fdbe7503787a1e8f Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/159599 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com> Rebase-Id: R398782c9ccdecc82e88afcfd145fa5818c4bbb49
* input: touch: raydium: updates for slow scanningDavid Jung2017-07-27
| | | | | | | | | | | | | | | | Raydium code drop. Update for Raydium touch for Pluto slow scanning Bug 1054801 Change-Id: Id182035bf7e51ba3431c392ee10a95b5bc518157 Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/147343 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com> Rebase-Id: R0e9b674d090f90bc23a43c16873f75856ed926a6
* input: touch: raydium: updates for RM31100 chipXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | Raydium code drop. Add support for the new Raydium chip; Working for both the old chip and new one Bug 1162178 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/145319 (cherry picked from commit df26903f2f776b20a4b70eb0a16e9cf65b2a216c) Signed-off-by: David Jung <djung@nvidia.com> Change-Id: Ibbb0e8dc92241753799b91fd2f37263a28404dc1 Reviewed-on: http://git-master/r/146047 Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Rebase-Id: Rdb927e43c13350627e071f61f5847918311da3da
* 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: touchscreen: raydium: Disable slowscanJordan Nien2017-07-27
| | | | | | | | | | | | | | | | | Bug 200086395 Bug 200090443 Bug 200114898 - Disabled slow scan for better user experience during video playback. Change-Id: I26d06838201f01877ad9d756d8625c271bfe6558 Signed-off-by: Jordan Nien <jnien@nvidia.com> Reviewed-on: http://git-master/r/720782 (cherry picked from commit bd7203b4ed98ba582c170be989aa201b10e8a51b) Reviewed-on: http://git-master/r/774360 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@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>
* 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: 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: 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: 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: raydium: Support for Loki touch panelXiaohui Tao2017-07-27
| | | | | | | | | | Change-Id: Idd48fede69dc8952df2489cf53d213bb3e9c48cc Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/277925 Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit 3b192fc70e38e9a2ea975f6c5c40fd8e258d68bd) Signed-off-by: Ajay Nandakumar <anandakumarm@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: touchscreen: raydium v60.2 touch driverXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | raydium code drop [1] Add additional info for regulator event msg [2] Add RM_PLATFORM_A010 for Ardbeg AVC sensor [3] Fix no touch function in Pluto platform with RM31081 from idle mode [4] Refine Pismo touch direction [5] Fix idle mode problem with Ardbeg AVC sensor Bug 1330952 Change-Id: Ib282bec3f07a16eb657314ee5127824f02a89d02 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/257604 Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touchscreen: raydium add detection of AVC sensorXiaohui Tao2017-07-27
| | | | | | | Change-Id: I32db26ebfa18d219f2df05b75dcd5e45250c9b23 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/255809 Reviewed-by: Mitch Luban <mluban@nvidia.com>
* input: touchscreen: raydium v60.2 touch driverXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | raydium code drop [1] Add additional info for regulator event msg [2] Add RM_PLATFORM_A010 for Ardbeg AVC sensor [3] Fix no touch function in Pluto platform with RM31081 from idle mode [4] Refine Pismo touch direction [5] Fix idle mode problem with Ardbeg AVC sensor Bug 1330952 Change-Id: Ib282bec3f07a16eb657314ee5127824f02a89d02 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/257604 Reviewed-by: Mitch Luban <mluban@nvidia.com> (cherry picked from commit 227b8493a0795aff1bd8d1518e5e4fac1f5e7eae) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/261036
* input: touchscreen: raydium add detection of AVC sensorXiaohui Tao2017-07-27
| | | | | | | | | | | | | Bug 1343545 Change-Id: I32db26ebfa18d219f2df05b75dcd5e45250c9b23 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/255809 (cherry picked from commit 2d4726ea827a74a554e3e732cfad4f1a9f3cfa55) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/258559 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
* input: touchscreen: raydium v60.0 touch driverXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | raydium code drop [1] Shorten suspend/resume duration [2] Uniform debug msgs (with prefix "Raydium" and using dev_info instead of printk) [3] Idle mode abnormal CPU clock frequency [4] AVC snesor support (To verify AVC sensor, the return value of rm_tch_get_gpio_sensor_select routine in rm31080a_ts.c should be changed from 0 to 1. *0 for normal dalmore sensor ; 1 for ANC sensor) [5] Pismo support (To verify Pismo, the past platform ID of dalmore_touch_init routine in /kernel/arch/arm/mach-tegra/board-dalmore.c should be changed from RM_PLATFORM_D010 to RM_PLATFORM_P140) [6] Reduce TCH_WAKE_LOCK_TIMEOUT from 2 secs to 500 msec Bug 1343545 Change-Id: Ia65ecb13dc667fce937e82858321ca44f50bb733 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/255657 (cherry picked from commit ad8d07d3ce337390b34784387693b63c6f4ca7d2) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/258557 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
* Input: touch: raydium: Update to Raydium v56.1 driverXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Raydium code drop Jump directly from v51 to v56.1 V52 Changes (Beta) (Roth only): [1] Add Kernel control architecturee (SlowScan/SetIdle/Start/End..) [2] New parameter loading architecture [3] Refine ESD solution for MP [4] Re-fine self-test procedure for MP [5] Load calibration file from environment variable path [6] Fix the LP0 2 sec delay issue [7] Fix finger on the screen during boot up issue [8] This version only support Roth platform [9] Refine coding style (4/16) [10] Newer parameter modifier apk (4/16) [11] Newer architecture for idle mode power saving has some problem, please ignore the idle mode verification on this trial version (4/16) V53 Changes (Beta) (Roth only): [1] Save calibration file from environment variable path [2] Refine selftest threshold V54 Changes (Beta) (Roth only): [1] Fix the hard code file path to environment variable path [2] Remove the redundancy message in kernel layer V54.1 Changes (Beta) (Roth only): [1] Refine environment variable path mechanism [2] Add test version field for debugging [3] Enable environment variable path debug msgs V54.2 Changes (Beta) (Roth only): [1] Refine coding style [2] Add kernel command entries [3] Using kernel command instead of hard-coded in suspend/resume routine [4] Using lower report rate during idle mode to fix CPU ain't got into idle mode (5 Hz) V55.0 Changes (Beta) (Roth only): [1] Fix idle mode issue & increase report rate [2] Add error handling block for kernel table loading [3] Refine coding style V55.1 Changes (Beta) (Roth only): [1] Refine parameter for factory test [2] Add copy file from TOUCH_CONF_DIR in parameter loading [3] Turn on loading file logcat msgs V55.2 Changes (Beta) (Roth only): [1] Remove unnecessary code [2] Add GPIO interface for future sensor select [3] Refine selftest procedure [4] Refine calibration procedure V55.3 Changes (Beta) (Roth only): [1] Add support to disable power and clock when display is off [2] Parameter fine-tune V55.4 Changes (Beta) (Roth only): [1] Fix CTS test failure in service transaction return [2] Fix stub command error return V55.5 Changes (Beta): [1] Suppor roth/pluto/dalmore V55.6 Changes (Beta): [1] Refine coding style [2] Parameter fine tune for pluto/dalmore V55.7 Changes (Beta): [1] Parameter fine tune for pluto/dalmore V55.8 Changes (Beta): [1] Parameter fine tune for pluto(Orientation setting for RM31081) V55.9 Changes (Beta): [1] Refine resume control flow [2] Modify touch WDT function [3] Touch start/stop control flow modification V55.10 Changes (Beta): [1] Set REST as the following Suspend 1. Pull RESET low 2. Disable clk and power 3. Pull RESET high Resume 1. Pull RESET low 2. Enable power ,clk 3. Pull RESET high V56 Changes: [1] Fix CTS fail error V56.1 Changes: [1] Fix CTS fail error [2] Shorten suspend/resume duration Bug 1278869 Bug 1283619 Bug 1297187 Bug 1280093 Bug 1257642 Bug 1245549 Bug 1245404 Change-Id: I04acd5001e6ec675c3a4ddf2db892e0886d36303 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/234223 Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
* input: touch: raydium: correct queueing of resumesDavid Jung2017-07-27
| | | | | | | | | | | | | | Raydium code drop. Queue a maximum of one resume. Bug 1225919 Change-Id: Ice8433752483c9a1b1b73266705d3d19fbd553ff Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/203052 Reviewed-by: Robert Collins <rcollins@nvidia.com> Tested-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
* input: touch: raydium slow scan updatesDavid Jung2017-07-27
| | | | | | | | | | | | | | | | | | Raydium code drop. Update code for slow scan. Bug 1054801 Change-Id: Ie123e14ab9892b8055ab7af4bae9dd14189acfa6 Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/194480 (cherry picked from commit 0ba3a9a571aa6eec71c7e27f765cf056c45c512d) Signed-off-by: David Jung <djung@nvidia.com> Change-Id: I8f52ea1bcbc48c1d152ffaa7613c3da4da5a47b6 Reviewed-on: http://git-master/r/201265 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
* ARM: tegra: Roth: Implement touch infrastructureRobert Collins2017-07-27
| | | | | | | | | | | | | | | | Nvidia changes to add Roth board files. Bug 1178869 Change-Id: I11d5fafe34f1e3c7eb9389887bff2352e4103608 Signed-off-by: Robert Collins <rcollins@nvidia.com> Reviewed-on: http://git-master/r/171519 GVS: Gerrit_Virtual_Submit (cherry picked from commit 1eaadfd926977c44c26f3b67cac2364cd03ecf84) Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: http://git-master/r/194871 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@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>
* touch: raydium: Update to board filesDavid Jung2017-07-27
| | | | | | | | | | | | | | | | | | Nvidia updates to add names for platform id, clocks to data descriptors. Correct 1.8V and 3.3V names for touch screen. Bug 1054288 Bug 1165520 Change-Id: I0ea7c63775ae64b8ec8386f5fdbe7503787a1e8f Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/159599 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com> Rebase-Id: R398782c9ccdecc82e88afcfd145fa5818c4bbb49
* input: touch: raydium: updates for slow scanningDavid Jung2017-07-27
| | | | | | | | | | | | | | | | Raydium code drop. Update for Raydium touch for Pluto slow scanning Bug 1054801 Change-Id: Id182035bf7e51ba3431c392ee10a95b5bc518157 Signed-off-by: David Jung <djung@nvidia.com> Reviewed-on: http://git-master/r/147343 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com> Rebase-Id: R0e9b674d090f90bc23a43c16873f75856ed926a6
* input: touch: raydium: updates for RM31100 chipXiaohui Tao2017-07-27
| | | | | | | | | | | | | | | | | | Raydium code drop. Add support for the new Raydium chip; Working for both the old chip and new one Bug 1162178 Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/145319 (cherry picked from commit df26903f2f776b20a4b70eb0a16e9cf65b2a216c) Signed-off-by: David Jung <djung@nvidia.com> Change-Id: Ibbb0e8dc92241753799b91fd2f37263a28404dc1 Reviewed-on: http://git-master/r/146047 Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Rebase-Id: Rdb927e43c13350627e071f61f5847918311da3da
* 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