summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-09touch/sec: logging for watchdog timer resetandroid-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-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-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.97android-14.0.0_r0.96android-14.0.0_r0.95android-14.0.0_r0.94android-14.0.0_r0.93android-14.0.0_r0.92android-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.7android-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.6android-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-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-android15-dpandroid-gs-tangorpro-5.10-android15-betaandroid-gs-tangorpro-5.10-android14-qpr3-betaandroid-gs-tangorpro-5.10-android14-qpr3android-gs-tangorpro-5.10-android14-qpr2-betaandroid-gs-tangorpro-5.10-android14-qpr2android-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-android15-dpandroid-gs-raviole-5.10-android15-betaandroid-gs-raviole-5.10-android14-qpr3-betaandroid-gs-raviole-5.10-android14-qpr3android-gs-raviole-5.10-android14-qpr2-betaandroid-gs-raviole-5.10-android14-qpr2android-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-android15-dpandroid-gs-pantah-5.10-android15-betaandroid-gs-pantah-5.10-android14-qpr3-betaandroid-gs-pantah-5.10-android14-qpr3android-gs-pantah-5.10-android14-qpr2-betaandroid-gs-pantah-5.10-android14-qpr2android-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-android15-dpandroid-gs-lynx-5.10-android15-betaandroid-gs-lynx-5.10-android14-qpr3-betaandroid-gs-lynx-5.10-android14-qpr3android-gs-lynx-5.10-android14-qpr2-betaandroid-gs-lynx-5.10-android14-qpr2android-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-android15-dpandroid-gs-felix-5.10-android15-betaandroid-gs-felix-5.10-android14-qpr3-betaandroid-gs-felix-5.10-android14-qpr3android-gs-felix-5.10-android14-qpr2-betaandroid-gs-felix-5.10-android14-qpr2android-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-android15-dpandroid-gs-bluejay-5.10-android15-betaandroid-gs-bluejay-5.10-android14-qpr3-betaandroid-gs-bluejay-5.10-android14-qpr3android-gs-bluejay-5.10-android14-qpr2-betaandroid-gs-bluejay-5.10-android14-qpr2android-gs-bluejay-5.10-android14-qpr1-betaandroid-gs-bluejay-5.10-android14-qpr1android-gs-bluejay-5.10-android14Varad Gokhale
Add log to detect unexpected touch-ic watchdog timer reset Bug: 245454412 Change-Id: Ib1148c25813f3dd881a4a4a7b7e1863f07e124fb Signed-off-by: Varad Gokhale <gokv@google.com>
2022-10-27Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-udcRobin Peng
Bug: 255246572 Change-Id: Id823b12728edd80f6dbd90dc7fc663e593bcdb86 Signed-off-by: Robin Peng <robinpeng@google.com> Merge remote-tracking branch 'partner/android13-gs-pixel-5.10-tm-qpr2' into HEAD
2022-10-21Merge android13-gs-pixel-5.10-gs101-tm-qpr2 into android13-gs-pixel-5.10-tm-qpr2android-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-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-t-qpr2-beta-1_r0.5android-t-qpr2-beta-1_r0.4android-13.0.0_r0.93android-13.0.0_r0.92android-13.0.0_r0.91android-13.0.0_r0.85android-13.0.0_r0.84android-13.0.0_r0.83android-13.0.0_r0.82android-13.0.0_r0.77android-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-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-tangorpro-5.10-android13-d2android-gs-raviole-5.10-t-qpr3-beta-3android-gs-raviole-5.10-t-qpr3-beta-2android-gs-raviole-5.10-t-qpr2-beta-1android-gs-raviole-5.10-android13-qpr3-beta1android-gs-raviole-5.10-android13-qpr3android-gs-raviole-5.10-android13-qpr2-betaandroid-gs-raviole-5.10-android13-qpr2android-gs-pantah-5.10-t-qpr3-beta-3android-gs-pantah-5.10-t-qpr3-beta-2android-gs-pantah-5.10-t-qpr2-beta-3.2android-gs-pantah-5.10-t-qpr2-beta-1android-gs-pantah-5.10-android13-qpr3-beta1android-gs-pantah-5.10-android13-qpr3android-gs-pantah-5.10-android13-qpr2-betaandroid-gs-pantah-5.10-android13-qpr2android-gs-lynx-5.10-android13-qpr3android-gs-lynx-5.10-android13-qpr2-bandroid-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-t-qpr2-beta-3android-gs-bluejay-5.10-t-qpr2-beta-1android-gs-bluejay-5.10-android13-qpr3-beta1android-gs-bluejay-5.10-android13-qpr3android-gs-bluejay-5.10-android13-qpr2-betaandroid-gs-bluejay-5.10-android13-qpr2Lucas Wei
Bug: 238399460 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I83ffae2095a1e2b53e59cbd44a6819826a1f83fb
2022-08-12touch/sec: add system reset before bus handshaking.android-t-qpr1-beta-3_r0.4android-t-qpr1-beta-3_r0.3android-t-qpr1-beta-2_r0.5android-t-qpr1-beta-2_r0.4android-t-qpr1-beta-1_r0.3android-13.0.0_r0.59android-13.0.0_r0.58android-13.0.0_r0.54android-13.0.0_r0.53android-13.0.0_r0.49android-13.0.0_r0.48main-16k-gs-raviole-5.10android-gs-raviole-5.10-t-qpr1-beta-2android-gs-raviole-5.10-android13-qpr1-beta-3android-gs-raviole-5.10-android13-qpr1-betaandroid-gs-raviole-5.10-android13-qpr1android-gs-bluejay-5.10-t-qpr1-beta-2android-gs-bluejay-5.10-android13-qpr1-beta-3android-gs-bluejay-5.10-android13-qpr1Super Liu
Bug: 228079210 Test: basic touch operation for STTW, DTTW and lift to wakeup. Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I186cb14722308c645841332d32460a31ec5a25dd
2022-06-28touch/sec: add debug logs for interrupt, coords and status.android-t-qpr1-beta-1_r0.4android-gs-bluejay-5.10-android13-qpr1-betaSuper Liu
Test: check the touch logs. [sec_input] dump-int: #265(6.130): S#21(+) C#249(0x1). [sec_input] dump-int: #266(6.129): S#21 C#250(0x1)(+). [sec_input] dump-int: #267(6.121): S#21 C#251(0x0)(+). [sec_input] dump-int: #268(5.187): S#22(+) C#251(0x0). [sec_input] dump: #0: 20.284(0.37) D(0, 0). [sec_input] dump: #0: 18.897(0.124) D(0, 0). [sec_input] dump: #0: 7.302(0.389) D(-27, 148). [sec_input] dump: #0: 6.142(0.21) D(0, 0). [sec_input] dump: i/o 0, comm 0, reset 0, longest 0.389. [sec_input] dump: cnt 2, active 0, wet 0, palm 1. Bug: 228079210 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I542b0b65033a98474262b4601f841ec43ef7ea35
2022-06-16touch/sec: support input cancel event reporting.Super Liu
This CL is to better control the HBM for UX by input cancel event reporting. Bug: 235453790 Test: FPS unlock. Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I41f3946f7e51c4c7c421df04af4515fbf62fd83e
2022-04-25sec: modyfy the ABS_MT_ORIENTATION range as -4096 to 4096android-t-qpr1-beta-3_r0.5android-t-qpr1-beta-3.1_r0.1android-t-beta-4_r0.6android-t-beta-4_r0.5android-t-beta-4_r0.4android-t-beta-3_r0.4android-t-beta-3.3_r0.4android-t-beta-3.2_r0.4android-13.0.0_r0.60android-13.0.0_r0.55android-13.0.0_r0.50android-13.0.0_r0.5android-13.0.0_r0.45android-13.0.0_r0.44android-13.0.0_r0.43android-13.0.0_r0.4android-13.0.0_r0.32android-13.0.0_r0.31android-13.0.0_r0.20android-13.0.0_r0.19android-13.0.0_r0.15android-13.0.0_r0.14android-gs-raviole-5.10-t-beta-4android-gs-raviole-5.10-t-beta-3android-gs-raviole-5.10-android13android-gs-pantah-5.10-t-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1android-gs-pantah-5.10-android13-d1android-gs-bluejay-5.10-t-beta-4android-gs-bluejay-5.10-android13davidycchen
Align the ABS_MT_ORIENTATION range as touch_offload. Bug: 230270099 Test: Touch works fine. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I8eb584063b739ec23f0cce16c8d746fa1cb3fff2
2022-03-21touch/sec: update FW grip with offload filter_grip setting.android-t-beta-2_r0.4android-gs-raviole-5.10-t-beta-2Super Liu
Bug: 224880464 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I7ba2c54eba95292aed371faa26e918f334e478c6
2022-03-04touch: sec: support rotation reportingandroid-t-beta-1_r0.4android-gs-raviole-5.10-t-beta-1Steve Pfetsch
Enable sec touch driver to support rotation reported to it by touch_offload. Bug: 218744675 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I6efa9cee0139707a3d0e354ccc9d2da42d50d844
2021-12-09Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10android-t-preview-2_r0.4android-t-preview-1_r0.4android-gs-raviole-5.10-t-preview-2android-gs-raviole-5.10-t-preview-1Alex Hong
Bug: 199698959 Change-Id: I7d137dd8e51e2f376fd81f909efc5eea2fe034d0 Signed-off-by: Alex Hong <rurumihong@google.com>
2021-12-06Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2android-s-qpr3-beta-3_r0.5android-s-qpr3-beta-2_r0.5android-s-qpr3-beta-1_r0.6android-s-qpr3-beta-1_r0.5android-12.1.0_r0.40android-12.1.0_r0.35android-12.1.0_r0.28android-gs-raviole-5.10-s-qpr3-beta-3android-gs-raviole-5.10-s-qpr3-beta-2android-gs-raviole-5.10-android12-qpr3android-gs-bluejay-5.10-android12L-d2Roger Liao
Change-Id: I7473b512a760849117369d07ea22314552cae2b5 Signed-off-by: Roger Liao <rogerliao@google.com>
2021-11-25touch/sec: add more logs after touch suspend.android-s-v2-beta-3_r0.6android-12.1.0_r0.6android-12.1.0_r0.22android-12.1.0_r0.16android-gs-raviole-5.10-s-v2-beta-3android-gs-raviole-5.10-android12LSuper Liu
Example: dump: #0: 11.824(0.99) D(184, 621). dump: #0: 11.532(0.83) D(169, -560). dump: #0: 11.266(0.58) D(88, 365). dump: #0: 11.24(0.70) D(152, -546). dump: i/o 0, comm 0, reset 0, longest 10.5. dump: cnt 8, active 0, wet 0, palm 0. Doc: go/no_touch_debug_1p Test: lshal debug android.hardware.dumpstate@1.0::IDumpstateDevice/default touch Test: check logs after suspend and resume. Bug: 203298201 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Idb914d17b91dd818a7d6131a8b46aef9188dee62
2021-11-23touch/sec: enable FW grip for wake-up gesture.Super Liu
Enable grip supprestion on low power case during kernel suspend. Doc: go/touch_r3_grip Bug: 204525560 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Iec3e85403ae1d4d430a55de47c42300aa2b23af6
2021-11-12Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10Alex Hong
Bug: 199698959 Change-Id: I7bbc1b84ccb82e6518f88d3fefca1e936978da0b Signed-off-by: Alex Hong <rurumihong@google.com>
2021-11-11Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2Roger Liao
Change-Id: I3c63899ae782b09cab57490b16d856b5d6e294f8 Signed-off-by: Roger Liao <rogerliao@google.com>
2021-11-05touch/sec: abandon the cancel event for FoD.Super Liu
Since there is no T-IC reset after applying pa/1993460, the persistent finger from AOC to APC will keep sensing without losing signal. No additional cancel event requires for FoD case. Bug: 204553185 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ifb17d424e1f2ee80fc4147396126518e915dc95d
2021-10-15Merge android12-gs-pixel-5.10-sc-v2 into android13-gs-pixel-5.10Alex Hong
Bug: 199698959 Change-Id: I2f1af7c79c733acd35ec727297b23b7aa1c2180e Signed-off-by: Alex Hong <rurumihong@google.com>
2021-10-14Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2Roger Liao
Change-Id: I1d450de108cdb4fe3e72f9a946c19139d0cc6986 Signed-off-by: Roger Liao <rogerliao@google.com>
2021-10-13Merge android12-gs-pixel-5.10-sc-qpr1 into android12-gs-pixel-5.10-sc-qpr2Roger Liao
Change-Id: Id8464301cb885831af6557c168b6f873c5415b4f Signed-off-by: Roger Liao <rogerliao@google.com>
2021-09-30touch/sec: Configure grip prescreen mode with timeout.android-12.0.0_r0.42android-12.0.0_r0.36android-12.0.0_r0.26android-gs-raviole-5.10-android12-qpr1-dMark Chang
Bug: 194474414 Test: Verified with attributes and debug logs. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: I2f97c6b5b357f619549dc658a028ece386341f78
2021-09-03Kleaf: add touch sec kernel module for cloudripperYifan Hong
Bug: 192617687 Test: builds Change-Id: I97ae3a87a4bcc110c4a5e4d26ea30f0375301295
2021-08-26touch/sec: use mode switch for resume insted of T-IC reset.android-12.0.0_r0.9android-12.0.0_r0.8android-12.0.0_r0.17android-12.0.0_r0.16android-gs-raviole-5.10-android12-d1Super Liu
Bug: 196828808 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I08c0dddcca0657d20222347806569fa158aa9512
2021-07-21touch/sec: support FoD (Fingerprint on Display) event.Super Liu
FW add FoD event for better HBM (High Brightness Mode) control on kernel side. Bug: 192988780 Test: check the functionality for STTW/LPTW and FoD. Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ic978fdedccb4f838e1b27d8c256e0773444e7a4e
2021-07-21touch/sec: support FoD (Fingerprint on Display) coordinates.Super Liu
Bug: 192988780 Test: parse the coordinates correctly during probe. Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I5cabb8bf488c41155495e23bf3978bb1d06bf659
2021-07-21touch/sec: add bugreport bus reference.Super Liu
The new bus reference will separate SEC_TS_BUS_REF_BUGREPORT from SEC_TS_BUS_REF_FORCE_ACTIVE. This will help to resolve unusual termination during bugreport capture. Bug: 194157915 Test: bugreport works normally for touch. Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I8331f3b4f03871a2d27fbb3130db3e7a25684982
2021-07-20touch/sec: Revise heatmap retrieval for v4l2.Mark Chang
Bug: 192204268 Test: Verified with locally built ROM and debug logs. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: Ia2647baa3ca1ec65856f3efd0afda2b98d52a638
2021-07-05touch/sec: set rt priority for SPI transferSuper Liu
When system is busy, the kthread of SPI transfer might be preempted by other tasks due to its low priority. This could potentially delay or block the driver reading touch events. Therefore, set the priority of SPI transfer as IRQ bottom-half thread to mitigate the latency. Bug: 191712843 Test: Check the trace that only affect touch SPI bus. Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I28d3af633ed1c09116975a350295780cea267bc6
2021-07-01touch/sec: defer probe if FW initialization failedSuper Liu
Bug: 191951449 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ic4fcf2eda884ee44df5813f723af81bd3741b403
2021-06-30touch/sec: refine input timestamp for normal reportSuper Liu
Bug: 192412885 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ibf5060cc1e81b13e82eb64f832b9c9e8cc1bb51d
2021-06-17touch/sec: defer probe if boot ack timeoutSuper Liu
Bug: 190960560 Bug: 189374968 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ieb41c605dcb314547aa4dad81ae3490c4f5e9de8
2021-06-16touch: sec: add mutex to protect offload reportdavidycchen
When the release_all_fingers and offload_report run at the same time, it may cause the input report conflict before input sync. bug: 190460965 Test: flash boot.img and vendor_boot.img. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ib3a1f8970f15dc28a73dece18b5307cb5deba220
2021-06-16touch/sec: Single read command for customlib.Mark Chang
The added setup time for SPI transfer increased the overall time for multiple read commands. The single read approach retrieves a fixed size of data, and falls back to the existing method for multiple fingers. Bug: 189282681 Test: Verified with locally built ROM and FW 1.09. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: I45641e2b7bb7624c263e472054686dcdf006aeec
2021-06-15touch/sec: Reduce heatmap enable read commands.Mark Chang
Read and set heatmap enable state on resume, as the register is now only controlled by the touch driver. Bug: 189282681 Test: Verified with locally built ROM. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: Ibd469e2445fbd5029819e68385680e436e05d9c5
2021-06-09touch/sec: Add delay to read_from_customlib.Mark Chang
Add delay between writing offset and writing read request in sec_ts_read_from_customlib. This gives touch IC sufficient time to process writing offset command. Bug: 189901803 Test: Verified with locally built ROM. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: I627b7b12907f2b636bd39f151bee323d0b7cac9e
2021-05-31touch: sec: tbn function changesdavidycchen
As the touch bus negotiator function changes, modify the related functions. Bug: 186717670 Test: tbn works. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I37db62f0037262611ab05b65c53ad8633b208e3e
2021-05-24touch/sec_ts: Do not get properties of non-existent suppliesPat Tjin
Check that usb_psy is valid before getting its properties. Workqueue: sec_ts-event-queue sec_ts_charger_work [sec_touch] pstate: 80c00005 (Nzcv daif +PAN +UAO -TCO BTYPE=--) pc : power_supply_get_property+0x18/0xac lr : sec_ts_charger_work+0x6c/0x3b8 [sec_touch] sp : ffffffc0143a3ca0 x29: ffffffc0143a3cc0 x28: 0000000000000402 x27: ffffff8808fba420 x26: 00000000195ee905 x25: 0000000000020032 x24: ffffff88230a3759 x23: ffffffc009a41e60 x22: ffffff88230a1468 x21: 00000000000022f0 x20: 0000000000000000 x19: ffffff88230a0000 x18: ffffffc014385028 x17: 0000000000000003 x16: 000000000000000e x15: 0000000000000000 x14: 0000000000000018 x13: 0000000000000000 x12: 0000000000007ffb x11: 000000000000ffff x10: 00000000000022f1 x9 : 0000000000000001 x8 : 00000000000003d8 x7 : 0000000000000000 x6 : 0000000000000000 x5 : fffffffebf8f9150 x4 : ffffff893ae74bc0 x3 : 0000000000000008 x2 : ffffffc0143a3cf0 x1 : 0000000000000003 x0 : 0000000000000000 Call trace: power_supply_get_property+0x18/0xac sec_ts_charger_work+0x6c/0x3b8 [sec_touch] process_one_work+0x218/0x62c worker_thread+0x290/0x588 kthread+0x158/0x1b0 ret_from_fork+0x10/0x30 Bug: 189139045 Signed-off-by: Pat Tjin <pattjin@google.com> Change-Id: I62f30acb2aec5ef255cad9cd80d9851b6a1da07c
2021-05-21touch/sec: Update SPI delay for reading data in custom library.Mark Chang
Update the SPI delay time based on the latency data from the vendor and tuning result of FW 1.9. The base delay time is extended for 240Hz touch report rate, and dynamic delay time is used to accommodate longer latency required for processing large data packets. Bug: 188480651 Test: Verified with locally built ROM and FW 1.9. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: I9a52e86bd026260c0cc2e8d2eee35bac977f3b66
2021-05-19touch/sec: handle the specific cases to force WLC modeSuper Liu
Case#1: Keep WLC mode for USB plug-in during WLC online(device upright). Case#2: Keep WLC mode for USB plug-in during WLC online(device upside down). Bug: 188009141 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I49f0b3c03538edb5e170526e998c7fe4671fe558
2021-05-14touch/sec: add tsp_vsync statusSuper Liu
Bug: 187907262 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I5cbd44ee7e5f442fdf01edc8c1b8fad81e065c42
2021-05-04touch/sec: look at display effectively active stateAdrian Salido
This adds support to check if display is in self refresh mode. In that case touch should still be active. Bug: 180539030 Signed-off-by: Adrian Salido <salidoa@google.com> Change-Id: Iee1465ff014daf1e9d7edc7ee59e83cd38ed4272
2021-04-29touch/sec: Revise SPI delay for reading encoded heatmap.Mark Chang
Revise SPI delay to fixed time for reading data in custom library. Improvement has been made in FW 1.5, delay time required between write command and read data is now indenpendent to data size. Bug: 182246865 Test: Verified with locally built ROM and FW 1.5. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: Iedc4f85f2f0a85f7c27a74f2fa9cc7280efd8d9c
2021-04-20touch/sec: use hardware reset to re-initialize touchSuper Liu
There are some unstable SPI transfer during bus negotiation between AP and AOC. Therefore, directly use hardware reset by GPIO will force touch to default state without interference by SPI. Bug: 185557408 Test: check touch operation 10 times by power key suspend and resume. Test: echo set_touch_mode,7 > sec/tsp/cmd ; cat sec/tsp/cmd_result Test: echo set_touch_mode,7,1 > sec/tsp/cmd ; cat sec/tsp/cmd_result Test: echo set_touch_mode,7,2 > sec/tsp/cmd ; cat sec/tsp/cmd_result Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I587cdb572169be6aa45105a48d46bf05b375bec8
2021-04-14touch/sec: Dynamic SPI delay for reading data in custom library.Mark Chang
Touch IC needs data preparation time between the request command and the read command. As encoded heatmaps can vary largely between frames, a dynamic delay time for reading custom library further improves the latency when reading small encoded heatmaps. Bug: 182246865 Test: Verified encoded heatmap retrievals. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: I3f803fc9c69f7459172b9dc42d41f9eeaf4eba37
2021-04-06touch/sec: support encoded heatmap in custom library.Mark Chang
Bug: 182246865 Test: Verified encoded heatmap with locally built ROM. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: I97132cad3ea1486d0bfc4974284caa03f163355d
2021-04-03input: touchscreen: sec: Read touch_offload device_id from DT.Mark Chang
Bug: 174189879 Test: Verified device_id with locally built ROM. Signed-off-by: Mark Chang <changmark@google.com> Change-Id: Iec8037c750274121fb39c9c963cf46d8f6b80b95
2021-03-31touch/sec: use corresponding debug flag for logsSuper Liu
Refine the deubg logs. Bug: 174189620 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I8d30494b388890ddde82e3da14dcb4a627ed6e6d
2021-03-16touch/sec: support major and minor conversionSuper Liu
Conver major/minot from mm to pixel unit. Bug: 181907108 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I0da2dab15ccac18ee6cc621c43fd554a140122a2
2021-03-12touch/sec: add more information into status sysfsSuper Liu
cat /sys/devices/virtual/sec/tsp/status Boot status: 0x20 Touch status: 0x0, 0x2, 0x1, 0x2 Functions: 0x61, 0x0 Charger mode: 0x2 Wet mode: 0 Fingers#: 0 Report rate: 120 Bug: 178769113 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I40d77b0b77252d996ce464688582768203bc4d02
2021-03-04touch/sec: update touch_offload include path and MakefileTai Kuo
Bug: 174189640 Test: Build pass. Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Icdc1df2444a66091d32f299c12a9c6367f0de9ef
2021-03-03touch/sec: add sysfs to support heatmap dumpSuper Liu
Bug: 174189640 Bug: 174189847 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: If3fa70ba0bcf575329e7e22ddd8199fc0dad3b1c