Commit graph

1,847 commits

Author SHA1 Message Date
liaohj
aae469fe31 touchu:gc7372 tp modify for charger test and gesture
add charger test and gesture driver code.
charger test defaut set false .

Change-Id: If5f5776ea9add55ee768a4800f2a3413aa223262
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2051575
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-26 03:45:46 -05:00
a17671
c9837700df usbnet:USBLAN Super speed plus support
Set the ssp_descriptors as ss_descriptors
in Moto USBLAN driver, otherwise
panic will be triggered when connected
With super speed plus supported PC

panic trace:

configfs-gadget gadget: super-speed-plus config #1: b
 configfs-gadget gadget: usbnet_set_alt intf: 1 alt: 0
 configfs-gadget gadget: do_set_config ep ep2in
 configfs-gadget gadget: config_ep_by_speed ep ep2in
 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
 pstate: 60c00085 (nZCv daIf +PAN +UAO)
 pc : config_ep_by_speed_and_alt+0x90/0x308
 lr : config_ep_by_speed+0x14/0x20
 sp : ffffffc0131f3980
 x29: ffffffc0131f3990 x28: 0000000000000001 
 x27: 0000000000007fff x26: ffffffe13d3f3254 
 x25: ffffff81c041Montana0 x24: ffffff81c0504f00 
 x23: 0000000000000001 x22: ffffff81c07bf480 
 x21: 0000000000000001 x20: ffffff81c0504f00 
 x19: ffffff81c166ca00 x18: ffffffc012931080 
 x17: 0000000000000041 x16: ffffffe13d3e4b0c 
 x15: ffffffe13e0a9197 x14: 0000000000000050 
 x13: 0000000000001e06 x12: 00000000341555ac 
 x11: 00000000fffd4775 x10: 0000000000000000 
 x9 : 0000000000000001 x8 : ffffff81c0504f28 
 x7 : 0000000000000000 x6 : ffffffe13eb2592b 
 x5 : 0000000000000054 x4 : 0000000000000008 
 x3 : 0000000000000000 x2 : ffffff81d11d9e00 
 x1 : ffffff81c0504f00 x0 : ffffff81d11a93c8 
 Call trace:
  config_ep_by_speed_and_alt+0x90/0x308
  config_ep_by_speed+0x14/0x20
  do_set_config+0x70/0x2f8 [moto_f_usbnet]
  usbnet_set_alt+0x30/0x60 [moto_f_usbnet]
  set_config+0x29c/0x56c
  composite_setup+0x40c/0x188c
  android_setup+0x11c/0x180
  dwc3_ep0_set_config+0x548/0x830
  dwc3_ep0_inspect_setup+0x234/0x334
  dwc3_ep0_interrupt+0x98/0x338
  dwc3_process_event_entry+0x144/0x678
  dwc3_process_event_buf+0x68/0x580
  dwc3_bh_work+0x64/0xf8
  process_one_work+0x2cc/0x568
  worker_thread+0x28c/0x518
  kthread+0x160/0x170
  ret_from_fork+0x10/0x18


Change-Id: I68c8309ad81a36c4c40657e62c45a6902a17dde6
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2048201
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-08-24 09:50:48 -05:00
wangyq13
720f1980f5 dlkm/wl2866d: disable avdd1 when device shutdown
Disable avdd1 when device shutdown for peripherals stability and
current leak issue.

Change-Id: I596899cff45f7da15a5339a122b47c7ad4e6fd01
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2045126
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-20 04:03:32 -05:00
tanhua1
50da0f843a backlight: add aw99703 led boost configuration
support lm3697 led boost configuration
1.  boost ovp
2.  boost ocp
3.  default brightness

Change-Id: Ia6254adad216153fdcd1d7f1d40b9eb68d828acd
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2045770
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-19 03:54:13 -05:00
chailu1
910fe173b5 charge: define pps charge min out current
sometimes allow min pps charge dapter out current is not
same as typec_middle_current,so define a variable for
pps charge adapter allow min out current.

Change-Id: I2f303ec5040b0effd451917e16fffe75bc5932b3
Reviewed-on: https://gerrit.mot.com/2045078
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-19 02:19:57 -05:00
chailu1
f5fc959565 charge: add limit main charge flag
add limit main charge fcc flag
avoid limit main charge fcc confusion.

Change-Id: Ib024f3d995760df77c17f710c5938b9f3776c177
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2044854
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-19 00:32:06 -05:00
liuyc20
24f7e469fa DLKM: Update SD77426 driver
fix the DUT crash when insmod sd77426_fg_mmi.ko
splite the calcuate from bmulib.c
the rsense modify to 10

Change-Id: Id6a13b510fa66ebf6d56169a76708f797ef6af7d
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2044031
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-18 21:17:17 -05:00
Yan Zhang
9dd045ad16 : Add panel notification for egis rbs driver
Egis rbs:
Add panel notification for egis rbs driver to reduce nav mode
power consumption.

Change-Id: I9a6b4c5eb14d7b55eb72714521e3a821ddd6304a
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2042170
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-18 03:02:58 -05:00
tanhua1
039f998573 regulator: fix aw37501 gki build error
fix aw37501 gki build error for
xpeng

Change-Id: Ied9009373b6c8cdb33728c1bb41855ddef6cf9b2
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2043617
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-17 03:53:10 -05:00
tanhua1
5af825bc74 regulator: add aw37501 lcd bias power driver
add aw37501 lcd bias power driver
module

Change-Id: Ib9da8057bf0026096809e1f54835778c296c19c1
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2042517
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-16 22:34:25 -05:00
chailu1
94c57f4137 pd: Add rt1715 driver initial version
PD/rt1715 initial sample code from Richtek  

Change-Id: Ide34829746b768c5ed8e7bdd5efd3567d7dd7886
Reviewed-on: https://gerrit.mot.com/2038928
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-08-13 03:55:17 -05:00
wengjun1
ac23a64f12 Cypfq: dlkm: Gc7372 add enable/disable wake irq for single tap
- If we do not set the irq to wakeable, single tap to wake may not wake up the AP,
so add the corresponding change for fix this issue.

Change-Id: Ic44a6339d21c64e2d1ca456bc4e4f021aa11e2e7
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2038950
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-12 00:58:15 -05:00
litong20
f7b5112616 Support sensitivity mode function
TP:
1. Sensitivity mode off
1st finger filter 01, 2nd finger filter 03
C0 17 01 03 

2. Sensitivity mode on
C0 17 00 00


Change-Id: I69f01316a3354650026a37af69ef27f88a5716a6
Reviewed-on: https://gerrit.mot.com/2033528
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-11 22:11:54 -05:00
liuyc20
8a5368ff08 power: introduce sd77426 fuel gauge driver
introduce SD77426 Fuel gauge driver.
add makefile to build it to sd77426_fg_mmi.ko

Change-Id: I12b0084b1b04a91e60ed7fb90e4985da71b98a9a
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2038654
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-11 04:20:10 -05:00
liuyc20
e7dde5a895 power: add rt9426a driver
add rt9426a driver from richtek.
add makefile building driver to rt9426a_fg_mmi.ko

Change-Id: Idca4e40121b4293fd5e12240dc6036a81362e0b0
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2037886
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-11 04:19:58 -05:00
yanyh2
0be96993e6 add glink oem command to get LPD info
Add glink oem command to get LPD info so as to show
the LPD information in AP log.

Change-Id: Ib9ce1fb89d626cde0465179a216028bd8abbdd5f
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2037809
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-08-11 00:45:57 -05:00
wangyq13
d7f95e4ccd focaltech_v2_mmi: keep rst high when config only for IDC
focaltech_v2_mmi:
Keep rst high when gpio config only for IDC, because non-IDC will
reset later, call fts_reset_proc.

Change-Id: If09a888df649f235f298e7fc9c20d40517414ca7
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2037778
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-10 21:45:00 -05:00
wangxs8
fe6a6213c0 mmi_info: Increase the MAX_BL_BUILD_SIG
8450 platform bl build sig num is 17.
xbl_config.git will be lost if MAX_BL_BUILD_SIG isn't increased.

Change-Id: I03f1830bf62d824d6618ef533aaa149aa5991c9b
Signed-off-by: wangxs8 <wangxs8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2037542
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-10 06:45:27 -05:00
wengjun1
96303e9db4 Cypfq: dlkm: Add power off process for ili9882a
- Since now we having display/touch current drain issue when suspend,
so need to set rst pin to low when suspend and add reset process to
change rst pin to high when resume.
- For compatibility with other projects, add macro ILITEK_SUSPEND_PWROFF
to control this function.

Change-Id: Iab7d65adf820ccfdb4c3e50d7a5bdff624097694
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2035322
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-09 05:05:52 -05:00
litong20
d7e576198b Update goodix berlin code to V1.1.21
TP:
Update goodix berlin driver code to V1.1.21.

Change-Id: I56ac06c10f7c3ea9bb3bf936fe8e791f8753740a
Reviewed-on: https://gerrit.mot.com/2027427
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-08-09 00:48:29 -05:00
mahj8
05c923e833 charge: notify mmi-smbcharger-iio while charge pump start working
when charge pump start working, notify mmi-smbcharger-iio side to
not control PD module.

Change-Id: I54c819a24e5f9f10c1dd45f2a87f1233d10465b3
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2029169
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-05 21:33:03 -05:00
mahj8
73d3ecefa0 charging: Add PD charging in DLKM
Add PD charging(include PPS/Fixed) policy in DLKM for single
charge path(only pmic charging)

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

Change-Id: I490a0628372626e43ec3c30af259ab5a97269927
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2029015
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-08-05 20:59:59 -05:00
Konstantin Makariev
bcc68f6a8a pct1812_mmi: firmware upgrade
Added code to support FW upgrade. This code has not been tested yet

Change-Id: I677f0cc6f722515681608581afc9bff650e8a46d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2010238
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2021-08-05 13:37:37 -05:00
Konstantin Makariev
67a83c3bef pct1812_mmi: pct1812ff kernel driver
Kernel driver to support PixArt PCT1812FF touch IC

Change-Id: I017e5b2c34b8c833d1350494a621bf1b20b2f05d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1994779
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2021-08-05 13:37:28 -05:00
wengjun1
13f2a29179 Cypfq: dlkm: Add charger detection feature for ili9882a
- Add ILITEK_CHARGER for control if the charger detection
feature will be used.
- Get the charger status when bootup.

Change-Id: Id4990f4e26051c5e551eb998f2eae8b213513681
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2032569
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-05 00:17:52 -05:00
qianlong
9b51ad3de8 mmi_annotate: support minidump store
Support minidump feature, store annotate mem
into md_ANNOTATE.BIN.

Change-Id: I70cf17c9a965182b7b56ca45c20f64609a81c1af
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2031194
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-04 06:42:39 -05:00
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