Commit graph

2,993 commits

Author SHA1 Message Date
wuwl10
3fc4e9567a dlkm: add new nfc_nci driver
Add new nfc driver nfc_nci that copy from Qcom
bs-8450 kernel branch.

Change-Id: Icccb63e9b3136c4d5d6296584892b256da9c7181
Signed-off-by: wuwl10 <wuwl10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2676486
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-07-17 02:00:17 -05:00
ontim52
417f8e9526 fogor: touch: 1st icnl9916c add some demands
1. add single tap to wakeup.
2. add double tap to wakeup.
3. add timestamp.
4. add charge state check.

Change-Id: I8386d826de95fcc67ce7d6a6c59f3bac8c91ce4c
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2671899
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-07-14 06:19:13 -05:00
ontim52
f204d240db fogor: touch: add 2nd ili9883c tp demands
1. add single tap to wakeup.
2. add double tap to wakeup.
3. add timestamp.
4. add charge state check.

Change-Id: I2fa738930851dbdd9e582660f7ec4146ea8ac659
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2671970
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-07-14 06:19:04 -05:00
tin_bingtai.zou_tmp
20d18f7120 optimize log level-aw
1.optimize log level
2.na

Change-Id: I5e18b8d2618e00c0c9a273ff40a80be497b1fb20
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2675279
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-13 21:09:38 -05:00
longc
9e08156d68 fogona:vibrator bring up for driver
tirgger node will clash with driver node
remove tirgger node
reference from gerrit id 2451742

Change-Id: I0db35f3bdc5ab4692244ac0dd9fe86e2b3a054cf
Reviewed-on: https://gerrit.mot.com/2674951
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-07-13 20:57:19 -05:00
xuwei9
0027416755 Fuel gauge RT9426a driver kernel5.15 compatible
FG RT9426A kernel5.15 driver
Compatible.

Change-Id: I52977d324ed28e6f7decf019eab9332cc14a309c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2675047
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-13 03:35:16 -05:00
liuzhen
a8f8687d66 mmi_parallel_charger_iio:optimize the pdo select
optimize the pdo select when vbus request is reduced

Change-Id: I8fc6921014561ff107981ac623915d6f44a01f58
Reviewed-on: https://gerrit.mot.com/2673991
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-07-13 01:43:19 -05:00
Yonghua Yan
4de0b38598 support typec cid event
Add Type-C CID status updating and send uevent for
CID event monitor.

Change-Id: I6ff34c895935a48e72a38bfd7b6b3b68adaddb2a
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2674694
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-07-12 23:08:20 -05:00
Yonghua Yan
ff638c72ec Add typec CID event for notification
Add typec CID event for notification between modules
who need to be notified.

Change-Id: If07c5c0d34ea9dcd3ca79075b6bff86852e562a5
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2674695
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-07-12 23:08:17 -05:00
longc
db2b27811a tp:fogona icnl9916c tp bring [1/3]
WHY:icnl9916c tp bringup
HOW:add tp driver
Change-Id: I86baf02cfe46de578cbe6d801c04edd6d04d692e
Signed-off-by: lzl <longc157@motorola.com>
Reviewed-on: https://gerrit.mot.com/2673320
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-07-12 03:58:19 -05:00
longc
c92029353b fogona:add fogona booster[1/3]
add longcheer booster bringup
for driver

Change-Id: I22f0dfee292f49211f388840754a6d83039b7c3c
Reviewed-on: https://gerrit.mot.com/2671628
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: <longc156@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-07-12 02:00:35 -05:00
Bruno Oliveira
299187823d Implement wlc_tx_capability for cps4019
WHAT: Implement wlc_tx_capability to report if the current charger supports led
      and fan. Use the same op_mode flag that was used at wlc_fan_speed and
      wlc_light_ctl to identify the support.
WHY:  Wireless Charging HAL 2.0 needs the wlc_tx_capability to identify which
      feature is supported, and that was not needed at HAL 1.0, so miami could
      control the 50W charger. After upgrading the HAL, miami could not control
      the 50W charger anymore, which was a regression.

Change-Id: I312d7b77ca6d79e41d420e87e024842e0c22520c
Reviewed-on: https://gerrit.mot.com/2649794
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-07-11 09:03:55 -05:00
xuwei9
ce287da8c3 Cw2217:kernel 5.15 compatible compile change
CW2217 kernel 5.15 compatible
compile change

Change-Id: I6190b193fbcc159308a1bc91dbd689f28b3829a9
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2672112
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-11 04:33:13 -05:00
Wenge Zhu
5f7aa81a93 Enable CLI touch large palm detection for lynkco
Optimize mistake touch when phone on pocket both on display on and
display off scenarios,more than or equal 70% touch area touch FW will
report palm event and event will be dropped.

Change-Id: I3c4ba8d093d889189c1eada93836948459cb33ef
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2666127
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-07-11 00:50:39 -05:00
liuzhen
ba687e647c charger:optimize the qc3p reduce vbus voltage
optimize the qc3p reduce to voltage and avoid overflows of
requested voltage values.

Change-Id: I44bc0a2f275bef8cb191e26eda3024dea9bceb3a
Reviewed-on: https://gerrit.mot.com/2667434
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-06 02:56:33 -05:00
Yuchang Guo
38bd346332 sx933x:setup build on kernel 5.15
sx933x:
setup build on kernel 5.15.

Change-Id: I9f19111b087f3572879df4368e1848e5d150d23d
Reviewed-on: https://gerrit.mot.com/2666412
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-06 01:52:30 -05:00
ontim52
0ecccf6663 fogor: touch: CQA-test add IC name
1. modify ic name
2. modify ic name code

Change-Id: Ic7e313f5193d5ed3e4fca4becfee1575d6e04a1c
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2666405
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-07-05 22:00:38 -05:00
xuwei9
83f446f45e wt6630 remove unused pointer struct
Remove unused pointer struct
at fogo.

Change-Id: I458d243c1960a89a228a2034cae8016907625f85
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2666341
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-07-05 05:02:08 -05:00
xuwei9
45758e3302 qti power_supply header at kernel 5.15
qti_power_supply.h header file
only avavil at kernel-5.15.

Change-Id: I29dbe8d3ef5cfb9fac3be46e41c30e67f42e500c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2666195
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-05 03:40:46 -05:00
xuwei9
45cbdfc07e charger motorola module kernel-5.15 compatible design.
fogo charger bring up motorola module part.
Kernel-5.15 have different compile makefile requirement.
Compatible 5.15 and previous kernel version.

Change-Id: Ibf1a28578de068b550d8ccabf8c0dec15bed7295
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2618261
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2658446
2023-07-05 02:36:03 -05:00
Yan Zhang
62eb97b360 : Add Chipone fps v1 driver module
Add Chipone fps v1 driver module for fogona T 2th fingerprint
source bring up

Change-Id: I5732ed23a49416124d15be339b4d02406cf9dd32
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2664219
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-07-05 01:55:08 -05:00
ontim52
c94a4cc151 fogor: tp: 1st icnl9916c CQA-test function
1. modify self-test function.
2. modify 1st tp depend on mmi_info.ko
3. modify 2nd tp depend on mmi_info.ko

Change-Id: Iba103e204af8ec98c3d7e97936330014d13bc8d2
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2658984
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-07-04 21:48:06 -05:00
wangdp11
1a41085023 ctwo: solve tof compile issue
Details:
The flag -Wno-unused-but-set-variable will cause
8450 compile error, so add a macro to diff.

Change-Id: I1938183af983c9b29ff2489c647f30601d00649d
Signed-off-by: wangdp11 <wangdp11@motorola.com>
Reviewed-on: https://gerrit.mot.com/2662655
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: <shihl5@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: <chenzm8@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-07-03 22:11:08 -05:00
shihl5@motorola.com
0d7f3d6217 ctwo:fix compile issue
Details:
fix tof compile issue

Change-Id: I270d852abdc05bf6322ac968f3abcd6980a31609
Signed-off-by: shihl5@motorola.com <shihl5@motorola.com>
Reviewed-on: https://gerrit.mot.com/2661450
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-30 03:52:44 -05:00
Felipe Carrasco
eccd8995b7 Revert "(CR): ctwo: enable TOF phio tool"
This reverts commit 840ef5295c0b5c6edca8cbeaaa30793c797f64bb.

This change is breaking several builds on Android T and U:
Example:
https://jenkins.mot.com/job/T2SR33_rhode-g_userdebug_mr_r-qsm2020_test-keys_continuous/
https://jenkins.mot.com/job/UTGN34_genevn-g_userdebug_ms_r-q8450_test-keys_continuous/

Error message:
In file included from build/make/core/binary.mk:9:
build/make/core/base_rules.mk:335: error: vendor/st/laser_daemon/vl53l1_test: MODULE.TARGET.EXECUTABLES.vl53l1_reg already defined by motorola/kernel/modules/drivers/input/misc/vl53l1_test.
06:28:17 ckati failed with: exit status 1

Change-Id: I5a253adf9c1be3d6a31e4d597b9a8ea269b2ec3f
Reviewed-on: https://gerrit.mot.com/2660663
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Gilberto Gambugge Neto <gambugge@motorola.com>
Submit-Approved: Gilberto Gambugge Neto <gambugge@motorola.com>
Tested-by: Gilberto Gambugge Neto <gambugge@motorola.com>
2023-06-29 09:49:42 -05:00
chenshitao
ae81f70eca driver: fogor: tp gki issue adapt
tp gki function:
    gki issue adapt

Change-Id: I0c096bb86a54bf26f108d4bf1eee025b16f9a68b
Signed-off-by: chenshitao <ontim51@motorola.com>
Reviewed-on: https://gerrit.mot.com/2659836
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-29 04:54:53 -05:00
wangdp11
0118a04fa7 ctwo: enable TOF phio tool
Details:
1.Enable phio tool.
2.Solve tof kernel build error.

Change-Id: Ia395cMontana9657de7fcb527e83aad5c1dd2c0f3209
Signed-off-by: wangdp11 <wangdp11@motorola.com>
Reviewed-on: https://gerrit.mot.com/2645067
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-06-28 21:12:30 -05:00
Wenge Zhu
a2ea66c605 MOTODESK-12263: Change touch gesture mode key values
1.KEY_FX will report to APP and this may cause APP mistake reaction.
2.Change touch gesture mode key values:
single tap: KEY_F1 -> BTN_TRIGGER_HAPPY3
zero tap down: KEY_F2 -> BTN_TRIGGER_HAPPY4
zero tap up: KEY_F3 -> BTN_TRIGGER_HAPPY5
double tap: KEY_F4 -> BTN_TRIGGER_HAPPY6

Change-Id: I9e732020e4ad78b05ee1aa42e7e68a8952716392
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2655037
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-06-26 05:02:12 -05:00
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