Commit graph

1,821 commits

Author SHA1 Message Date
litong20
6f79fdf2ff Support touch corner/edge suppression function.
TP:
Command: C0 1F Byte[0] Byte[1]
Byte[0] Device posture:
	0x00 portrait(Default)
        0x01 90 degrees right rotation
        0x02 90 degrees left rotation
Byte[1] Suppression area
	0x00 normal (0 pixel)(Default)
        0x01 Small area suppression (R-200 quadrant Pixel)
        0x02 Larger area suppression (R-250 quadrant Pixel)

Change-Id: I30334a49740a5fb36c4ff2108c93c059300a7484
Reviewed-on: https://gerrit.mot.com/2030537
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
2021-08-04 01:13:51 -05:00
wengjun1
6c02ec99b1 Cypfq: dlkm: Support single tap feature for gc7372
- Add support single tap feature for gcore_mmi.
- Add sensor class support for gcore_mmi.

Change-Id: I4b1680ccbf12c41356a82fab7e35c245c3b1adc4
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2030592
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-04 00:38:29 -05:00
chailu1
f72ce3acdc cp: Remove charge rate, age, cycle
Moto future products will only show turbo charge for
quick charge. got charge rate only at main charge side.

calculate charge age and cycle also at main charge side.

Change-Id: Ib18db5ccf8665a21e55d53551fa2f686118ace25
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2031246
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
2021-08-03 22:06:12 -05:00
wengjun1
af454c0671 Cypfq: dlkm: Change read vendor id process
- When upgrading firmware, do not read touch vendor id and
return at the beginning of function.

Change-Id: I85e9985c03eb149c67c2281f2295e1a6f176e5b4
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2031559
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-03 05:19:11 -05:00
cuijy1
37403a3bff hall driver bring up
add hall pen detect ko
add hall folio detect ko

Change-Id: Idd325b51487f3d9313c56034adadf4169094f0e6
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2025362
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-08-03 02:05:59 -05:00
qianlong
8d2b43c6dc watchdogtest: support build in kernel-5.10
Modify "defined" to "IS_ENABLED" fix
build can't find CONFIG_QCOM_WDT_CORE.

Change-Id: Ic489e3f0baab16c1b16cb662bda90b4513a63398
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2026594
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-08-02 22:54:18 -05:00
wengjun1
d0ec532368 Cypfq: dlkm: Improve gcore_mmi driver
- Add mutex for read touch firmware version.
- When upgrading firmware, do not read touch firmware version.

Change-Id: I25727899deb0ebb395379d4bdb0330075864044d
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2030589
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-02 22:37:09 -05:00
wengjun1
60decaa7d5 Cypfq: dlkm: Add GKI module dir definition
- Add GKI_OBJ_MODULE_DIR definition since on user build
the sensor_class.ko may not be found.
- Add dependency with sensor_class.ko.

Change-Id: I542f28633dfa52a283f9b363ad273b3f9e9385d9
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2028658
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-01 20:50:43 -05:00
mahj8
39ba05c514 charging: modify heartbeat cycle to 100s
There is a case that will make the system suspend failing for
mmi,charger wakelock and last for several minutes.
The reason is that the system suspend has the same 60s request
intervals as mmi charger heartbeat delay work, which will request
mmi,charger wakelock.

To avoid this two task run into resonating state, it's feasible to
change the mmi charger heartbeat interval to 100s.

Change-Id: Ic284423f3178caca485e857c7f367da19452066e
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2026220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-30 06:00:38 -05:00
yanyh2
5c3ede1352 remove the mmi_info module dependency
No mmi_info module dependency for moto_f_usbnet module
correct the previous mistake.

Change-Id: I1eba4fe5f67d5156e52fa5ca96babaca3044e51e
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2003160
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-07-28 06:41:55 -05:00
wengjun1
55917fa672 dlkm: bo: Support single tap feature for ili9882_mmi
- Add support single tap feature for ili9882_mmi.
- Resume will use workqueue.

Change-Id: I65c4685e09650fe0f2ba92526ea01a8acf4c0af7
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1970382
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-27 22:08:40 -05:00
chailu1
465d5d73b5 charger: Rename sc8549 to cp
For charge pump commen interface. use cp
name replace sc8549.

Change-Id: I7329b7379b7489e223b2daa75385722f81bc3f58
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2024927
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-07-27 21:49:53 -05:00
dengwei1
6b8fa1e842 xpeng: input touch add game api
input touch
add game api

Change-Id: Ic972da711f0272e5a101fd3de4369c49fbe9504a
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2020802
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-07-26 04:33:12 -05:00
xuwei9
f3ee031477 charger:adaptive charger tolerance optimization
Adaptive charger tolerance optimization
from 1 to 2 for more stable state switching.

Change-Id: I60a0c5501605ac060919d340a07b2f54faa0907c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2023609
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-07-25 22:43:38 -05:00
chengql2
61f8bb0bb7 goodix_fod_mmi.ko: Update Makefile to compat kernel 5.10
motorola/kernel/modules/drivers/input/misc/goodix_fod_mmi/Makefile:
updated to compat kernel 5.10

For Rogue, on SM8450, with kernel 5.10 based, kernel modules should use
the new version of Makefile.

Change-Id: I5094768f8d86179b981c07a1a15710555d3bad83
Signed-off-by: chengql2 <chengql2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2021379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Shunde Jiang <jiangsd2@motorola.com>
Submit-Approved: Jira Key
2021-07-22 06:31:58 -05:00
litong20
6493ee9055 Use bi_bootmode instead of mmi_bl_bootmode.
In Android S-8450, the bootconfig feature begins enable.
So that androidboot.bootreason canot be found in the cmdline.
And compatibility has been done in mmi_info.

Change-Id: I96b3d9ed988416c640c0b115cdad9fe1fd11a34b
Reviewed-on: https://gerrit.mot.com/2020001
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-07-22 03:23:27 -05:00
litong20
6e3e921cf0 When find drm panel successfully, set panel_status to 0
After successfully finding the drm panel, set panel_status to 0,
otherwise it will re-schedule work and continue to look for drm panel.


Change-Id: I121d24a66d518b75b73d130b18394c4d7ffead11
Reviewed-on: https://gerrit.mot.com/2021004
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-07-22 01:25:04 -05:00
daiss1
986fcec74a FPS: Support multi-fingerprint function.
Support multi-fingerprint function.
Compatible with android S compilation method.

Change-Id: I051838c9bbfadf2de488816169425ea11bb56d68
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2019759
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiuliang Cheng <chengql2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-07-21 22:21:55 -05:00
litong20
ac7db4fdec put register_panel_notifier into ts_mmi_worker_func.
When there is no need to find the active panel, that is,
the panel_status is always 0, register panel notifier normally.

Change-Id: I2aef34a1fd7ca310bf1fc6a4d9501413208d14c9
Reviewed-on: https://gerrit.mot.com/2019893
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-07-21 01:29:08 -05:00
litong20
988952bcc6 Delayed active panel detection
TP:
When the touchscreen modules loads faster than display,
the acive panel may not be found. So we look for the
active panel again through delay work.

Change-Id: Ife617c4cf19035120c5f381bb6da8f28346a9f34
Reviewed-on: https://gerrit.mot.com/2013538
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2021-07-20 21:23:18 -05:00
tanhua1
5981ab07e5 backlight: fix lm3697 probe fail panic
[    3.228313]  ti_lmu_backlight_probe+0x63c/0x6e4 [leds_lm3697]
[    3.228321]  platform_drv_probe+0xac/0xf0
[    3.228326]  really_probe+0x260/0x660
[    3.228330]  driver_probe_device+0x64/0x100
[    3.228335]  device_driver_attach+0x6c/0xac
[    3.228339]  __driver_attach+0xdc/0x184
[    3.228344]  bus_for_each_dev+0x9c/0x108
[    3.228348]  driver_attach+0x24/0x30
[    3.228352]  bus_add_driver+0x100/0x1e0
[    3.228357]  driver_register+0x78/0x114
[    3.228361]  __platform_driver_register+0x44/0x50
[    3.228370]  ti_lmu_probe+0x18c/0x1e4 [leds_lm3697]
[    3.228377]  i2c_device_probe+0x260/0x308

Change-Id: I470205dc144ef3219bdf4000ca197f9221f14f21
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2015311
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
2021-07-19 01:27:39 -05:00
tanhua1
ee2498316b backlight: add lm3697 led boost configuration
support lm3697 led boost configuration
1.  boost ovp
2.  boost freq

Change-Id: Id7914c7e6f65c20088f01bb3e3b179d16dce6e37
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2014892
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-07-19 01:27:15 -05:00
yanyh2
d365f54dd6 use bi_bootmode to query the bootmode
As the bootmode cannot be fetched from bootarg in
SM8450 platform, so use common API bi_bootmode to
get the bootmode to support all platforms.

Change-Id: I16e9955d92649e84d14ee95e34c489faa2722c62
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2014700
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-07-16 00:31:04 -05:00
wengjun1
a398202268 Cypfg: dlkm: Improve gcore_mmi driver
- Change ioctl to read for fix permission issue.
- Change mp test firmware.

Change-Id: I316277b08add633d39641854bb3936ee11beaca5
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2008123
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-13 21:40:22 -05:00
a7301c
8c03fb9ef3 fixup! (CR): mmi_info: read all from bootconfig
Signed-off-by: a7301c <a7301c@motorola.com>
Change-Id: I187592f939fa9bf453bd4018b3441da07186a4d0
Reviewed-on: https://gerrit.mot.com/2011370
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Ling Jin <lingjin@motorola.com>
2021-07-13 10:46:27 -05:00
qianlong
1f1f1b568d mmi_info: read all from bootconfig
After 8450 rebased to qcom FC, the bootconfig feature begins enable.
So that some androidboot.* canot be found in the cmdline,
and case can not read it.

When bootconfig enabled, read it from /proc/bootconifg file.

Change-Id: I77b8e023c1fbb85ee941663878823c26d357df2e
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2010969
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-07-13 07:26:00 -05:00
tanhua1
b720cdf2d7 backlight: add lm3697 hbm current mode configuration
Support lm3697 hbm current mode configuration.
Default is 20mA, if any project support hbm,
add current-mode with current level in dtsi.

Change-Id: I5f4afec88b669104ca872048186e23f8ff8194a8
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2007975
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-07-13 04:45:26 -05:00
qianlong
67d1b25646 mmi_info: read bootreason from bootconfig
After 8450 rebased to qcom FC, the bootconfig feature begins enable.
So that androidboot.bootreason canot be found in the cmdline,
and case read bootinf is NULL.

When bootconfig enabled, read it from /proc/bootconifg file.

Change-Id: I9fe0889518e6c95dba27a8ab1db0b3981c18c58e
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2009558
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-07-12 21:34:35 -05:00
xizx
40ea1a04ff utags: reads bootdevice name from bootconfig
After 8450 rebased to qcom FC, the bootconfig feature begins enable.
So that androidboot.bootdevice cannot be found in the cmdline,
and cause utags module to load failure.

When bootdevice cannot be found in the cmdline, fallback to read
it from /proc/bootconfig file.

Change-Id: I4324fcbc0345b246308bae95af03e0d99eaff399
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2008778
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-07-12 00:49:51 -05:00
xuwt2
cd073b1eef qpnp_adaptive_charge: Add adap_reinit
In 8350/7325 platform, batt_psy needs to wait for
Glink module to complete,
therefore, the qpnp_adaptive_charger module init will faile
due to batt_psy not ready.
Add adap_reinit_work to rerun module init when it failed by
batt_psy not ready.

Change-Id: Ib73aa4dcbe9e069c36ec4Montana415601ab6991e795
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2008716
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-07-10 20:13:16 -05:00
chailu1
dc475e8c19 charge: resolve sc85xx charge icon dont disappear
There are 2 cases
1.SC85XX reverse voltage from battery to VBUS through sc8551
mosfet parasitic diode. this case vbus voltage is less than battery
voltage

2. SC85XX reverse voltae from battery to VBUS through sc8551 working
mosfet. this case vbus is about 2:1 battery voltage

Refer to https://gerrit.mot.com/#/c/1852409/

Change-Id: Icc80bd63f20f27f294100aabeae3267544ba0fc5
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2007936
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
2021-07-09 04:25:49 -05:00
chailu1
e15fbca94d cp: improve 8549 read status register
While update status register remove "if" judge. so the
relust could is true or false. otherwise only true.

Change-Id: Ie4961fd19c1eeaf10308a5b518020d3ee697d2d5
Reviewed-on: https://gerrit.mot.com/2007602
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-09 04:25:47 -05:00
mahj8
58898c9e98 modules: add leds-indicator-pwm.c driver
add leds-indicator-pwm.c driver to control pm6375 gpio8
for charging leds

Change-Id: Ie14136d11016185eb4a0eb3e816f6e6f5a742f1a
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2007937
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-09 04:14:21 -05:00
xuwei9
76e4591f92 parallel:init thermal parameter at high temp
At high temp conditon. thermal level was 4 at begining.
the thermal parameter was not initialized.

Change-Id: I787cfeb6c2ab1695a90496ba0c08e0ce4c17fffc
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2006952
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-07-08 21:17:18 -05:00
zhuangnk1
7df3fd261b Rogue PRC ST54x driver
Add ST54x driver for Rogue PRC ese
bring up

Change-Id: I8b49bc09ce96eaf3fdb18bc8398629cba1b76d23
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1993975
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-07-07 05:00:00 -05:00
litong20
17880786ac Close the calibration operation after fwupdate.
TP:
After the touch fwupate, if the config id is different
from before, the calibration operation will be tiggered.
But try not to add calibration operations in touch driver.

Change-Id: Id82c331c4617a03cb2351987380eae96d837fb7e
Reviewed-on: https://gerrit.mot.com/2002079
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-07-06 23:09:07 -05:00
yanyh2
e02e59d144 Modify bm ulog and mmi chargers for Android S
Move the charger driver from mmi charger to be compatible with
Android S build.
Adjust the build make file to be compatible with Android S build.

Change-Id: I67969e25b691f9dfe64b43f65e42ad6e0545ebb6
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2003174
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-07-06 07:11:18 -05:00
wangyq13
f67f735d4e focaltech_v2_mmi: disable focaltech driver drm notify
- disable focaltech driver drm nofity, use touchscreen mmi drm notify
- reduce tp reset time, if tp is invalid, retry
- add pintrl function for touchscreen mmi, to reset touch ic

Change-Id: I2a9c6fdb806905d2e55cee6aa1908941c1c4242f
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2003119
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-06 02:59:47 -05:00
chailu1
1125771201 ffc: add ffc featrue
Flash fast charge
At different battery temperature zones, use different
CV and charge iterm.

porting from https://gerrit.mot.com/#/c/1551505/

Change-Id: I8558b47f771b6785af0f7d75ea9093fc5af17c54
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2001406
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
2021-07-04 22:45:14 -05:00
chailu1
9a3090966e CP: Remove unuseful code
charge pump
Remove unuseful code

Change-Id: Id27b93e548f41c182e57011e1656d402154ccf8f
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2001057
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
2021-07-04 22:06:28 -05:00
xuwei9
b51b72177b qc3p:workaroud qc3p shalcomm adapter
Shalcomm qc3p adater have probability stop response.
So kernel rerun APSD twice and operat qpqm regulator
So skip first APSD for increasing voltage.

Change-Id: I0d821081758439bbf27c2098dde0ef8bce5ba8f3
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2001546
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-07-04 01:48:40 -05:00
litong20
eba6280929 Modify the touchscreen report rate
1. When the interpolation is disabled, the report rate is 240Hz;
2. When the interpolation is disabled, and the refresh rate is 144Hz,
the report rate is 576Hz, else the report rate is 480Hz.

Change-Id: I863154a271d5968aab36d0bc3366f4597a30808d
Reviewed-on: https://gerrit.mot.com/2001030
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-07-03 05:08:24 -05:00
chailu1
017a307c61 CP: Use CP read battery voltage
charge pump policy read battery voltage using CP read
voltage,because
1. some product PMIC read battery voltage is not battery
cell but charge pump read battery cell voltage.
2. charge pump read battery voltage realtime is better than
PMIC

also refer to mtk solution https://gerrit.mot.com/#/c/1903322/

Change-Id: I6aa945eabe1527356b78ef53309369ee3c1d5df4
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1982444
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
2021-07-02 04:36:17 -05:00
Ravi Vembu
bc98ea156c slg5bm43670: Update slg5bm43670 for Kernel 5.10
Fix the build error when making the slg5bm43670.ko. Also
Kernel 5.10 removed the regulator locking and locking is
implicit around the notifier call chain. Hence remove it for
kernel 5.10 and beyond.

Change-Id: I475868ae49f8fbbd7514fa43df41a3cd78d138ae
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1975249
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jian Luan <jamesluan@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-06-30 17:27:51 -05:00
xuwei9
0f97c8d407 QC3P:add afvc compensation voltage
AFVC enable project,add afvc compensation
voltage for qc3p policy algorithm.

Change-Id: I91b9fcf636c75e2664de04962caa8dd0cdf84bf4
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1997670
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-30 04:09:46 -05:00
xuwei9
09471c3c26 PD:add afvc compensation voltage
AFVC enable project,add afvc compensation
voltage for pd policy algorithm.

Change-Id: I0b108a911f2b4ba751e87200047b0a30eceeda0c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1997668
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-30 04:09:25 -05:00
dengwei1
1d9a40e2e1 pstar: input touch update edge set
input touch
update edge set

Change-Id: I50f70348cef44d13213dddaee962b785d24ceced
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1997222
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-06-30 03:16:13 -05:00
dengwei1
84fa39e6b8 pstar: input touch add edge support
input touch
add edge support

Change-Id: I7b4ce8fbbb3e657a7e96eb73337e039c9fc3ef0a
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1995174
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-29 04:25:03 -05:00
wangyq13
b628d65b32 focaltech_v2_mmi: don't set gesture_mode enable as default
focaltech_v2_mmi:
Don't set gesture_mode enable as default. It should get value
from upper layer.

Change-Id: I0d949ae241296b18380b1a9bbb1a431be3944ab2
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1995507
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-29 03:37:08 -05:00
yanyh2
8f1226f4a5 Adjust the heartbeat time to 100s in discharging state
There is a case that will make the system suspend failing for
mmi,charger wakelock and last for several minutes.
The reason is that the system suspend has the same 60s request
intervals as mmi charger heartbeat delay work, which will request
mmi,charger wakelock.

To avoid this two task run into resonating state, it's feasible to
change the mmi charger heartbeat interval to 100s.

Change-Id: Ie076e5a3657a6c67ea7e9fdcefd3ef897bc81d02
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1995180
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-29 01:41:38 -05:00