Commit graph

3,090 commits

Author SHA1 Message Date
zhangshaohu
35935f6e8a fogos: tp: resolve 1st icnl9916c CQA-test occasion fail
1. update cts_test.c
2. resolve CQA-test occasion fail.

Change-Id: I6fbe3e97c6372cc4ee3a866cc87a566dd3a6351b
Signed-off-by: zhangshaohu <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2750225
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
2023-09-25 02:39:48 -05:00
William Liu
85f227ae36 aw862x_haptic_nv_v1:Rename the aw_vibrator to vibrator
Awinic default driver exported aw_vibrator name to user space
Rename it to vibrator to compatible with existing user space apps
Remove the trigger interface to avoid Android problems

Change-Id: Icbf0bf6c90f467898643394c880b01d61f8e8052
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2750040
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
2023-09-24 21:23:56 -05:00
Guocheng Wang
521d0a8ec9 charge: Fix some charger can't boost VBUS
The charging power is too low after repeatedly inserting and removing
the moto 33W charger.
Because the charger can't boost VBUS by DP(D+) pulses when the DM(D-) 0V
time is too short.
So add a 100ms delay before we want send the DP pulse.

Change-Id: I36ba617b01a1115e9d7bca78773c715d5f73dcc3
Signed-off-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2747942
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2023-09-22 05:46:00 -05:00
149
496cb2c408 charge rt9426a add ffc mode
rt9426a set FC_VTH and FC_ITH
add ffc mode set FC_VTH and FC_ITH in kernel

Change-Id: I0822f8b8ba459cb1b61148024205116bd2755fa6
Reviewed-on: https://gerrit.mot.com/2748210
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-22 05:23:36 -05:00
William Liu
42c96a8ee5 Initial t(CR) driver bringup
Integrate the t(CR) driver from awinic
to support the new vibrator features

Change-Id: If32088e4b63c149e39555de8cde85de9acc5d137
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2723567
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2748055
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-09-21 09:53:51 -05:00
litong20
447fb2f212 Add switchap dump dev information
qti_glink:
Add switchap dump dev information

Change-Id: I51644203e47ecbfd56894a23bed90a92636864f8
Reviewed-on: https://gerrit.mot.com/2746055
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-09-20 05:13:37 -05:00
zhongfeihong
b1ae33e030 kernel/tp:fogo:Optimized stowed mode switching under gesture on
fogo:
Optimized stowed mode switching under gesture on

Change-Id: I65f33d078b5fe68b3307e3ce4aca2eae39f97823
Signed-off-by: zhongfeihong <hq131@motorola.com>
Reviewed-on: https://gerrit.mot.com/2745636
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-09-20 03:23:02 -05:00
Lei Chen
df71531203 charger:fix the CDP icl is only 500mA
The charging current is only 500mA for CDP type. After Kernel-5.15,
the GKI usb core vote the icl to 500mA when plugin CDP interface.
Log snapshot,"msm-usb-hsphy 1613000.hsphy: Avail curr from USB = 500"
Doesn't allow vote the icl for CDP type.

Change-Id: Ice10937675d002ad3bc1a3632273efe9c1ec0e10
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2741339
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-09-19 22:08:26 -05:00
zhu chuanchun
60ad88861d mmi_info: support CXMT Ram info
CXMT mr5 is 0x13, which is CMTS special vendor ID.
we add it in mmi_info to display right vendor name.

Change-Id: Ia1cead1ea4ea178936116a941d374c034b8538d5
Reviewed-on: https://gerrit.mot.com/2743034
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Xiaofeng Wang <wangxf14@motorola.com>
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-19 20:40:28 -05:00
dengwei1
ce64f74a1b fogona: input touch stop esd check when suspend
and more flag
to make sure stop esd check

Change-Id: Ie3b26556eb100aa7404828e30ff3db9e0c7773c5
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2743511
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-18 20:58:06 -05:00
Wenge Zhu
a07db02840 dlkm: Support stowed detection when gesture mode for goodix
Support for touch stowed detection when gesture mode.
Under gesture mode, when entering Stowed, touch will enter deep
standby mode, and detection will resume when unstowed.

Change-Id: I3574cfe5ec895b8846aa329c5a12ca83e16f98e9
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2742918
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
2023-09-18 04:15:31 -05:00
Yuchang Guo
8a75301d55 sx937x: add reg read write interface for tcmd
sx937x:
Add reg read write interface for tcmd.

Change-Id: I3e611e649027fa80aec48c04acec5718623441e5
Reviewed-on: https://gerrit.mot.com/2731562
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
(cherry picked from commit b4edab29f1e286d96216840e6593bb53f2232fc4)
Reviewed-on: https://gerrit.mot.com/2741058
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
2023-09-18 03:23:00 -05:00
xuwt2
76d7dd86ce qti_glink_charger: Add msb_dev_info dump
msb:
moto switcher buck charge
qti_msb_dev_info:
dump msb dev information

Change-Id: Icd8ba9666a19cae24f77269252d8a6644e0a7578
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2740053
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-09-18 01:26:11 -05:00
Zhibang Li
e89bd60d41 Hall sensor add passive pen code
Modify hall_pen.c file to add pen detection code
Modify Android.mk and Kbuild to add definition

Change-Id: Ica36be5f69eeb5205bc9d7573a6801602d4db7a0
Signed-off-by: Zhibang Li <lizb15@motorola.com>
Reviewed-on: https://gerrit.mot.com/2733379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-17 22:31:35 -05:00
Lei Chen
1c6c1799d5 charger:Add ffc enabled state check function
Add ffc enabled state check function to support specific ffc
policy controlling in low level charger driver

Change-Id: Ic208e452a843d9838f23f221c051cc3074365c05
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2733182
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-09-17 20:51:45 -05:00
Lei Chen
2fb7e17663 charger: add dcp ffc check function
Per hardware requirement, add dcp ffc check function
for 10w and 15w charger. It will benefit the charging time.

Change-Id: I7795a7d39e24ab7d5c6d8bb398f8b6292eafed9c
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2741102
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-09-17 20:51:35 -05:00
dengwei1
077da0aaf9 eqe: input touch init
goodix driver
init

Change-Id: Iab188e4aaad35f05ccdbeb0d9b5aa79f90ded83e
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2727801
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yue Sun <sunyue5@lenovo.com>
(cherry picked from commit 0b98ff219ded6ffc4fd19e5a673452bd0336860f)
Reviewed-on: https://gerrit.mot.com/2742397
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-09-15 19:47:08 -05:00
Wenge Zhu
c0f11fb588 Fix goodix touch driver build error
Fix goodix touch driver build error due to
compiler optimization level:
goodix_ts_log_capture.c:36:6: error: variable 'ret' set but not used

Change-Id: Iaec12d4ee42285ce04ca5a3685399855752ed36a
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2739578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-09-15 04:16:14 -05:00
Yuchang Guo
03c20eb252 awinic: setup build on kernel 5.15
awinic:
Setup build on kernel 5.15.

Change-Id: Ic093cc58324986b326294564dc1302a4181e373c
Reviewed-on: https://gerrit.mot.com/2730469
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
(cherry picked from commit 54ba4eb801f1d938b07e4982dddc60c03c6e9433)
Reviewed-on: https://gerrit.mot.com/2741051
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
2023-09-15 03:22:21 -05:00
Yuchang Guo
612e0d2f93 sx937x:fix build error
sx937x:
Fix build error.

Change-Id: Iaaeb4b66586c5c2598cba66a740df0cf53665646
Reviewed-on: https://gerrit.mot.com/2730178
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yue Sun <sunyue5@lenovo.com>
(cherry picked from commit 6f61352912e19ac3305c82b6e881a696faebb4a5)
Reviewed-on: https://gerrit.mot.com/2741046
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
2023-09-15 03:21:34 -05:00
weichunli
c1a19cbaa9 fogos: add 1st icnl9916c tp stowed mode at suspend
1. add tp stowed mode at suspend state.
2. turn on stowed mode, echo "0x01">stowed.
3. turn off stowed mode, echo "0x00">stowed.

Change-Id: I337b58e87a7d45abca6def5360f4c3c30afe6bdc
Signed-off-by: weichunli <ontim55@motorola.com>
Reviewed-on: https://gerrit.mot.com/2731969
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-09-15 02:53:22 -05:00
Renata Raffaine Villegas
d3184e8b05 [milanf] add i2c retry on sx937x
Add retry on i2c read and write to avoid fails on
sx937x probe.

Change-Id: I4d8a2479ae834cf2bf6e3cbea2e52388e4cf3fcf
Reviewed-on: https://gerrit.mot.com/2736769
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Joao Pedro Oneti Carvalho <oneti@motorola.com>
Reviewed-by: Daniel Finimundi <danielrf@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 51a64eaf5a8fc5125cc3ffc5b2462b3723c25d2f)
Signed-off-by: Minghui Wei <weimh1@motorola.com>
Signed-off-by: Daniel Finimundi <danielrf@motorola.com>
Signed-off-by: Renata Villegas <rvrenata@motorola.com>
Reviewed-on: https://gerrit.mot.com/2739484
2023-09-14 22:03:04 -05:00
Haijian Ma
d807998f44 charge: add DCP FFC feature
As HW require, add DCP FFC feature.
1. config mmi,enable-dcp-ffc to enable this feature.
2. don't effect original 30W ffc logic.

Change-Id: Iabd4064d2ea8e46cf5b77c75e3b57dabf8c697c4
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2738339
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-14 05:23:45 -05:00
lixuehan
5b4b2e708c drivers/TP: 2ed nt36528 support high resolution 4x v2 fix
Fogo 5G NA 2ed Touch.
support high resolution 4x.

Change-Id: I3a0b8490fb13fef9fc3c1972442a18ebd633e3b2
Signed-off-by: lixuehan <hq126@motorola.com>
Reviewed-on: https://gerrit.mot.com/2737280
Reviewed-by: Jun Weng <wengjun1@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-12 07:46:31 -05:00
weiweij
0fd5d8d4ec mmi_thermal_zone: fix compile error
For some verion of linux kernel, kzmalloc could not be used,
so we should use a common interface, as dev_zalloc.
Or it will meet compile errors on other linux kernel version.

Change-Id: I2c248b701ace03bc249db036a38739672eb29652
Reviewed-on: https://gerrit.mot.com/2737220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-12 04:40:01 -05:00
weiweij
7e9fba0dd5 thermal: add uevent trigger for virtual sensor
Because thermal-hal thermal throttling processing deponds
on the thermal uevent. So we need to add uevent thermal
trigger for virtual sensor. To avoid event storm, the uevent
only generated when the temperature is higher than threshold
and the change of temperature is by 1C.
Need dts element definition:
"mmi,uevent-temp-threshold" - the uevent trigger threshold
"mmi,need-uevent-sensors" - the sensor list that need uevent

Change-Id: Ifc0e15a57716540d39e696d711e9016fd4a850db
Reviewed-on: https://gerrit.mot.com/2728837
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-12 01:39:10 -05:00
zhaoxp3
9e32eb4254 AndroidKernelModule.mk: add crow in Build_external_kernelmodule.mk
add crow for a new mechansim for
building external modules

Change-Id: Ia85ebb1f553ae7ba7d2a170cc4c133a779b41316
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2730443
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-09-12 00:45:46 -05:00
lixuehan
be779bc674 drivers/TP: 2ed nt36528 support high resolution 4x v2
Fogo 5G NA 2ed Touch.
support high resolution 4x.

Change-Id: Ia463e362bf37e71e9834d3d127ced5aaec5b12ef
Signed-off-by: lixuehan <hq126@motorola.com>
Reviewed-on: https://gerrit.mot.com/2730701
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-09-11 22:48:58 -05:00
Wenge Zhu
2f6b95cde9 Support goodix touch palm cancel feature
Parse palm event on irq thread received from touch IC and then report it
to FWK.

Change-Id: I5d9fca8a258a568ada21b0824d3dc255fe9798d4
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2735977
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-09-11 04:19:55 -05:00
chenlj2
11f03a3ea7 DLKM:add anc_fps_mmi driver
Reason: fps bringup work
add anc_fps_mmi for JV0301

Change-Id: I17dadeccd45fc461f4800fd50e659bd1d217bd20
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2735787
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-09-11 02:58:02 -05:00
Wenge Zhu
381ced2f26 Enable touch high report rate for ctwo
Enable touch high report rate for ctwo.
normal mode:240HZ
game mode with sensitive touch:360HZ

Change-Id: Ibb2cef93ea6152dd8372974775dfccf3232e864f
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2735798
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-09-11 02:16:54 -05:00
dengwei1
c9b3fc777b bangkk: input touch set fod event
set fod event
after touch

Change-Id: I86d3ea5e1cc4f0ae729410137b5d20d558f850aa
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2735554
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-10 22:23:39 -05:00
dengwei1
da86553fe3 bangkk: input touch remove fod coordinate when resume
remove fod
coordinate

Change-Id: I349f9dfbb5a370c8a1c56f6fba0b9c4f54e2a28f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2733870
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-08 02:29:40 -05:00
Guocheng Wang
cdb9875ddc charging: charging state machine don't depend on battery soc
charging state machine use battery voltage as condition to switch state
instead of battery soc.
1.Sometimes batt soc have some error in low temperature and less
then 100%, charging can't auto stop when battery FULL.
2.unit can't recharge after charge full.When unit charge full, it will get
the forced capacity 100%, so chrg_step can't be switch to STEP_NORM
from STEP_FULL.

refer to https://gerrit.mot.com/#/c/1926738/

Change-Id: I1f9a3926d1e39168b4df227e8172a43dc0af58bc
Signed-off-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2730249
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-07 04:47:30 -05:00
longcheer
791959291c : fogona : tp : update cts_test.c file
WHY: need update cts_test.c
            HOW: update cts_test.c

Change-Id: I4e03cc2f75142857b99415e8fda7110a093f0b76
Reviewed-on: https://gerrit.mot.com/2731578
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-09-06 04:56:20 -05:00
xuwt2
f719038bb8 sc760x_charger: remove unused variable
sc760x_charger_mmi.c
remove unused ret variable

Change-Id: Idcdf6dcfe63aaafb4866e01d1fda4a18ec8ec2e9
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2730498
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-09-05 02:05:41 -05:00
Wenge Zhu
28a5ecdcff Optimize ghost log capture feature
Do not start log capture if touch on suspend state.Stop log
capture if touch going to suspend,or frame length will go
wrong and causing array overreach when memcpy.

<6>[12784.751118][ T1122] Call trace:
<6>[12784.751130][ T1122]  __memcpy+0x128/0x180
<6>[12784.751166][ T1122]  goodix_ts_threadirq_func+0x10c/0x604 [goodix_brl_mmi]
<6>[12784.751178][ T1122]  irq_thread_fn+0x48/0xd4
<6>[12784.751188][ T1122]  irq_thread+0x344/0x550
<6>[12784.751198][ T1122]  kthread+0x144/0x1b4
<6>[12784.751207][ T1122]  ret_from_fork+0x10/0x30

Change-Id: I9d3284b5a07c8b060aedd499bf2a0a1895a35abb
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2728178
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-09-05 01:20:47 -05:00
Wenge Zhu
572f07c652 Optimize touch stow mode feature
Do not clear get stow mode state after touch resume done,and get stow
state variable totally controled by FWK,in case when AOD wake up and
sleep touch could not enter stow mode in pocket.

Change-Id: I4d6617bc6757c1e7d7a646fe2cf5e21eea7b22a6
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2729447
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-09-04 04:46:06 -05:00
lixuehan
117db75a3c driver/TP: Support for touch stowed detection when gesture mode.
Fogo 5G NA Touch.
Support for touch stowed detection when gesture mode.

Change-Id: I890556c988c1a0d931fe72a411b761b0f6ee2864
Signed-off-by: lixuehan <hq126@motorola.com>
Reviewed-on: https://gerrit.mot.com/2723590
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-09-04 01:24:32 -05:00
Zhiye Li
b7d8088544 Initial bringup wlan antenna for boston and use wlan_antenna.ko
As request from RF team, wifi connect wifi5G network, when a vowifi call,
pull up the gpio34, so that the wifi5G  antenna switches to back antenna.

Change-Id: Idfb47161179db62d2e1a77a26be70d5b54d3bfe9
Signed-off-by: Zhiye Li <lizy90@motorola.com>
Reviewed-on: https://gerrit.mot.com/2728933
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianglong Liao <liaoxl@motorola.com>
Reviewed-by: Yue Sun <sunyue5@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-09-03 22:48:53 -05:00
Yonghua Yan
3170fa52ec Clear vbus present if wireless charger present
Clear vbus present if wireless charger present, as there is no
wired usb charger connected.

Change-Id: I2020465813d65b4c359070de90ba70f63867b18c
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2728335
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-09-03 22:03:21 -05:00
LiZidong
1c72ae7c2c : Bangkok CSOT+FT3681 Fix TP Ghost Point Issue
Fix unlocking with a fingerprint when the screen is off,
ghost spots appear on the screen.
No call to tp_gesture_recovery in tp_resume_recovery.

Change-Id: I8f026cfb1faf35b11596dee7bd8ad561d5819cb1
Signed-off-by: LiZidong <tnlizd@motorola.com>
Reviewed-on: https://gerrit.mot.com/2720737
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Jira Key
2023-09-01 04:34:48 -05:00
longc
7887e1b007 cc2 probabilistically recognized cc1
first_check check was not reported,resulting in the default value of cc1

uppdata aw35616.c in kernel
Change-Id: I34704b5c08a38c2819327e9d0fb7b38901097140
Reviewed-on: https://gerrit.mot.com/2727374
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-09-01 02:06:17 -05:00
longc
3fcd732500 cc-aw35616 probabilistically not recognized
first_check is missing a calling function;Interrupt function probabilistically does not advance.

uppdata aw35616.c in kernel

Change-Id: I864bd163cbd95e221be8d9ae6a091976d765b56e
Signed-off-by: longc <longc156@motorola.com>
Reviewed-on: https://gerrit.mot.com/2720946
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-08-28 02:46:58 -05:00
lixuehan
15a001bf2b drivers/TP: 2ed nt36528 support high resolution 4x.
Fogo 5G NA 2ed Touch.
support high resolution 4x.

Change-Id: Ibabda1a17e7633d3ea0c903db2e3fae78b2e0681
Signed-off-by: lixuehan <hq126@motorola.com>
Reviewed-on: https://gerrit.mot.com/2720623
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-08-25 04:56:14 -05:00
longc
ee2732d814 :tp:when tp sleep rst high
Change-Id: I63ea78a06be9cd9d2f4fed866d1b25ea6bce6fe1
WHY:need tp rst high
HOW:add tp pull function
Reviewed-on: https://gerrit.mot.com/2719699
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
2023-08-24 21:48:25 -05:00
lixuehan
9c12dbbd63 drivers/TP: Enable TP gesture feature.
Fogo 5G NA  1st & 2ed Touch.
Enable TP gesture feature.

Change-Id: I21cd1e683f83067f06bca5c78d6381166d334beb
Signed-off-by: lixuehan <hq126@motorola.com>
Reviewed-on: https://gerrit.mot.com/2714715
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-08-24 21:46:42 -05:00
Lei Chen
e081ae51ad charger:optimize the factory shutdown sequence
The device auto reboot after shutdown command receive in factory.
The correct seq is sending shutdown command-->unplug the USB cable
-->device shutdown. Optimize the shutdown sequence for factory.

Change-Id: I7f66f932c782192776b36d96457548d49947bd18
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2717398
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Lei Chen <chenl18@motorola.com>
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-08-24 07:59:12 -05:00
Xiaojun Ji
4c1747097c Set max_ra_pages according to total ram size
Set 8 for ram size < 8G RAM and 16 for >= 8G RAM

Change-Id: I3b3561cf69f0b8e083395752806db652cc873289
Reviewed-on: https://gerrit.mot.com/2718477
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-08-24 04:55:29 -05:00
zhuangnk1
11786f6aae Add Qorvo UWB driver
Add Qorvo UWB driver for Qorvo UWB
chipset QM35725s

Change-Id: I77124d7d242863fd8c8a602db7d4cb59aa96ef57
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2687911
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-08-22 01:33:42 -05:00