summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-10-12touch/focaltech: Update logs tagandroid-u-qpr3-beta-2_r0.7android-u-qpr3-beta-2_r0.6android-u-qpr3-beta-2_r0.5android-u-qpr3-beta-2_r0.4android-u-qpr3-beta-2_r0.3android-u-qpr3-beta-2_r0.2android-u-qpr3-beta-2.1_r0.7android-u-qpr3-beta-2.1_r0.5android-u-qpr3-beta-2.1_r0.4android-u-qpr3-beta-2.1_r0.3android-u-qpr3-beta-2.1_r0.2android-u-qpr3-beta-2.1_r0.1android-u-qpr3-beta-1_r0.7android-u-qpr3-beta-1_r0.5android-u-qpr3-beta-1_r0.4android-u-qpr3-beta-1_r0.3android-u-qpr3-beta-1_r0.2android-u-qpr3-beta-1_r0.1android-u-qpr2-beta-3_r0.7android-u-qpr2-beta-3_r0.6android-u-qpr2-beta-3_r0.5android-u-qpr2-beta-3_r0.4android-u-qpr2-beta-3_r0.3android-u-qpr2-beta-3_r0.2android-u-qpr2-beta-3.1_r0.7android-u-qpr2-beta-3.1_r0.5android-u-qpr2-beta-3.1_r0.4android-u-qpr2-beta-3.1_r0.3android-u-qpr2-beta-3.1_r0.2android-u-qpr2-beta-3.1_r0.1android-u-qpr2-beta-2_r0.7android-u-qpr2-beta-2_r0.5android-u-qpr2-beta-2_r0.4android-u-qpr2-beta-2_r0.3android-u-qpr2-beta-2_r0.2android-u-qpr2-beta-2_r0.1android-15-dp-2_r0.6android-15-dp-2_r0.5android-15-dp-2_r0.4android-15-dp-2_r0.3android-15-dp-2_r0.2android-15-dp-2_r0.1android-15-dp-1_r0.7android-15-dp-1_r0.5android-15-dp-1_r0.4android-15-dp-1_r0.3android-15-dp-1_r0.2android-15-dp-1_r0.1android-15-beta-2_r0.6android-15-beta-2_r0.5android-15-beta-2_r0.4android-15-beta-2_r0.3android-15-beta-2_r0.2android-15-beta-2_r0.1android-15-beta-1_r0.6android-15-beta-1_r0.5android-15-beta-1_r0.4android-15-beta-1_r0.3android-15-beta-1_r0.2android-15-beta-1_r0.1android-14.0.0_r0.76android-14.0.0_r0.75android-14.0.0_r0.74android-14.0.0_r0.73android-14.0.0_r0.72android-14.0.0_r0.71android-14.0.0_r0.66android-14.0.0_r0.65android-14.0.0_r0.64android-14.0.0_r0.63android-14.0.0_r0.62android-14.0.0_r0.61android-14.0.0_r0.56android-14.0.0_r0.55android-14.0.0_r0.54android-14.0.0_r0.53android-14.0.0_r0.52android-14.0.0_r0.51android-gs-tangorpro-5.10-android15-dpandroid-gs-tangorpro-5.10-android15-betaandroid-gs-tangorpro-5.10-android14-qpr3-betaandroid-gs-tangorpro-5.10-android14-qpr2-betaandroid-gs-tangorpro-5.10-android14-qpr2android-gs-raviole-5.10-android15-dpandroid-gs-raviole-5.10-android15-betaandroid-gs-raviole-5.10-android14-qpr3-betaandroid-gs-raviole-5.10-android14-qpr2-betaandroid-gs-raviole-5.10-android14-qpr2android-gs-pantah-5.10-android15-dpandroid-gs-pantah-5.10-android15-betaandroid-gs-pantah-5.10-android14-qpr3-betaandroid-gs-pantah-5.10-android14-qpr2-betaandroid-gs-pantah-5.10-android14-qpr2android-gs-lynx-5.10-android15-dpandroid-gs-lynx-5.10-android15-betaandroid-gs-lynx-5.10-android14-qpr3-betaandroid-gs-lynx-5.10-android14-qpr2-betaandroid-gs-lynx-5.10-android14-qpr2android-gs-felix-5.10-android15-dpandroid-gs-felix-5.10-android15-betaandroid-gs-felix-5.10-android14-qpr3-betaandroid-gs-felix-5.10-android14-qpr2-betaandroid-gs-felix-5.10-android14-qpr2android-gs-bluejay-5.10-android15-dpandroid-gs-bluejay-5.10-android15-betaandroid-gs-bluejay-5.10-android14-qpr3-betaandroid-gs-bluejay-5.10-android14-qpr2-betaandroid-gs-bluejay-5.10-android14-qpr2Super Liu
Bug: 242559052 Test: check logs on device Change-Id: I1092f61fe0e9df1652d28cfe8a82e2cc9addbb7e Signed-off-by: Super Liu <supercjliu@google.com>
2022-11-27Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcandroid-u-qpr2-beta-1_r0.6android-u-qpr2-beta-1_r0.5android-u-qpr2-beta-1_r0.4android-u-qpr2-beta-1_r0.3android-u-qpr2-beta-1_r0.2android-u-qpr2-beta-1_r0.1android-u-qpr1-beta-2_r0.7android-u-qpr1-beta-2_r0.5android-u-qpr1-beta-2_r0.4android-u-qpr1-beta-2_r0.3android-u-qpr1-beta-2_r0.2android-u-qpr1-beta-2_r0.1android-u-qpr1-beta-2.2_r0.6android-u-qpr1-beta-2.2_r0.5android-u-qpr1-beta-2.2_r0.4android-u-qpr1-beta-2.2_r0.3android-u-qpr1-beta-2.2_r0.2android-u-qpr1-beta-2.2_r0.1android-u-qpr1-beta-2.1_r0.7android-u-qpr1-beta-2.1_r0.5android-u-qpr1-beta-2.1_r0.4android-u-qpr1-beta-2.1_r0.3android-u-qpr1-beta-2.1_r0.2android-u-qpr1-beta-2.1_r0.1android-u-qpr1-beta-1_r0.7android-u-qpr1-beta-1_r0.5android-u-qpr1-beta-1_r0.4android-u-qpr1-beta-1_r0.3android-u-qpr1-beta-1_r0.2android-u-qpr1-beta-1_r0.1android-u-preview-2_r0.4android-u-preview-2_r0.3android-u-preview-2_r0.2android-u-preview-1_r0.4android-u-preview-1_r0.3android-u-preview-1_r0.2android-u-beta-5.3_r0.7android-u-beta-5.3_r0.5android-u-beta-5.3_r0.4android-u-beta-5.3_r0.2android-u-beta-5.3_r0.1android-u-beta-4_r0.7android-u-beta-4_r0.5android-u-beta-4_r0.4android-u-beta-4_r0.3android-u-beta-4_r0.2android-u-beta-4_r0.1android-u-beta-3_r0.3android-u-beta-3_r0.2android-u-beta-2_r0.4android-u-beta-2_r0.3android-u-beta-2_r0.2android-u-beta-2.1_r0.4android-u-beta-2.1_r0.3android-u-beta-2.1_r0.2android-u-beta-1_r0.5android-u-beta-1_r0.4android-u-beta-1_r0.3android-14.0.0_r0.7android-14.0.0_r0.6android-14.0.0_r0.5android-14.0.0_r0.44android-14.0.0_r0.43android-14.0.0_r0.42android-14.0.0_r0.41android-14.0.0_r0.40android-14.0.0_r0.4android-14.0.0_r0.39android-14.0.0_r0.37android-14.0.0_r0.36android-14.0.0_r0.35android-14.0.0_r0.34android-14.0.0_r0.33android-14.0.0_r0.31android-14.0.0_r0.3android-14.0.0_r0.25android-14.0.0_r0.23android-14.0.0_r0.22android-14.0.0_r0.21android-14.0.0_r0.2android-14.0.0_r0.19android-14.0.0_r0.17android-14.0.0_r0.16android-14.0.0_r0.15android-14.0.0_r0.14android-14.0.0_r0.13android-14.0.0_r0.11android-gs-tangorpro-android14-releaseandroid-gs-tangorpro-5.10-u-qpr1-beta2android-gs-tangorpro-5.10-u-beta5.3android-gs-tangorpro-5.10-u-beta4android-gs-tangorpro-5.10-android14-qpr1-betaandroid-gs-tangorpro-5.10-android14-qpr1android-gs-tangorpro-5.10-android14android-gs-raviole-android14-releaseandroid-gs-raviole-5.10-u-qpr1-beta2android-gs-raviole-5.10-u-preview-2android-gs-raviole-5.10-u-preview-1android-gs-raviole-5.10-u-beta5.3android-gs-raviole-5.10-u-beta4android-gs-raviole-5.10-u-beta3android-gs-raviole-5.10-u-beta2android-gs-raviole-5.10-u-beta1android-gs-raviole-5.10-android14-qpr1-betaandroid-gs-raviole-5.10-android14-qpr1android-gs-raviole-5.10-android14android-gs-pantah-android14-releaseandroid-gs-pantah-5.10-u-qpr1-beta2android-gs-pantah-5.10-u-preview-2android-gs-pantah-5.10-u-preview-1android-gs-pantah-5.10-u-beta5.3android-gs-pantah-5.10-u-beta4android-gs-pantah-5.10-u-beta2android-gs-pantah-5.10-u-beta1android-gs-pantah-5.10-android14-qpr1-betaandroid-gs-pantah-5.10-android14-qpr1android-gs-pantah-5.10-android14android-gs-lynx-android14-releaseandroid-gs-lynx-5.10-u-qpr1-beta2android-gs-lynx-5.10-u-beta4android-gs-lynx-5.10-android14-qpr1-betaandroid-gs-lynx-5.10-android14-qpr1android-gs-lynx-5.10-android14android-gs-felix-android14-releaseandroid-gs-felix-5.10-u-qpr1-beta2android-gs-felix-5.10-u-beta5.3android-gs-felix-5.10-u-beta4android-gs-felix-5.10-android14-qpr1-betaandroid-gs-felix-5.10-android14-qpr1android-gs-felix-5.10-android14android-gs-bluejay-android14-releaseandroid-gs-bluejay-5.10-u-qpr1-beta2android-gs-bluejay-5.10-u-preview-2android-gs-bluejay-5.10-u-preview-1android-gs-bluejay-5.10-u-beta5.3android-gs-bluejay-5.10-u-beta4android-gs-bluejay-5.10-u-beta3android-gs-bluejay-5.10-u-beta2android-gs-bluejay-5.10-u-beta1android-gs-bluejay-5.10-android14-qpr1-betaandroid-gs-bluejay-5.10-android14-qpr1android-gs-bluejay-5.10-android14PixelBot AutoMerger
SBMerger: 478053055 Change-Id: I4ba9ee378c5c11714484e6f48f87234c39f63c0f Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-11-27Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-tm-qpr3android-t-qpr3-beta-3_r0.5android-t-qpr3-beta-3_r0.4android-t-qpr3-beta-3_r0.3android-t-qpr3-beta-3.1_r0.5android-t-qpr3-beta-3.1_r0.4android-t-qpr3-beta-3.1_r0.3android-t-qpr3-beta-2_r0.5android-t-qpr3-beta-2_r0.4android-t-qpr3-beta-2_r0.3android-t-qpr3-beta-1_r0.5android-t-qpr3-beta-1_r0.4android-t-qpr3-beta-1_r0.3android-t-qpr3-beta-1_r0.1android-13.0.0_r0.93android-13.0.0_r0.92android-13.0.0_r0.85android-13.0.0_r0.84android-13.0.0_r0.83android-13.0.0_r0.82android-13.0.0_r0.127android-13.0.0_r0.126android-13.0.0_r0.125android-13.0.0_r0.124android-13.0.0_r0.123android-13.0.0_r0.121android-13.0.0_r0.117android-13.0.0_r0.116android-13.0.0_r0.115android-13.0.0_r0.114android-13.0.0_r0.113android-13.0.0_r0.112android-13.0.0_r0.107android-13.0.0_r0.106android-13.0.0_r0.105android-13.0.0_r0.104android-13.0.0_r0.103android-13.0.0_r0.100android-gs-tangorpro-5.10-android13-qpr3android-gs-raviole-5.10-t-qpr3-beta-3android-gs-raviole-5.10-t-qpr3-beta-2android-gs-raviole-5.10-android13-qpr3-beta1android-gs-raviole-5.10-android13-qpr3android-gs-pantah-5.10-t-qpr3-beta-3android-gs-pantah-5.10-t-qpr3-beta-2android-gs-pantah-5.10-android13-qpr3-beta1android-gs-pantah-5.10-android13-qpr3android-gs-lynx-5.10-android13-qpr3android-gs-felix-5.10-android13-qpr3-candroid-gs-felix-5.10-android13-qpr3android-gs-felix-5.10-android13-d3android-gs-bluejay-5.10-t-qpr3-beta-3android-gs-bluejay-5.10-t-qpr3-beta-2android-gs-bluejay-5.10-android13-qpr3-beta1android-gs-bluejay-5.10-android13-qpr3PixelBot AutoMerger
SBMerger: 478053055 Change-Id: If72b4669c4b4a277dd6cf7b09ff9ff921ec5d1ac Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-11-15touch/ft3658: Support the status report of baseline refreshandroid-t-qpr2-beta-3_r0.5android-t-qpr2-beta-3_r0.4android-t-qpr2-beta-3_r0.3android-t-qpr2-beta-3.2_r0.6android-t-qpr2-beta-3.2_r0.5android-t-qpr2-beta-2_r0.5android-t-qpr2-beta-2_r0.4android-t-qpr2-beta-2_r0.3android-t-qpr2-beta-1_r0.6android-13.0.0_r0.91android-13.0.0_r0.77android-13.0.0_r0.76android-13.0.0_r0.75android-13.0.0_r0.74android-13.0.0_r0.73android-13.0.0_r0.70android-13.0.0_r0.69android-13.0.0_r0.68android-13.0.0_r0.64android-gs-tangorpro-5.10-android13-d2android-gs-raviole-5.10-android13-qpr2-betaandroid-gs-raviole-5.10-android13-qpr2android-gs-pantah-5.10-t-qpr2-beta-3.2android-gs-pantah-5.10-t-qpr2-beta-1android-gs-pantah-5.10-android13-qpr2-betaandroid-gs-pantah-5.10-android13-qpr2android-gs-lynx-5.10-android13-qpr2-bandroid-gs-lynx-5.10-android13-d4android-gs-bluejay-5.10-t-qpr2-beta-3android-gs-bluejay-5.10-android13-qpr2-betaandroid-gs-bluejay-5.10-android13-qpr2Mason Wang
Replace the frequency hopping status with the baseline refresh status. This change started with the new firmware V14_D01. Bug: 257196242 Test: Verify pass by checking the status log. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: Ic777beec3323208b5282854bb34b0d34caccb47d
2022-11-14Merge "Merge android13-gs-pixel-5.10-tm-qpr3 into ↵Joey Lin
android13-gs-pixel-5.10-udc" into android13-gs-pixel-5.10-udc
2022-11-14touch/focaltech: Access the SPI bus regardless of TBN errorMason Wang
The TBN error is including timeout witch is caused by the AOC wake-up gesture driver does not reply the ACK in time, but SPI would be ready for kernel touch driver. Bug: 257076750 Test: Touch basic operation and wake-up gesture work well. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I0b992372dd3ac179d28ec9bda0805606ba38aee1 Merged-In: I0b992372dd3ac179d28ec9bda0805606ba38aee1 (cherry picked from commit 3341d5c94af2162c934f93fa3e03c08688f3fdc9)
2022-11-13Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcPixelBot AutoMerger
SBMerger: 478053055 Change-Id: I2935209dc9c0f9c977886d68fb8081a5444a184c Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-11-13Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-tm-qpr3PixelBot AutoMerger
SBMerger: 478053055 Change-Id: I475b8a96ab57154d773431ff4b5f7d549b0f3d89 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-11-11touch/focaltech: Access the SPI bus regardless of TBN errorandroid-t-qpr2-beta-1_r0.5android-t-qpr2-beta-1_r0.4android-gs-raviole-5.10-t-qpr2-beta-1android-gs-bluejay-5.10-t-qpr2-beta-1Mason Wang
The TBN error is including timeout witch is caused by the AOC wake-up gesture driver does not reply the ACK in time, but SPI would be ready for kernel touch driver. Bug: 257076750 Test: Touch basic operation and wake-up gesture work well. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I0b992372dd3ac179d28ec9bda0805606ba38aee1
2022-08-17Merge "ft3658: clear touch_offload coords while release all touches" into ↵android-t-qpr1-beta-3_r0.5android-t-qpr1-beta-3.1_r0.1android-13.0.0_r0.60android-13.0.0_r0.55android-13.0.0_r0.50android-gs-pantah-5.10-t-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1Yen-Chao Chen
android13-gs-pixel-5.10-tm-qpr1
2022-08-16ft3658: clear touch_offload coords while release all touchesdavidycchen
When the screen is off, touch driver releases all the input touch events. This makes the status different from touch_offload so we need to synchronize the status. Bug: 238536533 Test: Touch events are cleared while suspending. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: If1874403f87943561b58e2b9b44d3fe38c6002f2
2022-08-10touch/focaltech: check finger count to avoid invalid access.Mason Wang
Bug: 240000163 Test: pass to run following test: adb shell cat /proc/focaltech_touch/selftest/Strength Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: Ic855ecefd5c3a901cb181612a8eac5380edc0e0c
2022-08-02touch/focaltech: Enable cancel_reporting capability.Mark Chang
Bug: 241033257 Test: Touch working as expected. Test: twoshay requested cancel_reporting successfully. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: Ie61dda4786837fe52a02254081cc5d51d76370ff
2022-07-29Merge "touch/focaltech: support to report SS_WATER data." into ↵TreeHugger Robot
android13-gs-pixel-5.10-tm-qpr1
2022-07-25Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1PixelBot AutoMerger
Bug: 233569354 SBMerger: 442815275 Change-Id: I743aa6abd1eb971bf963569cb45f63fb6e6e87f5 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-07-18touch/focaltech: register MT_TOOL_PALM for input device.android-13.0.0_r0.45android-13.0.0_r0.32android-13.0.0_r0.31android-gs-pantah-5.10-android13-d1davidycchen
Bug: 239384823 Test: getevent -ltr and check MT_TOOL_PALM is reported. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I551994d1f461d8ca5b3770529e3b17a75fbf8185
2022-07-15touch/focaltech: support to report SS_WATER data.Mason Wang
Currently the driver only reports the SS_NORMAL data, but focaltech firmware supports SS_WATER data as well. So the driver change to support it. Bug: 230031445 Test: Touch works well. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: If65ee680c15ea572e4c24c0dc350fb461571dac4
2022-07-06Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1PixelBot AutoMerger
Bug: 233569354 SBMerger: 442815275 Change-Id: I9b852aa5a73f4f886f21b049019bce75e95e4113 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-06-29touch/focaltech: support finger leaves event for UDFPS.Mason Wang
Bug: 235928874 Test: LHBM is off right after LPTW finger leaves. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: Iedc0fed4f465630ca2a5b031a5e29d17b7908f8e
2022-06-21Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1PixelBot AutoMerger
Bug: 233569354 SBMerger: 442815275 Change-Id: If9ddc4ad828da7045d9cde49dc35e506c1f28eec Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-06-16touch/focaltech: check the heatmap data size to avoid invalid access.Mason Wang
Change list: 1. Remove to switch the setting between uncompressed and compressed heatmap in fts_test_get_strength(). 2. Check if the size of compressed heatmap is valid. Bug: 236026908 Test: Stress test pass, there is no memory corruption when draw circles on the panel while running the dump touch state script. Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I4ecc1b3470e02f02cfd12cd3752ece540e6705c0
2022-06-13Merge "touch/focaltech: Prevent accessing register in deep sleep mode." into ↵TreeHugger Robot
android13-gs-pixel-5.10-tm-d1
2022-06-13touch/focaltech: Prevent accessing register in deep sleep mode.Mason Wang
Bug: 235414349 Test: Touch basic operation works well after the device suspends and resumes. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I6112c5d32bb24476e19bde5afab37898cee4b78a
2022-06-12Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1PixelBot AutoMerger
SBMerger: 442815275 Change-Id: I95700684caba44b0c53d8fd62de210624ee874dd Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-06-10Merge changes from topic "TP_V0F_D01" into android13-gs-pixel-5.10-tm-d1TreeHugger Robot
* changes: touch/focaltech: Add to detect firmware self-reset mode. touch/focaltech: support uncompressed and compressed heatmap. touch/focaltech: Compressed MS and add SS_WATER. touch/focaltech: Restore feature settings as touch IC resets.
2022-06-10touch/focaltech: Add to detect firmware self-reset mode.Mason Wang
Bug: 231678216 Test: Build pass. Change-Id: I2e96e0074a75b4a3ff992be317eb6cac0e64b61f
2022-06-10touch/focaltech: support uncompressed and compressed heatmap.Mason Wang
Change the processes of reading heatmap to support both enabled uncompressed or compressed heatmap of touch firmware. Bug: 228953908 Test: Touch operation, twoshay and V4l work well Change-Id: Ief8851a6495c505aecf173cd271024f29954f2b9
2022-06-10touch/focaltech: Compressed MS and add SS_WATER.Mason Wang
Change list: 1. Compress the mutual-sensing data. The purpose is to reduce the data count of heatmap through SPI. To compress the mutual-sensing data in firmware side, and to decompress it in kernel driver side. It reduces the transferring data form 1088 bytes to 50 bytes/per finger). 2. Add water-on self-sensing data. Bug: 228953908 Test: Touch, v4l, twoshay works well. Change-Id: I18ee794aa9ef098764e8483f87f6697d5bff06d0
2022-06-10touch/focaltech: Restore feature settings as touch IC resets.Mason Wang
Add a recovery mechanism to restore all firmware settings when touch IC resets unexpectedly. In each IRQ, the driver checks the byte2 value of register 0xB2, it records all the firmware feature settings currently, and the driver can compare them to settings of host side, and restores the settings to firmware again if they are different. Bug: 231678216 Test: Touch works well, please refer to the test method in b/231678216#comment2 Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: Id5ca4f7f1dd246a9db0edc1b71d6fa23fb79af4b
2022-06-10touch/focaltech: add retry mechanism when failed to read chip id.Mason Wang
When driver failed to read touch id by error code (-EIO), then to reset the touch ic and retry to read touch id again. The max retry count is 3. Bug: 234242120 Test: Basic touch operation works well after device suspends and resumes. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I3aae959c2bad0e3e2926b37cdc0c3d47d1443fa0
2022-06-10touch/focaltech: Enlarge SPI_BUF_LENGTH from 256 to 1536.Mason Wang
New buffer size is 1536 = ALIGN(1451, 256). Bug: 235451270 Test: Basic touch operation works well. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I36d2603a4f4748e941744718d6562089f6780944
2022-06-10touch/focaltech: report up event if down touch records are not matched.Mason Wang
Bug: 235441233 Test: Basic touch operation works well. Change-Id: I5bcf6f015e9471e96c3df614a095aa92efd7217e
2022-06-06Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1Robin Peng
Bug: 233569354 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: I0d781acc39f1fa54c0aa38a319ca03c654eb4197
2022-06-01touch/focaltech: fix proc_remove error.Mason Wang
The root cause is by double remove self-test file nodes in /proc/focaltech_touch/selftest/ when device is shutdown. Bug: 234499112 Test: There is no kernel panic by touch driver when flash cloudripper_kasan kernel image. Please refer to b/234499112#comment5 Change-Id: Iec75c6bd40e6f199348c27cbb1282f67c20c4bf2
2022-05-18touch/focaltech: Check if SPI bus is available before transferring.Mason Wang
Bug: 232640281 Test: Touch operation and touch gesture work well. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I53c845f491b9a8815d1d334d0ee0d5042cef87c0
2022-05-12touch/focaltech: Free IRQ as early as possible when shutdowns.Mason Wang
Bug: 232118695 Test: Verify pass by tapping on the touch when device shutdowns for 20 times, and there is no fatal exception. Change-Id: I3470868ca48037105a4437af2e13389f23d660e6
2022-05-06touch/focaltech: Reduce touch firmware flashing time.Mason Wang
Increase the flash packet length (FTS_FLASH_PACKET_LENGTH) from 32 to 128. Bug: 199105246 Test: Reduce the flashing time from 15s to 10s. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I9e6e3abced6d9a52735240a3d944a04b0d1c3195
2022-05-04Merge "touch/focaltech: Fix accessing null pointer during shutdown." into ↵Mason Wang
android13-gs-pixel-5.10
2022-04-29touch/focaltech: Fix accessing null pointer during shutdown.Mason Wang
Root cause is that touch driver reads heatmap data when user taps on the touch panel during shutdown, but the heatmap relative buffers have been freed, so I move the free processes of heatmap buffers after freeing IRQ. Bug: 230670844 Test: There is no kernel panic to keep a finger on the panel during shutdown. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I48d1f1ce8e7c8a24acaca3abbb37a404ecc740dc
2022-04-29touch/focaltouch: Add retry mechanism for restoring fw settings.Mason Wang
Add retry mechanism for restoring firmware settings after firmware updates or touch resets. Bug: 230175721 Test: Touch works well when device suspends and resumes. Change-Id: Ibaaf5c002588f91b24ed34c05c6256955763ae72
2022-04-27Merge "touch/focaltech: Support touch orientation." into android13-gs-pixel-5.10TreeHugger Robot
2022-04-25touch/focaltech: Support touch orientation.Mason Wang
Note: The focaltech touch firmware does not support to report the rotation/orientation data, but the rotation/orientation is calculated from offload and reported to upper layer. Bug: 227525554 Test: Touch works well. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I6e2309845056397ed495965d8fb2010adefe866f
2022-04-22Merge "touch/focaltech: Add SPI shutdown function." into android13-gs-pixel-5.10TreeHugger Robot
2022-04-21touch/focaltech_touch: add reset into power on sequence.Mason Wang
Bug: 229841431 Test: Touch is working well, and signal diagram is good. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I9ace7a89762e367165726ad33ce04bc98233d634
2022-04-20Merge "touch/focaltech: Refine the process of reading touch data." into ↵TreeHugger Robot
android13-gs-pixel-5.10
2022-04-20Merge "touch/focaltech: Using a flag instead of accessing work-mode ↵Mason Wang
register." into android13-gs-pixel-5.10
2022-04-20Merge "touch/focaltech: Support DMA_MODE when length exceeds 64 bytes." into ↵Mason Wang
android13-gs-pixel-5.10
2022-04-20touch/focaltech: Refine the process of reading touch data.Mason Wang
Original process: Read sensor and gesture data -> read customer mode status(reg(0xB2)) -> read heatmap data (including touch and gesture data + MS + SS) New process: read heatmap data (including touch and gesture data + MS + SS) -> read customer mode status(reg(0xB2)) Bug: 228921254 Test: Touch is working well. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I63591b48999e38c31b2f2b881dd2f9a718d171e5
2022-04-19touch/focaltech_touch: Restored firmware settings after updating firmware.Mason Wang
The firmware feature settings (heatmap, grip, palm, continuous report, glove) should be restored after uploading firmware or when device resumed. Bug: 229708596 Test: Touch works well after flashing firmware. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: Ia79a4064f501cedde6528da5e6695ad4d7fbf644
2022-04-19touch/focaltech: Using a flag instead of accessing work-mode register.Mason Wang
The purpose is to reduce the data transfer over the SPI bus. Because access SPI bus will cause extra latency, I use a flag of "work_mode" instead of reading mode register every time. Bug: 228921254 Test: Verify pass by following test cases: 1.Normal touch operation. 2.adb shell cat /proc/focaltech_touch/INT_PIN Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I91b6ca32c8a351bc69118f3aea349c476ce3f3c6