Commit Graph
757 Commits
Author SHA1 Message Date
zhuwg1 109c7b7170 Fix cyttsp5 driver crash
When parade touch IC FW-APP damaged,get build_id and config_id will
result in kernel panic.

[ 24.149702][ T1704] pc : cyttsp5_ts_mmi_methods_get_build_id+0x54/0x110 [parade_tma5xx_mmi_core]
[ 24.149730][ T1704] lr : cyttsp5_ts_mmi_methods_get_build_id+0xa4/0x110 [parade_tma5xx_mmi_core]

Change-Id: Ibeece2c06bdbe10c0b6b0a7dd1a4317162766fdb
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2186810
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-02-09 20:54:14 -06:00
zhuwg1 501e4a44f1 Use touch mmi class method to do FW upgrade
TP:
Use touch mmi class method and init.mmi.touch.sh to do FW upgrade.

Change-Id: I300c90b6b5a8eda86cc2c52d9595e9a3a13698cf
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2184720
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-02-08 06:05:45 -06:00
zhuwg1 3e3487b5e2 Support touchscreen class in the parade drvier code.
TP:
Add initial support for touchscreen class in the parade drvier code.

Change-Id: I6c994978ba6ff41abbb8b572825d2a85dd3a8e73
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2182089
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-02-08 06:05:36 -06:00
litong20 78d8b6b65c Solve the problem of sending command conflicts
TP:
When sending multiple commands at the same time, the ack signal of
unexpected commands may be read, resulting in command sending errors.

Change-Id: I6f222a20725f5adc1509a01bd29f972c3171e56d
Reviewed-on: https://gerrit.mot.com/2178632
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-01-26 05:17:02 -06:00
wingte48 e46c52f6ad rhodec: fix compile error for ILI7807S
Modify:
-solve compilation problems for txd ili7807s.

Change-Id: I3a63403d21260fc006ff9e7e2a5bab78dc47c7e4
Reviewed-on: https://gerrit.mot.com/2177057
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-23 19:42:34 -06:00
wingte49 87f429da74 rhodec:Bringup touch TXD ILI7807S
Modify:
- Add the configuration for txd ili7807s.
- Change the ic name to ilitek_txd for CQA test.

Change-Id: I61ebc4ea91dbb0e016589ff3938a31f727514144
Reviewed-on: https://gerrit.mot.com/2176648
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-21 20:28:14 -06:00
zhuwg1 61d1a82e00 Use of_ API to parse gpio pin number
TP:
Use of_ API to parse gpio pin number.

Change-Id: I82fb037012135c430c0de5610638f99bfa58b844
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2176491
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-01-21 06:58:20 -06:00
zhuwg1 356930680f Fix parade tma5xx touch driver compiling error
TP:
Fix parade tma5xx touch driver compiling error.

Change-Id: I3ec84668c807165b3d68eafeefe7a696c1044cd1
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2176441
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-01-21 06:58:12 -06:00
zhuwg1 16d4bd3fea Add initial parade touch driver code
TP:
Add initial parade touch driver code.

Change-Id: I0d6e738825b030313b92a32e60b4849f8fdb4333
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2176412
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-01-21 06:58:01 -06:00
wangyq13 d08495df99 input: goodix_v1510: fix irq wake disable unbalanced issue
- make irq wake enable and disable match, fix unbalanced issue
- port https://gerrit.mot.com/#/c/2158726/, increase i2c try times
- port goodix latest 1.5.2 version, sync input event when suspend.

Change-Id: I6e5639356db18e37698ff0b6e8101e5b4a724143
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2169342
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-01-14 01:02:03 -06:00
litong20 d803d067a0 goodix: Open the touch esd check function
TP:
1. Open the esd check function,when the touch IC dies, it can be
restored to normal by hardware reset.
2. Increase the delay between the stylus command and the clock to
prevent the IC from hanging up.

Change-Id: I20617d63c0d53d60d1100b9eb26182096c657b16
Reviewed-on: https://gerrit.mot.com/2164520
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-01-07 00:34:15 -06:00
litong20 8487ee8e40 lock mode switching operations for thread synchronization.
TP:
Lock mode switching operations for thread synchronization
to prevent conflicts.

Change-Id: Ia7158b29bb697187e0b326aeb8ea5adbf582dc12
Reviewed-on: https://gerrit.mot.com/2160991
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-01-05 03:48:59 -06:00
hujing3 60c5552188 focaltech_v3_mmi:add touchscreen mmi to improve FW logic
focaltech_v3_mmi:
add touchscreen mmi to improve FW download process

Change-Id: I12b76c2644403d14ead207687c028d3ab2beb321
Reviewed-on: https://gerrit.mot.com/2159432
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-03 20:03:11 -06:00
litong20 4eceb69f09 goodix: Modify the report rate command.
00 00 05 C1 00 C6 00//exit period report
00 00 05 C1 02 C8 00//480Hz
00 00 05 C1 03 C9 00//576Hz

Change-Id: I07b03820a05636488935f0955ca3a4c7298d5371
Reviewed-on: https://gerrit.mot.com/2159224
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-12-31 02:01:26 -06:00
litong20 ce42066416 Increase the number of I2C retries.
TP:
When the screen is off, the TP driver starts to read gesture events
after receiving the interrupt.But I2C bus is still in the suspended
state, so gesture events cannot be read out.

geni_i2c_xfer System suspended
[GTP-INF][goodix_i2c_read:82] I2c read retry[1]:0x10308
geni_i2c_xfer System suspended
[GTP-INF][goodix_i2c_read:82] I2c read retry[2]:0x10308
[GTP-ERR][goodix_i2c_read:87] I2c read failed,dev:5d,reg:10308,size:26
[GTP-ERR][gsx_gesture_ist:236] failed get gesture data





Change-Id: If3ebbc4b65829def142835c51816b70e0a474865
Reviewed-on: https://gerrit.mot.com/2158726
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-30 05:44:22 -06:00
dengwei1 ccab9caec6 dubai: input touch add wait pm
input
add wait

Change-Id: I2d3fa46630cd5cd54c3f35872f1fd012e95a5e9a
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2157954
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-30 03:08:00 -06:00
bchhq23 de31178d74 rhodep:open charger mode;
kernel/tp:
	open charger mode;
	wait probe is ok that send cmd;

Change-Id: I186884262858227efdfcd5a6588b70e4414b1556
Signed-off-by: bchhq23 <bchhq23@motorola.com>
Reviewed-on: https://gerrit.mot.com/2153152
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-12-28 23:07:04 -06:00
Yan Zhang 565cf7a3ab Update Goodix TP FOD event implementation
1. Update FOD gesture trigger in screen off mode.
2. Add FOD event support in screen on mode

Change-Id: I7ecbfdb4aff8eaf34e88247d91d08279edd018a6
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2152070
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-23 03:06:05 -06:00
dengwei1 868e8bde39 dubai: input touch add gki support
add
gki

Change-Id: I84ee20f77b4665c20e0f09b3180be5ecffb8b90f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2152515
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-22 20:01:02 -06:00
litong20 2d3b0cbc54 goodix: Solve cpu_latency_qos_add_request called warning
TP:
WARNING cpu_latency_qos_add_request called for already added request

Change-Id: If99edff041cfeb57c45d9f6e2119ad24bf35f3ab
Reviewed-on: https://gerrit.mot.com/2147984
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-22 00:45:32 -06:00
wangyq13 df08fa99ef input: goodix_v1510: add charging and gtp-tools node
- Add charging detection function
- Add gtp-tools node for cqa test
- Remove software esd check for touch, touch firmware itself to recover

Change-Id: Id3b398f302370baddf56b5973813d5a09591460e
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2150842
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-21 23:51:35 -06:00
litong20 c042d862af Do not re-enable the stylus when the stylus mode is switched
TP:
  When exiting the stylus mode, the IC will send an abnormal reset
interrupt. At this time, the stylus will be enabled again,
but because the stylus clock is closed, the touch will not work.

Change-Id: Id1b393de2b2bee5b06e9d4f5b74dfd301be4547d
Reviewed-on: https://gerrit.mot.com/2150837
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-21 19:46:47 -06:00
litong20 0c96a30306 Disable irq before entering gesture mode and IC resetting.
TP:
Disable interrupt before entering gesture mode and IC resetting.


Change-Id: I056458b7b405c1ba46f27eda9754c9d64eeeaef0
Reviewed-on: https://gerrit.mot.com/2149576
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-20 19:45:37 -06:00
wangyq13 28a097c665 input: goodix_v1510: enable single tap function
goodix_v1510:
Enable single tap function.

Change-Id: I783f8ca04efd73354f0b10c2e4e13add6721cc96
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2146428
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-20 03:17:46 -06:00
litong20 4710e99d3f Support resend stylus cmd after abnormal resetting.
TP:
Support resend stylus command after abnormal resetting.

Change-Id: I9cd2885988f92ca8d50b96f2b5c7569439e277b2
Reviewed-on: https://gerrit.mot.com/2147994
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-20 02:36:43 -06:00
litong20 95429c472f Record and restore the value of the mode
TP:
Record the value of the received mode from system and the value
successfully set to the touch IC.

Change-Id: Ie10f25be6d0d9fe9d21cf385a626496cc9aedfa5
Reviewed-on: https://gerrit.mot.com/2144916
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-20 02:36:31 -06:00
hujing3 cb25448b24 focaltech_v3_mmi: rename .i file to fix potential build error
focaltech_v3_mmi:
rename .i file to fix potential user build error

Change-Id: Ic50f79e7561454f8b9ec0e3511478a3447afbbdf
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2144655
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-14 20:40:11 -06:00
hujing3 c91d07d34c focaltech_v3_mmi: enable firmware download
focaltech_v3_mmi:
enable firmware download

Change-Id: I579fdf98223ea1c11e437367a0d59505441a0111
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2144086
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-14 20:40:04 -06:00
hujing3 117ec43d7a focaltech_v3_mmi: add sys touch node & info
focaltech_v3_mmi:
- add sys touchscreen node
- add panel_supplier, ic_ver, buildid, etc.

Change-Id: Iea8b26dcdff548bbcea72e383cf9a27ad4e695ff
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2144085
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-14 20:39:55 -06:00
hujing3 5e9d5773e9 module/input:hawao: add focaltech_v3_mmi for i2c flash
hawao: touch driver bringup support
add focaltech_v3_mmi for i2c flash tp

Change-Id: I727109a2ed4d433448cf56097d20ace1d4bc1658
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2142878
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-14 20:39:40 -06:00
dengwei1 63106fe288 dubai: input touch update fw 21120803
update
fw

Change-Id: Ifaa66f935f469c024f023a35ec4df80ddf75a7a8
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2143664
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-14 00:58:47 -06:00
litong20 b75bcbf8cf goodix: support film sensitivity function.
TP:
Support film sensitivity function in RoguePRC project.

Change-Id: I830adb55e9b9b93aef6dc90d757ef9eaf206a2cb
Reviewed-on: https://gerrit.mot.com/2134201
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-10 09:00:15 -06:00
litong20 dae8b800e2 Support report rate switch in RoguePRC
1. If the interpolation mode is disabled, the report rate is the
default 240Hz(Hiphic) or 360Hz(Hiphi)
2. If the interpolation is enabled and the refresh
rate is 144Hz, the reporting rate is 576Hz(Hiphic) 720Hz(Hiphi)
3. At other refresh rate, if the interpolation mode is enabled, the
report rate is 480Hz(Hiphic) 720Hz(Hiphi).

Change-Id: Ibcd6ba61457e5e5f6fd32a6583f5bdcada531fc5
Reviewed-on: https://gerrit.mot.com/2134669
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-10 08:59:57 -06:00
dengwei1 099f74a3fd dubai: input touch support fod
support
fod

Change-Id: Idcf036159065de4c67388ce0df422ca84e359845
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2139348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-09 02:15:54 -06:00
litong20 6a05847226 IC needs to confirm the device within 50ms after power-on
Goodix IC requires device confirm within 50ms after power on.
If this time exceeds 50ms, the i2c firmware will colse the
spi channel, and the spi firmware will close the i2c channel.

Change-Id: I178cea55e280ffb53fca444cdd8ed32905a928c5
Reviewed-on: https://gerrit.mot.com/2133988
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-12-02 23:37:02 -06:00
litong20 154ec7b967 No need to send the suspend command when power off.
When entering the deepsleep state, touch IC will power off,
so there is no need to send the suspend command.

Change-Id: I6b6a3b29eb3b1acee6c72db2b97fdb90710f25bc
Reviewed-on: https://gerrit.mot.com/2134059
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-12-02 23:36:49 -06:00
wangyq13 9d79305032 goodix_v1510_mmi: check if panel is available
- Check if panel is available, if not, don't probe, save boot time
- Set avdd to 3v, same as other touch driver.

Change-Id: I34711276c2e5efcf1acc9421db2e347d95f2b41b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2131131
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-01 01:28:36 -06:00
wangyq13 cac6221ab1 focaltech_v2_mmi: check if panel is available
focaltech_v2_mmi:
Check if panel is available, if not, don't probe, save boot time
and don't disturb other touch driver operation.

Change-Id: Ib4db6f77fc458970dcc42fd7460ee3a800e3ff47
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2131110
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-01 01:28:28 -06:00
litong20 c7ab15c6bf Add pm_qos control to reduce the interrupt responce time
request pm_qos during the interrupt processing to prevent
the CPU from going to sleep state.

Change-Id: I95728329c7df7a4376415b9d8ec20d6525fe45c8
Reviewed-on: https://gerrit.mot.com/2124280
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-11-24 06:21:18 -06:00
litong c1f6eacfa9 Revert "(CR): Add pm_qos control to reduce the interrupt responce time"
This reverts commit 1da6346249088c0e5d42c6147b2c5bcd8ec9e395.

CRs-fixed: (CR)
Change-Id: I1fd4e6f2c5144433728aa021391aab385d1db4bf
Reviewed-on: https://gerrit.mot.com/2124282
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-22 21:27:20 -06:00
litong20 bad4b4d393 Add calibration noise error handler
TP:
 If the noise detection fails after calibration, the touch IC will
 report the "F3 E0" event, and when the event is received,
 the touch driver will send the calibration command again.

Change-Id: Ifd2f4bd287fbdc7861a127d2ffd481f635d963c7
Reviewed-on: https://gerrit.mot.com/2123149
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-22 20:02:58 -06:00
litong20 cf6c77763e Add pm_qos control to reduce the interrupt responce time
request pm_qos during the interrupt processing to prevent
the CPU from going to sleep state.

Change-Id: I78a67ef1aa9a363e9d7f9546b8d4c20a81ac04c4
Reviewed-on: https://gerrit.mot.com/2107618
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-22 06:45:24 -06:00
wengjun1 329c4bc70b dlkm: Add check if panel is available for gt9916s
- Add if panel is available logic for gt9916s with
using spi bus.

Change-Id: I0489672829c2e411f58a1799e35cf05024f7a75b
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2108636
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-17 21:10:52 -06:00
litong20 ce40bdb1a9 support pmk8350 gpio3 as stylus clk.
TP:
  Support Pmk8350 gpio3 as the stylus clock for Rogue PVT, and the
output frequency is 19.2Mhz.

Change-Id: I5dae054b6170b921b7afee1853b7de7995531705
Reviewed-on: https://gerrit.mot.com/2111742
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-11-17 00:39:18 -06:00
litong20 9fcd292e9a support goodix edge suppression function.
TP:
Command: 00 00 06 17 data0 data1 ChecksumL CheckSumH
data0 rotation direction:
0x00 Default  
0x40 Left rotation 90
0x80 Right rotation 90

data1 edge suppression area
0x00 Default  
0x40 Level1 R-200 quadrant Pixel
0x80 Level2 R-250 quadrant Pixel

Change-Id: I0cafadf1f5238198368f7f9f7c51cbcd41f9af1a
Reviewed-on: https://gerrit.mot.com/2116171
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-15 04:04:10 -06:00
litong20 e2b20f5f02 goodix: Support interpolation game mode function.
Command:
Enable interpolation:  00 00 05 C2 01 C8 00
Disable interpolation: 00 00 05 C2 00 C7 00

Change-Id: I34eeac1a1305d6727c3a82ad6fecb023674da086
Reviewed-on: https://gerrit.mot.com/2115930
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-15 04:02:34 -06:00
litong20 553a486ed7 stmicro: Add the judgment of the sensitivity mode value.
TP:
Since the sensitivity node is a general node in the framework,
the judgment of the mode value is increased.

Change-Id: I82d2727e8ebd60c96c13edf2dd923630dc828290
Reviewed-on: https://gerrit.mot.com/2116173
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-15 04:02:24 -06:00
litong20 e028939dc0 Support leather mode setting.
1. Add the function of leather mode in the
univeral interface sensitivity.
2. The mode setting instructions are as follows:
mode = 0x00/0x01 Exit/Enter film sensitivity mode.
mode = 0x10/0x11 Exit/Enter leahter sensitivity mode

Change-Id: I35d49aaf225e8b941a4f2552a2ccd9d33a34dd92
Reviewed-on: https://gerrit.mot.com/2113437
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-12 02:23:32 -06:00
litong20 1d0fe48a70 Close the stylus clock when system suspend.
1. Close the stylus clock when system suspend and the stylus
mode exits.
2. Add 16ms delay between each command.

Change-Id: I6dff47410315272167d47a733b1058736f72c737
Reviewed-on: https://gerrit.mot.com/2108295
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-05 01:55:50 -05:00
dengwei1 7699e56cd9 pstar: input touch add delay for mode
input touch
add delay

Change-Id: I1e4624a989488d5c1d009875472dd23179d929b5
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2106659
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-11-03 09:30:33 -05:00