summaryrefslogtreecommitdiff
path: root/goog_touch_interface.h
AgeCommit message (Collapse)Author
2022-12-22gti: Support procfs to get heatmap.Super Liu
Introduce proc to resolve the sysfs PAGE_SIZE limitation. Bug: 262796907 Change-Id: I2c2c12f8360fc46895416efd7d94d5e1e7570546 Signed-off-by: Super Liu <supercjliu@google.com>
2022-12-06touch/gti: Add touch index in GTI logMason Wang
Bug: 261127820 Test: Verify pass by checking the log information including gti.0/gti.1 Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I63ef469c30b28a7915f8a46d25827c85933bd83a
2022-12-06touch: gti: Added wakelock_nosync supportandroid-t-qpr2-beta-2_r0.5android-t-qpr2-beta-2_r0.3Ravi Jain
1. Merged resume and suspend work to update_state_work. 2. Modified wakelock logic to not require use of cancel_work_sync. 3. Added error_handling to wakelock calls. 4. Replaced use of completion bit to use of flush_workqueue in wakelock. Test: Tested on L10 and T6 for resume/suspend. Bug: 230827813 Change-Id: Ife27f2ea03aa578a40c14496340b84ff5533ab42 Signed-off-by: Ravi Jain <raviajain@google.com>
2022-12-06touch: gti: Fix spi write error.Ravi Jain
Fix errors caused by offload_report when device is going to suspend. Test: Flashed on L10 to check suspend/resume operations Bug: 260946570 Change-Id: I9460c7f4a8656abfd90aea0b0db015a236a2cd06 Signed-off-by: Ravi Jain <raviajain@google.com>
2022-12-06gti: replace manual_sensing_lock by input_process_lockdavidycchen
To protect the interrupt and userspace commands read the heatmap simultaneously. Bug: 260785497 Test: read heatmap by adb commands. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I7b54997d7d3edc7c9ea73a37d4045c5b3803d1a8 (cherry picked from commit 8445f5d91ab1f7b066057d39b46918b13493c2c4)
2022-11-30touch/gti: Only handle display state if changedandroid-t-qpr2-beta-2_r0.4Mason Wang
The display driver has new power control design for refresh rate, clock and bus. So panel_bridge_enable/panel_bridge_disable will be called frequently. But the touch driver only needs to handle display state if changed. Bug: 253330479 Test: Build pass. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: Ide46b623c51240fed0755b123c7ff9026b15e040
2022-11-24touch/gti: release all fingers when the device suspendsandroid-t-qpr2-beta-1_r0.6android-gs-pantah-5.10-t-qpr2-beta-1davidycchen
Release all finger when the device suspends by GTI and also clear the slots information. Bug: 260020612 Test: suspend/resume the device. Change-Id: I5b70b34d92028713813c45443ae3d2b133cb4f39 Signed-off-by: davidycchen <davidycchen@google.com>
2022-11-18touch: Add fw_grip and fw_palm sysfs nodeRavi Jain
Modify grip_enabled and palm_enabled respectively. Test: Use adb commands to check state change of fw_grip and fw_palm while starting and stopping twoshay. Bug: 245052175 Bug: 245053548 Signed-off-by: Ravi Jain <raviajain@google.com> Change-Id: I0e2bd60e6e8e40fd8594f958648b8617e5ccb48f
2022-11-02touch/gti: Correct the typo of firmware status enumerationMason Wang
Using GTI_FW_STATUS_XXX instead of GTI_FW_STATUE_XXX Bug: 256987566 Test: Build pass Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I689d09f7ba66323f7f95d8445c8922eaf88cb3f5
2022-10-21touch/gti: Transport touch_offload driver/stylus contextSteve Pfetsch
In order to support touch_offload's exposure of context information from touch drivers, the google_touch_interface requires new APIs through which to plumb the data. "GTI_CMD_GET_CONTEXT_DRIVER" and "GTI_CMD_GET_CONTEXT_STYLUS" enable drivers to populate some or all of the respective context information. Bug: 203628075 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I9dce8259427ff44ab3b9878f21b8e5eb0e4659ad
2022-10-18touch/gti: adjust the output format width by size.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ic973d6f3b3bf5d4c25c9dc35ff25e178b913d9b0
2022-09-29touch/gti: fix data racingWendly Li
Bug: 249183376 Test: cat /sys/devices/virtual/goog_touch_interface/gti.0/ms_base Change-Id: I92c8277465290288c5b1e767491ed8bf2c57cb57 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-09-21touch/gti: Support pm qos.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-qpr1Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I47604343ce0abe90b107ed6b77307d62e6216e50
2022-09-12touch/gti: support the capability check for SPI dma enabled.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I73f4496beb1d09f1aac7f64eadec41c0aa83b683
2022-09-02touch/gti: support interrupt debug logs.Super Liu
dump-int: #89(1.686): C#12(0x1). dump-int: #90(1.679): C#12(0x1). dump-int: #91(1.669): C#12(0x1). dump-int: #92(1.663): C#13(0x0). dump: #0: 34.39(0.648) D(-15, -12) I(32,70). dump: #0: 15.853(0.155) D(0, 0) I(71, 77). dump: #1: 15.838(0.139) D(0, 0) I(73, 77). dump: #0: 1.799(0.115) D(-1215, -171) I(78, 92). Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I25ccaebc2ffb4270f0fac9b83ab818e3ed9259e8
2022-09-01touch/gti: fix the race condition between drm and pmWendly Li
Avoid calling goog_pm functions before goog_pm_probe is done. Bug: 244257961 Test: pass power on/off srtess test Change-Id: I87440b9b98674f6d69459b8de9bdd7bb3a779de2 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-08-29touch/gti: refine the naming of features enabled.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I9f578bf6650798de1fd093c425630ddb65fd8afc
2022-08-29touch/gti: refine the force active.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ieff9890190d05fb571cc63e4047703969ee131b7
2022-08-15touch/gti: Support mutual and self sensing data for sysfsWendly Li
Bug: 214118904 Test: Check dumpstate works properly Change-Id: I17074fcf95e43173b79bc8d767904cf06801d8a3 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-20touch/gti: add goog_notify_fw_status_changedWendly Li
Bug: 201610482 Change-Id: I8c24a5cdaf2324204578319e78823d87464321fa Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-19touch/gti: enable heatamp when updating fw settings.Wendly Li
Bug: 201610482 Change-Id: I0a8613f457626991aad040ce1c7696eb7e91ee2e Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-19touch/gti: fix offload caps for orientationWendly Li
Bug: 201610482 Change-Id: I7c279a205176033307bacaee6a5466a5a5ebba50 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-15touch/gti: add the ability to report orientation.Wendly Li
Bug: 201610482 Change-Id: Ifa3c34b9eca7a6b78b583990c8ef83d698a55bb1 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-07-04touch/gti: add gti pm and wakelock.Wendly Li
Bug: 201610482 Change-Id: Ic8715c0f08698d56b7af772eb6459dba41495716 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-06-23touch/common: add sysfs for screen protector mode.Wendly Li
Bug: 201610482 Change-Id: I562b98f0d5a4bd5a3e818e4bf1e2d8f6d1c2137a Signed-off-by: Wendly Li <wendlyli@google.com>
2022-06-20GTI: support new vendor commands.Super Liu
New sysfs commands: /sys/devices/virtual/goog_touch_interface/gti.0/ fw_ver irq_enabled ping reset scan_mode self_test sensing_enabled Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ic6c07813a9585dbef03baa4d04d9d4777db5615e
2022-06-14touch/common: support default palm/grip settingWendly Li
Bug: 201610482 Change-Id: I1d7b38bdd5d7dea904207b359e2230e67a4266f6 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-06-07touch/common: add sysfs node for palm and grip.Wendly Li
Bug: 201610482 Change-Id: Ic3161d33c827c907f4d5d1071574fc5e08913700 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-06-07touch/common: force update the fw settings when device is resumed.Wendly Li
Bug: 201610482 Change-Id: Idf5b36ae5b43acb9b9526be3bdec03f014a63446 Signed-off-by: Wendly Li <wendlyli@google.com>
2022-06-02touch/common: refine the condition to do the input process.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I0a4d251a43137f157f5cc0dd695e57d47e3c443f
2022-05-27touch/common: GTI supports coords debug logs.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I9f180a9d6663ce774e6351780e49d569d3fcd85e
2022-05-19touch/common: GTI support vendor device pm notification.android-t-beta-4_r0.6android-t-beta-4_r0.5android-t-beta-4_r0.4android-t-beta-3.3_r0.4android-t-beta-3.2_r0.4android-13.0.0_r0.5android-13.0.0_r0.44android-13.0.0_r0.43android-13.0.0_r0.4android-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-bluejay-5.10-t-beta-4android-gs-bluejay-5.10-android13Super Liu
Bug: 201610482 Bug: 232030989 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I5647ece259d0df91405f101f5f01be9135133e53
2022-05-13touch/common: refine the vendor callback API.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I64b547a678dc39f2ec15a171e9997b65f1877c65
2022-05-03touch/common: GTI support tbn registration.android-t-beta-3_r0.4Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I88f5c86ffc5bf058d89dfc1563acb7542b817318
2022-04-12touch/common: GTI support panel bridge registration.Super Liu
Bug: 219658467 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I68e3c70bad9ab52c091060f1a15af2bb420d4454
2022-04-08touch/common: GTI support the timging order check for input report.Super Liu
Bug: 219658467 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I10722ac1f6ab9d747418f5135623742da946f6c2
2022-04-08touch/common: create GTI class and device.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I7c0ee28e1d3d9d9bdd970230a737bcc17bb927b4
2022-04-08touch/common: GTI support continuous reporting.Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ic25eb25155d381835be4d26e6efc54d6509a59f3
2022-04-01touch/common: control grip and palm by vendor callback.android-t-beta-2_r0.4android-gs-raviole-5.10-t-beta-2Super Liu
Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I123e69947c4cc002ade1e597f4dca1ca02d6995a
2022-03-29touch/common: create google touch interface.Super Liu
Doc: go/gti_1p Bug: 201610482 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I3a68d91c69c94095d0da9d3691fef79146e243f4