Commit graph

1,857 commits

Author SHA1 Message Date
mahj8
237792c95f charging: add SGM4154x charger basic driver
add SGM4154x charger IC basic driver
get from vendor

Change-Id: Ief05dfc4c7fac5a2c25b346449558b91555caf8f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2041011
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-31 02:11:29 -05:00
Konstantin Makariev
1bb8ed47e5 pct1812_mmi: self-test and sysfs interfaces
Added self-test capabilities: full raw data, SNR and draw line.
Added sysfs interfaces to support IC version and firmware update

Change-Id: I93359b60354e728853a7e43a3ca2fb71c1953987
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2041728
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-08-30 18:06:13 -05:00
liuyc20
5b16a0eba0 power: add detect sd77624 ic hw
if detect sd77426 hw fail then exit this driver.
To Compatible with other FG drivers.

Change-Id: I7a27a403965f9df9a350481a2107bf93cfa7f91c
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2054354
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-30 07:01:33 -05:00
litong20
50d5a673b2 goodix_brl_mmi: Add mmi status check.
TP:
1. Add "mmi,status" check to goodix driver's probe.
2. Add touch pinctrl settings.

Change-Id: I34581d199a80c4e03cd0e94332ca5cd8ad6d87e4
Reviewed-on: https://gerrit.mot.com/2053118
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-08-30 02:41:46 -05:00
litong20
9432419679 Modify the goodix driver code format
TP:
Delete the symbol ^M at the end of each line of the driver code.

Change-Id: Icf5b64b01ae3c27c1d942e0d0d02056f32cb41c8
Reviewed-on: https://gerrit.mot.com/2038562
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-08-30 02:41:38 -05:00
Yan Zhang
14e37d1dc7 Update the poll mask when polling is aborted by hal
Egis:
Update the poll mask when polling is aborted by hal to support polling
wait forever. do not impact previous 30ms polling mechanism.

Change-Id: I1f6a2adb38f0282e944dde60539cd51179f5c733
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053956
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-30 02:09:58 -05:00
Jichao Zou
ac31279ac7 mmi_sys_temp:fix compilation error.
motorola/kernel/modules/drivers/misc/mmi_sys_temp/mmi_sys_temp.c:118:23: error: implicit declaration of function 'compat_ptr' [-Werror,-Wimplicit-function-declaration]
        arg = (unsigned long)compat_ptr(arg);

Change-Id: Ifba590fd36a743e7d62df81c82fcc4839b7c816a
Signed-off-by: Jichao Zou <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053149
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-08-30 00:37:58 -05:00
liuyc20
39f07e421e power: update sd77624_fg driver
-Standard Code Writing Standard
-Remove unnecessary code
-Optimize driver loading time

Change-Id: I98ae5a17572cf1a12d9d20d85b671e056856a7da
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2049092
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-27 05:20:07 -05:00
xuwt2
6fc618d1a6 qti_glink_charger: Add sysfs node for factory wireless testing
1, USB_SUSPEND
2, WLS_EN
3, WLS_VOLT_MAX
4, WLS_CURR_MAX

Change-Id: I9d7f724657733cb158279cee175cf83af3813a70
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2051640
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-08-27 02:41:51 -05:00
chailu1
aa2cd50868 charge:Enable aicl at factory boot mode
If disable pm7250b aicl will cause a issue: battery voltage
will reverse to vbus side after remove usb cable.
so add a flag to enalbe aicl for some products.

Change-Id: Ide22d43546ffe8ad97b8179aede243f71fe1d246
Reviewed-on: https://gerrit.mot.com/2052603
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 22:13:03 -05:00
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