Commit graph

2,684 commits

Author SHA1 Message Date
chenlj2
f11d4657be DLKM/bix:update ets_bix driver
optimise Makefile to solve build issue &remove things
produced by build
complete panel notification to solve build issue

Change-Id: Ia9f3dd04d76a66515f24fb5edbea75910669778e
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2374602
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-08-30 04:34:59 -05:00
chenlj2
1fcdae1a83 DLKM/fpc:optimise build rule for FPC fps driver
remove Macro control,use KBUILD_OPTIONS&KBUILD_CFLAGS
solve issue that sys/class/fingerprint didn't work for
mutil fps

Change-Id: I877cb0c8dc7def47de4d793cd6b11e6ca8d96e85
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2374594
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-08-30 04:34:53 -05:00
chenglong1
e82c409b2b WL2868C: Disable all regulators before shutdown.
Since some platforms don't have BOB power supply, if no BOB power
source, the BOB on schematic is stands for connecting directly to battery.
Most of WL286xC chip selects BOB as input power supply for LDO2~LDO7,
when software doesn't have shutdown handler, LD02~7's input power supply
is always there, there will be high risk of current leakage after phone power
off, so force disable all ldos before phone power off.

Change-Id: I576ae332befd8285896c1373262cfb464f8e0402
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2373662
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Pengfei Qiao <qiaopf1@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-08-30 01:18:11 -05:00
[A
8b30a0a818 sc89890h charger ic factory mode close ico
Modify:
	factory mode close ico

Change-Id: I3e8b3de62820074534f4829306f91a9cd7ac8c34
Signed-off-by: <hq114@motorola.com>
Reviewed-on: https://gerrit.mot.com/2372989
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
2022-08-30 01:14:44 -05:00
Xiaojun Lv
dc6b2a00e6 input: genevn: optimize nt36673c driver for kernel 5.10
TP:
(1)optimize nt36672c driver for kernek 5.10
(2)use panel event notifications

Change-Id: I48a0b5c49430cbb1bcceb05384aec6cddeb3a795
Reviewed-on: https://gerrit.mot.com/2372923
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-08-29 06:51:06 -05:00
Haijian Ma
0fdaeba9c7 charging: change PM mechanism
change PM notify mechanism to device PM
for increase device resume rate

Change-Id: Ief97148e4fe84fcfec6792687ca7b2b5972fc735
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2371974
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-08-28 21:46:43 -05:00
liujian24
03a179188c Pnangn:FPS bringup on Pnangn mainline
Bringup FPS on Penang NA mainline.
Add chipone driver code change.

Change-Id: I11e70347f659bfa46756049ce65ad23e78ffffd1
Reviewed-on: https://gerrit.mot.com/2372073
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-08-26 01:22:09 -05:00
Konstantin Makariev
6b1eef402a fixup! (CR) drv8424_mmi: motor slippage recovery
Fixing missed condition for running in no sensors mode

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I2b7bb40a38c432f301d4b1a3a3742bb0d26cfafb
Reviewed-on: https://gerrit.mot.com/2371667
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-25 16:20:32 -05:00
Konstantin Makariev
6b1f9f94b2 drv8424_mmi: motor slippage recovery
Setting time out for a transition creates a noticible delay between
end of sequence and necessary corrective action. Instead driver will
maintain a flag to indicate whether position was properly detected
based on sensors data or not. Corrective action will follow
immediately upon sequence ends and flag still indicates that position
was not detected.

Change-Id: I894f7c0638760c79dc0780a42f46bda6aadc63c9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2367357
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-24 16:52:57 -05:00
chenlj2
ee4421fff0 dlkm:optimise bu250xx bulild rule
solve build error
cp: cannot stat 'out/target/product/genevn/obj/DLKM_OBJ/
motorola/kernel/modules/drivers/misc/pen/bu520xx_pen.ko':
No such file or directory

Change-Id: I0c19135b807a2492cb0144fe4ba26b3053b70c66
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2369677
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-08-24 00:58:41 -05:00
weiweij
3291622632 wlc:add feature supporting for Moto 50W dock in WLC driver
The feature of Moto 50w dock requests some file points from wlc driver,
so we should impleamnt them.

Change-Id: I265756f9dd2c4ab06b8114641513c1013b42dd54
Reviewed-on: https://gerrit.mot.com/2355232
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-08-23 21:00:19 -05:00
Haijian Ma
84e1e10a9b Revert "(CR): charging: add icl*vbus to report power max"
As qc2.0 detected process will increase vbus to 9V, so
icl*vbus=13.5W,so it will report turbo in detected process.
So revet it.

Mot-CRs-Fixed:(CR)

This reverts commit f348d14e72872565376b1b4ad2138f15738c4c14.

Change-Id: Ib643f2759fca7139fea4325a40f92b96a0b46b6f
Reviewed-on: https://gerrit.mot.com/2367716
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-08-22 05:28:37 -05:00
Haijian Ma
43becf6677 Revert "(CR): modules: vision station WHITE MASK test failed"
As qc2.0 detected process will increase vbus to 9V, so
icl*vbus=13.5W, so it will report turbo charger in detected
process, so revert it.

Mot-CRs-Fixed:(CR)

This reverts commit 8c22d82f275e606fd1e508181265cf5e05a665fe.

Change-Id: I0a553d2118df5da06dc339c110f1c5d5da435334
Reviewed-on: https://gerrit.mot.com/2367715
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-08-22 05:28:30 -05:00
chenlj2
db9606c531 sarsensor:optimise log output for sx9375
Unify the log output of the SAR sensor,At present,
I find that SarSensor has too much log output,
which will affect the startup of Bringup phase.
modify dev_info to LOG_DBG

Change-Id: I35331976db7d0dfb0694f472649b7e09a42a6cc2
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2367671
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-08-21 22:27:36 -05:00
Konstantin Makariev
0287d1a6e0 fixup! (CR) goodix_berlin_mmi: active touch area feature
Fix use of uninitialized environment variable

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I86231e6ce1b988db7c65a14a905f7d86ee00953d
Reviewed-on: https://gerrit.mot.com/2364453
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-16 13:28:18 -05:00
Yonghua Yan
c1d23c2a08 Skip BM ulog request if bm debug is disabled
Skip BM ulog request if bm ulog debug is disabled
to avoid adsp glink request race with other adsp glink clients
l(CR) qti_battery_charger and qti_glink_charger.

Change-Id: I97d2b6bac91b06a8434f0424a602936f0ce1e971
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2362826
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-16 07:35:55 -05:00
Wenge Zhu
d45b34be1e Support normal mode switch corner suppression level
Normal mode:
In case corner area mistake touch when phone is on horizontal screen
state,when phone rotate left or right,FrameWork will send rotation and
corner suppression level, then driver will send switch command to
IC,Firmware will disable corner area touch according to its own logic.

Change-Id: Ib6864cf2a8027beea2066c41e2441359f52d20e4
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2363420
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-16 05:13:23 -05:00
Ping Xiao
31ad034f3e Power: Add /proc/wakeup_sources for Battery Tracer
Because /sys/kernel/debug will not be mounted on user build release,
it's hard to debug power issues due to the lack of wakeup_sources
system file node which is used by Battery Tracer.

Add /proc/wakeup_sources for Battery Tracer to use

Change-Id: I5b6774a25cda4d6344fbe266e8effb53f478edd7
Reviewed-on: https://gerrit.mot.com/2361839
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-15 04:55:44 -05:00
hqjiangy
1c3022555b TP wake up of gesture fix
TP wake up of gesture fix
four and five of tp bsp

Change-Id: I27b4bbe54e0d37bef95e68a8c0c52a7b1606cd53
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2361488
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
2022-08-12 02:31:30 -05:00
Konstantin Makariev
33dad69b53 drv8424_mmi: updated and new features
This change includes the following changes:
 1) Timed out position detection and motor operation
 2) Run time configurable: proximity, pitch and sensing

Timed out position detection will initiate transition to compact
assiming it starts at extended position.

Incomplete motor operations will be followed by recovery attempt.
Failed operation will be repeated as part of recovery

Change-Id: I51a7011d2c9c46955b48e8f9d6bfb4bb367e2042
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2357537
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-11 17:24:51 -05:00
Konstantin Makariev
6c77e4e403 goodix_berlin_mmi: active touch area feature
Added support for active touch area. This feature utilized by
Rollable HAL in Felix. Goodix calls this feature display modes.
Currently supports 5 modes that correspods to primary, rear and
full touch active regions in different slider positions

Change-Id: I0535c1a8c80947452bc20b92feded4d71b8a1905
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2360061
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-11 17:24:46 -05:00
Wenge Zhu
a69a9b5793 Fix noise test case fail of factory test
Fix noise test case fail of factory test,still go on noise testing when
noise data check sum error.

Change-Id: I58fb65cb568758c250f7bcbf5ca7f7339ab2ac4a
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2360618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-11 06:25:54 -05:00
Wenge Zhu
5e12356bb3 Support FocalTech touch noise test point by point
TP:
Support FocalTech touch noise test point by point.

Change-Id: I59e03a8efd465e1a3f8b39c9a44297357156ef2c
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2360247
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-11 03:55:17 -05:00
[A
8eea710880 charge ic sc89890 set ico,common baseline code
charge ic set ico
common baseline code
Change-Id: I2be5cfaa9bfb75aaf689b06c2568d5607b28c86e
Signed-off-by: <hq114@motorola.com>
Reviewed-on: https://gerrit.mot.com/2360334
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
2022-08-11 03:13:13 -05:00
Wenge Zhu
23f004fe4c Enable touch report rate switch feature
Enable touch report rate switch feature for rtwo,
default report rate is 240HZ and high report rate is 360HZ.

Change-Id: Ia4c95d9506a5f1526307b3411d368a4483505651
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2358173
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-09 06:40:31 -05:00
Konstantin Makariev
2e7767e577 fixup! (CR) drv8424_mmi: adjust motor sequences
Last stage in 2.3 pitch devices should be at 1700 PPS

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I5551e8c76ffc281643d5db586a5505746a386cfb
Reviewed-on: https://gerrit.mot.com/2357541
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-08 15:59:22 -05:00
Wenge Zhu
c80c0c5721 Fix FocalTech_V3 touch driver build error
TP:
Fix FocalTech_V3 touch driver build error.

Change-Id: I69cb3cc5677340797de9f964d7072b9bc0ac92b7
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2356328
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-08 07:42:28 -05:00
dengwei1
ab7f640f2e penang: input touch add gki for focaltech
add gki
for focal

Change-Id: I2d33c51380579b19371a0670871f15ec1171fce7
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2355210
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-08-05 01:28:09 -05:00
Konstantin Makariev
a300a7c16f drv8424_mmi: adjust motor sequences
Fine motor stepping sequences tuning based on closed unit

Change-Id: Iddba5b7a5c7e52c993c16a51fa9e7ed503f2c52f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2353560
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-04 16:23:26 -05:00
Xiaojun Lv
c5e1846613 Android.mk: add parrot build options for geneva row
mk:
add parrot build options for geneva row

Change-Id: I236e3661b3a923481c22afc1ee1be433708cf5c7
Reviewed-on: https://gerrit.mot.com/2354169
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-08-04 04:55:29 -05:00
Wenge Zhu
d5d96acec4 Decrease the log of register panel notifier
Decrease the log of register panel notifier and print the log every
1s when not find matched display panel.

Change-Id: Iab2f4f7accc4bc9de5722e2d0f03255ad6b764e9
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2354041
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-08-04 03:42:04 -05:00
Wenge Zhu
9910ab9139 Remove unused send touch IC config
1.There is no need to send IC config,this func is a workaround way for old
goodix touch IC to upgrade config again after upgrade touch firmware.
2.Also this func will load config to ram when driver loaded,affecting
touch firmware update.

Change-Id: Icce7a8d57090305231e7f69b2150715578299896
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2352764
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-03 08:44:49 -05:00
Konstantin Makariev
e47bd794ff drv8424_mmi: adjust sequences for 2.3&2.8 pitch
There is a mix of devices with 2.3&2.8 pitch motors. Added sequences
for both pitches. Sequence for 2.3 pitch will be set by default.
Setting sequences for 2.8 pitch requires property use-2p8-pitch set
in device tree. In sensors equipped devices each sequence will be
extended with slow PPS stage to ensure it's a bit longer and allow
successful sensors data processing

Change-Id: I2d0242f4d806632468348e609d5d0c60aebad667
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2351204
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-02 12:39:13 -05:00
Konstantin Makariev
e2e8601a20 drv8424_mmi: sensor data driven position detection
Sensor data reported whenever signal changes above pre-defined
threshold. This causes data arriving in bursts when signal changes
rapidly. Handle position detection in kthread to ensure no data will
be lost

Change-Id: Ie08d428a47a792e1b80689a99d2587f4b0dbd389
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2331896
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-08-02 12:38:55 -05:00
hq_yexiuyon.wb_tmp
a00a9c472a TP: The TP ft8057 bringup
Modify:
      Bringup TP for ft8057 , add TP bringup

Change-Id: I94868643749e4895662657902a4c263e0d147bfc
Signed-off-by: hq_yexiuyon.wb_tmp <yexiuyong.wb@huaqin.com>
Reviewed-on: https://gerrit.mot.com/2349846
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-08-02 04:19:05 -05:00
Wenge Zhu
1a064151a2 Fix goodix touch driver build error
Fix goodix touch driver build error when enable FOD event on SM8550
platform.

goodix_ts_gesture_fod.c:368:6: error: variable 'fodx' set but not used [-Werror,-Wunused-but-set-variable]
        int fodx, fody, overlay_area;

Change-Id: Id98544f32b4e75345236b684593fe9d308781c96
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2349095
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-08-01 21:10:17 -05:00
litong20
b67dba787f Add fcc_ma/fv_mv and thermal_level debug info in kernel
Charging:
Add thermal_level, fcc_ma/fv_mv and otg_enabled debug info in kernel

Change-Id: Ieb994c688641f1a2b26c665c875433295bd0f597
Reviewed-on: https://gerrit.mot.com/2339182
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-26 07:41:29 -05:00
Haijian Ma
7ce2dadc30 FG: Monotonic SoC to prevent SoC jump
Monotonic SoC to prevent SoC jump while Charging or Discharging
for miami

Change-Id: I5a7c0ac6031c0e4908b1dcff12b385e312247712
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2343050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-25 02:01:29 -05:00
wangyq13
f68ce59af5 input: goodix: disable double click of touch firmware
goodix:
Disable touch firmware double click, otherwise touch will wait 500ms
for second click, cause single tap kpi fail.

Change-Id: I4959e7309ccec9037574841b7115da8a5aacfca6
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2342732
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yiqiang Feng <fengyq4@Lenovo.com>
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-25 00:45:20 -05:00
Yonghua Yan
912fbabb8e update bm ulog mask
Update bm ulog mask according to adsp update
for ulog mask.

Change-Id: If37fae89a74f8391c8484492c78c0dad9267a965
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2343108
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-24 23:02:38 -05:00
Wenge Zhu
3f23e29dd7 Support double tap to wake up the screen
TP:
Support double tap to wake up the screen.

Change-Id: Ie99fda37fd7dcba66f3c4d91e9fd6b8179d61018
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2298079
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-07-24 21:01:52 -05:00
Wenge Zhu
cba2f1db13 Use node to notify CLI touch gesture mode
Remove the way that when tap sensor register to notify touch enter
gesture mode.Use node to notify CLI touch enable/disable gesture mode.

Change-Id: Ib732a61289bcfed78b7ffecd3c6c2b27ae590bd1
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2320662
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-07-24 21:01:40 -05:00
Yonghua Yan
896ff3dd7b usbnet: notify if config to sync with userspace
Notify usbnet if configure to sync with netconfig in userspace
in factory mode.

Clear the gadget in context in case it has been removed when
phone switch to host mode. In that case, there will be kernel
panic for invalid gadget device access.

Change-Id: I28fdb1455eff5fa0592f024e7f1096cbf662de23
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2337318
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-22 02:44:28 -05:00
Andy White
8b84aeebf2 aw86927: Add vendor-supplied driver
Add vendor-supplied driver code and add new Android.mk
Makefile, and Kbuild files to integrate into Android
build system.

Change-Id: Ia0d5eaf8c9093a76ced96c8c962b80b6a7f19736
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2332902
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-07-19 16:30:59 -05:00
weiweij
911ecabe21 WLC: when wlc is offline, set psy prop value as 0
When WLC(wireless charge pad) is offline, cps4019 could not
accessed by i2c bus. And we should return the value of 0
to indicate the status of offline. For healthd judgement logic,
it will just distiguish the valud of 0(offline) and non-zero(online).
So it will regards -1 as non-zero(online). As a result, we should
not return non-zero value for psy properties.

Change-Id: I4724d1b4a2d2d607b07fa3b52475e707da55fecf
Reviewed-on: https://gerrit.mot.com/2337171
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-18 21:39:59 -05:00
Haijian Ma
dcca2318bf charging: add wls charging icl workaround for apple TX
add wls charging icl workaround
for apple TX

Change-Id: If6fcf4eecc937efdfc6b6abbf5f289fa8d3ff6e2
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2332334
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-18 21:39:06 -05:00
weiweij
eb15e8e279 wlc: change wlc current from ibat to iout
For some charge pad, we need to get the result of iout
from cps4019 to judge its working status. So ibat could
not work in this scene. So we should change the current
result form ibat to iout.

Change-Id: Ie31b1308ecd59507208ad4ec9038e6e950bfef76
Reviewed-on: https://gerrit.mot.com/2330599
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-18 21:19:03 -05:00
hqjiangy
85bd3d719d TP focal bsp fix[1/1]
focal bsp fix

Change-Id: Iec8c3b47f88d8d7f46693f61a9006e57a4cae8ee
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325040
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
2022-07-17 02:31:29 -05:00
weiweij
c77ace836f WLC: Add vbus check before power supply read ops
If vbus is absent, CPS4019 could not be accessed duel to loss of power.
So before power supply read operations, we should check vbus status.
If it is not exist, we should not access CPS4019.

Change-Id: I32bcdec8dd7aa9829a727ffb0205adaa04e185ba
Reviewed-on: https://gerrit.mot.com/2334726
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-15 04:17:53 -05:00
hqjiangy
8b32ae240c TP change config id
TP change config id

Change-Id: Ie31414eeb8d9f868754758b1611720cc336e5a0c
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2334875
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
2022-07-15 03:59:35 -05:00