Commit graph

2,965 commits

Author SHA1 Message Date
liuzhen
497fec0650 Open USB log in factory version for bangkk[3/3]
In order to track the usb abnormal disconnect problem,
open some log about usb in factory version recommended
by Qualcomm for bangkk.

Change-Id: If317121e650bd48fd09e50825ecd3fa83cc77c02
Reviewed-on: https://gerrit.mot.com/2654715
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-26 04:04:15 -05:00
zhuangnk1
3ba68f548f Add st54spi_gpio driver for ST54L eSE
Add st54spi_gpio driver for ST54L eSE
It is used for QC esepowermanager to reset eSE

Change-Id: Ie4e88f6ea56c3d60f90e88e750be6b25c0500508
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2654151
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-06-24 21:55:26 -05:00
Yan Zhang
09039778a9 Support game idle mode for focal touch
Porting from
1. (CR) aion: dlkm: Support game idle scan rate feature 
   for ft3681,https://gerrit.mot.com/2538693
- Support for game idle scan rate feature, keep 1500hz scanning
frequency for 10 seconds when entering idle in game mode.

2.(CR) aion: Change edge suppression cmd in normal mode
- To prevent conflicts with edge suppression commands in game mode,
match firmware to change edge suppression commands in normal mode.


Change-Id: I6303d367752d9bf7709e1b42df4fa2ce6c5fd33b
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2649117
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-21 02:25:38 -05:00
ontim52
d905a5eaca fogor: kernel: 2nd tongxingda ili9883c TP bringup
1. add 2nd ili9883c TP code
2. add TP build.

Change-Id: Iee5821d2b5f92be73c5184d5ac386afd559673e7
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2647002
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-20 05:10:31 -05:00
zhaoxp3
672359fba1 AndroidKernelModule.mk: add bengal in Build_external_kernelmodule.mk
add Build_external_kernelmodule.mk for new sm6225 base.

Change-Id: I1b1b7a82ac9040e0c6d0f66af34bf4d09ee0ec97
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2647687
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-20 01:10:06 -05:00
Yan Zhang
4453c5b727 : Fix goodix touch GKI build break
Fix goodix touch GKI build break because of undeclared coredata is 
referenced by new added clip touch feature.


Change-Id: Ibc68d98965c26e1146a57bf44f90cc219f5b9173
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2649119
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-20 01:01:07 -05:00
Konstantin Makariev
29f4a4a3f6 goodix_brl_mmi: clip area support
Added support for clip area feature. This alows suppressing touch
events reported outside or from within the clip area.

Change-Id: I2fccf524df373a5a3848d884f2ecf33d4e667f5a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2642708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-06-16 13:40:22 -05:00
Konstantin Makariev
4580159511 touchscreen_mmi: clip area support
This introduces a new class method to suppress touch events sourced
outside or within specified clip area. To enable suppressing touch
events reported outside specified clip area, add the following DT
property:

mmi,clip-area = <xUL yUL xBR yBR>;

Suppressing touch events from within requires DT property:

mmi,clip-inversion;

Class driver's method will send forced lift event when an active
touch moves outside/within clip area and indicate this to the vendor
driver by setting type to TS_COORDINATE_ACTION_FORCE_LIFT in
touch_event_data structure.

Change-Id: I327af4441e179e381be97cb8083698d76882caa8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2641660
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-06-16 13:40:10 -05:00
chenshitao
c7aa054681 driver: fogor: tp tm-icnl9916c tp bringup<2>
tp function:
    tm-icnl9916c bringup in driver

Change-Id: I4d965e325f0c94df8a3c3969cd8cf8ea72a2597d
Signed-off-by: chenshitao <ontim51@motorola.com>
Reviewed-on: https://gerrit.mot.com/2645706
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-16 04:41:33 -05:00
Alison Venancio
b27503a054 Berlin Row - Avoid fts_tp continuous wakeups
Keep stay awake to avoid device suspend and
additional check senser_sleep for pm suspend.

Porting of https://android.googlesource.com/kernel/msm-modules/fts_touch/+/b80139cb3eb11e1fccaafeb0bf5bfb823d5ca027%5E%21/#F0

Change-Id: Ifc508aa4481f851ac3f9d1b1a5040d0d5e69ac78
Reviewed-on: https://gerrit.mot.com/2642844
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-15 07:54:36 -05:00
Lei Chen
d8037661fe mmi_charger:init thermal parameter at high temp
PD charger hard reset as the thermal request current is 0.
Init the thermal parameter at the highest thermal level.
Pick from https://gerrit.mot.com/#/c/2006952/

Change-Id: If07718fa3d7f8e51ce8df7ad05ff740519c4aab3
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2643326
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2023-06-14 05:21:42 -05:00
weimh1@motorola.com
71c50ad441 fogor/sensor: adjust sx937x driver format
1.adjust sx937x driver format
  2.motorola/kernel/modules/drivers/misc/sx937x/sx937x_sar.c

Change-Id: I2733b5c18da1bd3c35853b5112f95d870b44b8ca
Signed-off-by: weimh1@motorola.com <weimh1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2643279
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-14 03:33:56 -05:00
Rafael Ortolan
e5de27e68e nova_0flash_mmi: conditionally enable spi CS delay feature
Following changes are made to fix Devon build issue:

- conditionally enable spi CS Hold Time feature based on product flag
- include proper spi header file depending on kernel version

For details please refer to: https://gerrit.mot.com/2630767

Change-Id: I7d1e6e55ccde912442f11c71f1f92e5302318315
Reviewed-on: https://gerrit.mot.com/2637062
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bruno Oliveira <brunosoe@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-13 07:32:06 -05:00
xuwt2
687d73d12d sc760x: Enter Low power mode when system suspend
Entering Low power mode when system suspend
Exiting Low power mode when system resume

Change-Id: If809ab448e6b294c1dcd0b6186aaaeeeadb4aca7
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2642143
Reviewed-by: litong <litong20@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-06-13 04:20:14 -05:00
Bruno Sampaio Leite
53c07ddb44 Update battery status before reading
Capacity is not getting updated because of wrong status
being checked by update capacity. Force updating battery
status before reading it to decide about updating capacity.

Change-Id: I1d8f68d7fb855aa878284b34303d04ccf1c5c2ab
signed-off-by: brunosmp@motorola.com
Reviewed-on: https://gerrit.mot.com/2633986
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-12 09:27:38 -05:00
Lei Chen
78a2c2f396 smbcharger:support power_watt report
SystemUI need power_watt uevent to show the charging
round icon. Support power supply prop power_watt report.

Change-Id: I88eab49f3e56ba56b12432bc284466456046670b
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2640041
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-12 00:34:27 -05:00
Bruno Sampaio Leite
0e71c391e5 Add capacity_level to discrete charger driver
Miami is having a Kernel Panic when battery reaches 0%
while device is charging. Android system uses battery
capacity_level prop to control shutdown when device is
charging  but battery reaches a critical level. Add
this prop to discrete charger driver.

Change-Id: I6a278ba0157a22a54ecedf0cf26f73361e711354
signed-off-by: brunosmp@motorola.com
Reviewed-on: https://gerrit.mot.com/2625350
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Bruno Oliveira <brunosoe@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-09 08:30:17 -05:00
Lei Chen
ed5a5e73c0 sbmcharger:optimize the pdo select
bangkk select the max current is beyond the sourcecap pdo.
Optimize the pdo max current when the pd power is lower than
18W.

Change-Id: Iaded43336951bcfbd9620d45a89c3517ccd058a9
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2638964
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Submit-Approved: Jira Key
2023-06-09 01:02:03 -05:00
Wenge Zhu
c0990aa3fe Set touch reset and interrupt pin
Set touch reset and interrupt pin to low after touch IC
powered off to reduce power consumption.

Change-Id: I9befe0b38669af4085d268e3564d966ee16bfada
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2637539
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-06-08 03:00:18 -05:00
Wenge Zhu
bf239e4ebd Reduce zinitix touch resume time
TP:
Reduce zinitix touch resume time.

Change-Id: I62f05c91a6355e869636ee3c2d54354d207c1b23
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2637882
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-06-08 02:43:32 -05:00
Lei Chen
a5f96568a0 mmi_charger:optimize the thermal vote policy
Changes,
ensure the thermal vote current can keep constant.

Change-Id: Ie95e6ee49381781484b843715dcaabe5ebf4e760
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2632194
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-07 01:15:12 -05:00
Lei Chen
f78635ed93 bq25980_mmi:optimize the adc read
1, use bulk read to ensure the adc read correct.
2, reduce the frequency of vbus reading

Change-Id: Ib4c2a4f3586196e2ad3042c6f701b2741a81fe03
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2633111
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-06 20:53:37 -05:00
litong20
4e46c022e9 cw2217b: optimize the battery capacity
cw2217b:
When the soc reaches 100 and the usb is online, and the
battery is not in discharging status, the ui_soc remains
at 100.

Change-Id: I075229f572eb3330f490b5840d25d1ed119311c4
Reviewed-on: https://gerrit.mot.com/2631323
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-06-02 07:35:46 -05:00
tin_bingtai.zou_tmp
9885e3822c optimize aw963xx driver-set_enable
1.each channel enables calibration only once
2.optimize set_enable function

Change-Id: Id61e6e192c84aaa7e23c234456ff65e34e085153
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2629574
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Submit-Approved: Jira Key
2023-06-02 03:57:51 -05:00
Lei Chen
1757a8c181 mmi_charger:optimize the pump policy
Sometimes the pump can't recovery if disabled accidentally.
The recovery_pmic_chrg flag should reset to 0.

Change-Id: I01119c6531ca42aa7e92d590cca9989ce18a53b0
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2630990
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-02 02:48:03 -05:00
Lei Chen
4cccb0285a mmi_charger:enable adc when charger plugin
SC8541 ADC enable will cost extra current while standby.
Enable sc8541 adc when charger plug in.

Change-Id: I0d8cd2b680534a75e29d80cf955d705204bec02f
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2629340
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 01:46:31 -05:00
Lei Chen
24a58e0f57 sc8541:enable adc when charger plugin
SC8541 ADC enable will cost extra current while standby.
Enable sc8541 adc when charger plug in.

Change-Id: Ib8993bbd2c7a806a60a91ed53be5e84abd43c877
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2629332
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 01:46:26 -05:00
Lei Chen
5994d0842b charger:optimize the qc3p init vbus voltage
To ensure the battery current can meet the target, optimize the
qc3p init votalge while the soc above 65%.

Change-Id: I005799a1a530bd1d5899206da4f64bf4492d4c84
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2629112
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:08:33 -05:00
litong20
64f13d6843 Reduce 'cw2217b_fg_mmi.ko' boot log printed.
cw2217b:
Reduce 'cw2217b_fg_mmi.ko' log printed to improve ko loading time

Change-Id: Ideb3b4c1edae893429b2e5c6c964f96cfb3bc49d
Reviewed-on: https://gerrit.mot.com/2620316
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-30 21:52:36 -05:00
litong20
a07f15833d cw2217b: modify charging status
First unify the polarity of the current through the ibat_polority,
then judge the charging state according to the polarity of the current.

Change-Id: Ie2c155708e0c6808f56502325af0248e74e6c420
Reviewed-on: https://gerrit.mot.com/2620148
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-30 21:52:31 -05:00
tin_bingtai.zou_tmp
f86c48d11b optimize aw963xx driver
1.add reset node
2.modify enable function
3.fix panic problem

Change-Id: I0e7e1e7185ffa6128239c2e91f61f31f448ded28
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2620252
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Submit-Approved: Jira Key
2023-05-25 03:23:46 -05:00
Wenge Zhu
000036d29e Set touch reset and interrupt pin
Set touch reset and interrupt pin to low after touch IC
powered off to reduce power consumption.

Change-Id: I9443a29ee5ccb7d19290024048e054102710a65b
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2619346
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-05-25 00:38:46 -05:00
Rafael Ortolan
69486e81af pd: configurable tcpc timeout to detect charger type
Different devices require different settings for tcpc's max polling
count. Make this value configurable.

Change-Id: I10b3bc4f27d14e00c5ec2b4ca943c1f97b4eb14a
Reviewed-on: https://gerrit.mot.com/2610513
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bruno Oliveira <brunosoe@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Submit-Approved: Jira Key
SME-Granted: SME Approvals Granted
2023-05-24 16:14:02 -05:00
litong20
2570e879eb save the value of ui_full to the A2 register
The value of ui_full will be lost after reboot,
so save the value of ui_full to the 0xA2 register.

Change-Id: Ib183f9ee745e8e91207f5dd0763729845573ec04
Reviewed-on: https://gerrit.mot.com/2612156
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-18 02:55:28 -05:00
Wenge Zhu
c14fd70d65 Optimize zinitix touch firmware upgrade flow
Firmware flash is ok but verify fail, change to verify the last 4 bytes
on firmware.

Change-Id: If4e80a914d8ad7b9352a26fb7259aa97451c7863
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2611066
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-05-17 21:50:04 -05:00
Yan Zhang
a5ba5911b1 : Fix FOD zero tap not working issue
Goodix touch:
Clear correct bit 13 to enable FOD zero tap wake up gesture.

Change-Id: Iece50a5dc5ae27c562f0cdf1087c44ec6fa5d5c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2608756
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-16 02:11:01 -05:00
Lei Chen
2d22cb6ebb charger:optimize the qc3p request voltage
The qc3p request voltage is too high while the vbat
is float. Optimize the qc3p request voltage when
charger pump entry.

Change-Id: I206e23f6f21519cf59725ce5d0874e11582325c9
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2603252
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-15 21:22:22 -05:00
dengwei1
1c0ddee9b1 bangkk: input touch add game feature edge/rate
add game feature
edge/rate

Change-Id: I2173f12bcfb0e05aa91c275e3532babf81c15c3f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2603761
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Submit-Approved: Jira Key
2023-05-14 21:01:36 -05:00
litong20
b7c07a15f7 sgm4154x: support 8w wireless charging
sgm4154x:
Setting ichg to 360mA for 8w wireless charging in Juno. 

Change-Id: Icc2fb0bde8cd766fb1354b9bdad68514387a879d
Reviewed-on: https://gerrit.mot.com/2604889
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-11 22:19:56 -05:00
Wenge Zhu
e12191b812 Optimize zinitix touch firmware upgrade flow
Found that zinitix touch firmware upgrade failed due to checksum
error,but now firmware version check right and touch works well.
It's not sram broken or burst upgrade problem, suspect "0x55aa"
check sum not stable.
Change the firmware check to a more stable way after burst upgrade.

Change-Id: I1edb0dc608179e3d64c8ac931603aae9e28cd78d
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2604234
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-05-11 20:55:53 -05:00
litong20
7f6626a7ca Set the thermal_ratio_nums.
sc760x:
The step of thermal radio is 0.5, so the thermal_ratio is
(thermal_ratio_nums * 0.5).

Change-Id: I87238d652c90be53c7bd2901c63fcf2c84Montana467
Reviewed-on: https://gerrit.mot.com/2601346
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-10 03:04:49 -05:00
litong20
7ecda6d0df Add SUPPORT_DYNAMIC_UPDATE_UI_FULL control
cw2217B:
Add SUPPORT_DYNAMIC_UPDATE_UI_FULL macro definition to support
dynamic selection of ui_full logic.

Change-Id: I75d6070f0de3359dd74d8c4ef220e692b8edf90e
Reviewed-on: https://gerrit.mot.com/2601342
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-10 03:04:03 -05:00
litong20
89cb6ae120 need to clear jiffies in non-charging state.
The jiffies value is only recorded in the charging state,
and it needs to be cleared in other states.

Change-Id: I9beb3465a24784d35399c10733416f3104269678
Reviewed-on: https://gerrit.mot.com/2601217
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-10 03:03:57 -05:00
Robert Cabral
d73cc9a3e8 input: ili9882_mmi: remove unused netlink codes
Ported from (CR)

ili9882_mmi:
Removed unused netlink codes, fix vts test fail.

Change-Id: I9c35145f9f067e194ebc3c348ed46cd42d95614d
Signed-off-by: Robert Cabral <robertc@motorola.com>
Reviewed-on: https://gerrit.mot.com/2593044
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Levy Gabriel <levy@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-09 08:01:09 -05:00
litong20
aca130a133 use the battery voltage of fuel guage in charging logic.
use the battery voltage estimated by the fuel gauge in charging logic,
not the adc value of the charge pump.

Change-Id: Ia001e41dc909ce3ec57ddbcfe888a7b566ad358a
Reviewed-on: https://gerrit.mot.com/2599627
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-08 21:20:41 -05:00
Konstantin Makariev
e2435909dc goodix_blr_mmi: wakeup gesture gt9966
This change formilizes gesture mode setup for GT9916 and GT9966
Goodix touch ICs. There are 2 major differnces between these two:

1) gesture mode command length
2) gesture enable mask

Command length is 6 bytes for GT9916 and 8 bytes for GT9966.
Gesture enable mask:

  9916 -> 0 is enabled and 1 disabled
  9966 -> 1 is enabled and 0 disabled

 double tap            single tap
     |                     |
    |V--------------|------V--------|
    | | | | | | | | | | | | | | | | |
    |---------------|---------------|
          Byte 5         Byte 6

Change-Id: I76f9735addc45ed2b94a50569a3929b1b73084d0
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2549731
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-05-08 11:09:57 -05:00
Yonghua Yan
f68d0640c1 Add sysfs node for cid status read
Add sysfs node for cid status read to support CQA
test.

Change-Id: I933133e54a575aab2b009b8d69d79e467561374a
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2599136
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-08 06:38:59 -05:00
tinno61
d52da72ed7 bangkok modify focal tp power on off
bangkok:modify for focal tp 
power off and on

Change-Id: I23791c139fa095611fdb3989d3fb318222144533
Reviewed-on: https://gerrit.mot.com/2597827
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-08 04:57:47 -05:00
litong20
eda20302a8 Need to initialize full charger capacity of 100%.
cw2217b:
Need to initialize ui_full
Change-Id: I4ae00866e93a56625cd4ec529c441f943f70060b
Reviewed-on: https://gerrit.mot.com/2591425
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-06 05:40:07 -05:00
Wenge Zhu
529e12857d Support goodix ghost touch log capture
TP:
Support goodix ghost touch log capture

Change-Id: I49946e6eb8adcec4387915a8d80572be9e008789
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2583262
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-06 05:10:58 -05:00