Commit graph

1,767 commits

Author SHA1 Message Date
yanyh2
3737af3e2b adjust moto_f_usbnet driver makefile
Adjust the makefile to be compatible with Android S
version.

Change-Id: Ica70b178ae1b84dce47221c9018a4d35ff6c4363
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1992143
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-25 08:23:45 -05:00
litong20
b1b4a16e76 Bring up touchscreen_mmi in Rogue S project.
1. Add DRM_PANEL_EVENT nofification for Andorid S.
2. support touchscreen_mmi and related modules build in kernel-5.10.
3. Use timespec64 instead of timespec function.

Change-Id: If0252015e10bff24c10d54b13df2e0f6aa156a6e
Reviewed-on: https://gerrit.mot.com/1965128
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-25 05:50:36 -05:00
litong20
bfda841cba Bringup stmicro_mmi touch module in kernel-5.10
1. warning: ftsFrame.c: comparison of array 'data' equal to a null
pointer is always false.
2. error: fts_proc.c: incompatible pointer types passing 'const struct file_operations *'
to paramet proc_create(DRIVER_TEST_FILE_NODE, 0777, fts_dir, &fts_driver_test_ops);
3. use timespec64 instead of timespec type.

Change-Id: I46604d6c23b0b69238638f162f390a76ef08eeb6
Reviewed-on: https://gerrit.mot.com/1990708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-25 05:50:33 -05:00
wengjun1
d4b40823fe Cypfg: dlkm: Improve gcore_mmi driver
- Request irq change to thread.
- Resume will use thread instead of queue.
- Fixed irq panic issue.

Change-Id: I9e54944fc276d8554db2b5c23042693923f2e5cc
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1990930
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-24 20:49:07 -05:00
Jiyue Cui
908e2bdb8b Revert "(CR) sx937x:mv ps_get_state to work callback"
This reverts commit c2f744d014225db0494144bcc874be8d0c3dbf13.

Change-Id: I14be7ed2aefdd0522d70f6eb2ac2d7c9e2d8e254
Reviewed-on: https://gerrit.mot.com/1991079
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 09:27:28 -05:00
Jiyue Cui
409613e8c7 Revert "(CR) sx937x: change global_sx937x initialization position"
This reverts commit 3663cf0b4334e402577e63a4a04a2be39c64ffa9.

Change-Id: I4252469c9bd9c0820bbf8c3d6c4fbfd233bb2946
Reviewed-on: https://gerrit.mot.com/1991077
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 09:27:21 -05:00
litong20
b714bb172b Modify the ITO test command
Modify the ITO test command from "A4 04 FF FF"
to "A4 04 FF 01", delete unnecessary tests.

Change-Id: I7884e7503c233b71f7ba342f2386f82f3564898e
Reviewed-on: https://gerrit.mot.com/1991007
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Junpeng Wan <wanjp4@lenovo.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-24 07:38:34 -05:00
cuijy1
40459e9cfd sx937x: change global_sx937x initialization position
sometimes ps_notify_callback will be called
after reg_notifier immediately

at this time global_sx937x is NULL
will cause kernel panic

change global_sx937x initialization position earlier

Change-Id: I2379ea3113563268d36d5ddc0bb2cb5a510b15e7
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1990372
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 01:44:19 -05:00
cuijy1
b43fdec148 sx937x:mv ps_get_state to work callback
ps_notify_callback warnning for block function usb_psy_get_prop()
mv ps_get_state to work callback

Change-Id: I856879ccd0d727660bc92c945445a64b4a03fddb
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1977442
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-23 04:55:46 -05:00
xuwt2
e7b1662f5c qpnp-adaptive-charge: use mmi_charger to contrl battery charging
In QCOM 7350/8350, the kernel doesn't provide pmic-vote to control
battery charging.
the mmi_charger is an intermediate layer that forwards charging control
to ADSP Battmngr from the application layer.
By using USE_MMI_CHARGER macro definition that qpnp-adaptive-charge can be use
mmi_charger's func to control battery charging

Change-Id: I4da0604eabdadfc483143360ef7b7aad174cda47
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1983612
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-06-22 22:18:31 -05:00
yanyh2
6f4a7d98ab add vote mechanism support for mmi_charger
Add vote mechanism support for mmi charger so that
other modules can engage mmi charger interoperation.

Change-Id: I1772007c3acec199bd319601e3486bc7542c663f
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1984291
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-21 01:00:46 -05:00
xuwei9
8b36f90d46 qc3p:limit pulse not beyond max count
Limit Dp/Dm pulse not beyond
max count.
Refer to:https://gerrit.mot.com/#/c/1967489/

Change-Id: I63647bcf78d4fd9e1c737caf3a133cc0741ad4cd
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1985479
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-20 22:16:15 -05:00
litong20
9452937a05 use disable_irq_nosync in interrupt handler
When disable_irq is used in interrupt function, touch driver is blocked.

Call trace:  
        : __switch_to+0x328/0x358
        : __schedule+0x6f8/0x884
        : schedule+0x80/0xb0
        : synchronize_irq+0x7c/0xb8
        : disable_irq+0x70/0x9c
        : fts_disableInterrupt+0x58/0xbc [stmicro_mmi]
        : fts_chip_powercycle+0x64/0x26c [stmicro_mmi]
        : fts_error_event_handler+0x98/0x134 [stmicro_mmi]
        : fts_event_handler+0xa4/0x11c [stmicro_mmi]

Change-Id: Ic84a111aebfa93ea3386fc363105e341efc1cc09
Reviewed-on: https://gerrit.mot.com/1984070
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-18 07:28:04 -05:00
Drew Abbott
c94d7986fc Add force_charging_enabled sysfs
Add missing sysfs to allow Factory to re-enable charging while in
factory mode or when using factory software.

Change-Id: If39b3d5f56495b7d89445629bc1541f0b22a296a
Reviewed-on: https://gerrit.mot.com/1949637
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-18 03:13:05 -05:00
Drew Abbott
5fc33ebcee Add force_charger_suspend sysfs
Add missing sysfs to allow Factory to suspend charging during testing.

Change-Id: I21a50cc1ad9acc320c84b082804aa6379f0726a3
Reviewed-on: https://gerrit.mot.com/1936873
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-18 03:10:16 -05:00
chailu1
30246fbd4b CP: add cp switch enable detect
Sometime charge pump charge eanble read is true
but charge pump not switching,So add read switching
judge, will auto recovery if no switch

Porting from https://gerrit.mot.com/#/c/1968879/

Change-Id: Iba23bfcd7db9cf137e4687b188655a3e50ed2fb4
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1982429
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-06-18 01:26:32 -05:00
chailu1
bf61e3a4ff CP: force disable CP while plug out usb cable
SC8551A charge pump will reverse voltage to usbC while plug
out usb cable, So force disable sc8551 to prevent reverse
after quit charge policy.

Porting from https://gerrit.mot.com/#/c/1945421/

Change-Id: Iebfcf055850da29e40e37bd8220ed5d99581cbcb
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1982527
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-06-18 01:26:24 -05:00
chailu1
e7288c181a CP:Add switch enable detect function
charge pump driver
add charge pump switch detect function

Porting from https://gerrit.mot.com/#/c/1968869/

Change-Id: I0210e3bc0ee48d8e27b24c2243a7c5e3426a927c
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1982428
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-06-18 01:25:15 -05:00
chailu1
215e85c066 cp: config sc8549 fault bit
Config sc8549 fault bit to match
charge policy check.

Change-Id: If9634f300a37d2a0b59e47e7dde084ce75377b84
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1982427
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-06-18 01:25:03 -05:00
litong20
74ec6c7a60 Fix the build error on denver project.
Error:
nt36xxx_fw_update.c:23: Panel notifier undefined!!!
[-W#warnings]\n' error, forbidden warning: touchscreen_mmi.h:145

Change-Id: Ibdae0b030dce55f57cdf3da04c09c8f0f9999dbf
Reviewed-on: https://gerrit.mot.com/1983455
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-17 21:56:21 -05:00
yanyh2
c5311dbe8d add charger state sync interface
Do charger state sync when boot completed in case missing
some charger state change.

Change-Id: Iec128382d5edb98cda47752d07e606a6b66316be
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1982792
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-06-17 07:42:11 -05:00
yanyh2
5aa73a35c9 Revert "(CR): send charge rate uevent when power supply changes"
As the reverted patch may cause panic for race resource batt_uenvp
when it accesses batt_uenvp which was just freed in heartbeat work.

Mot-CRs-fixed: (CR)

This reverts commit 715a9d18d8fa6b7acfc9540f5e3df2c4332baf28.

Change-Id: I07f3bf2cba6f30b345988231d0ee8ea18da27e4f
Reviewed-on: https://gerrit.mot.com/1982785
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-06-17 07:42:00 -05:00
litong20
75b0a4d487 Need to update fw on resume for zero-flash touch IC.
The kernel does not have permission to access the /data/vendor
partition, so send the update firmware notify to touchUpg service
on resume for zero-flash touch IC.

avc: denied { search } for name="param" dev="dm-6" ino=275
scontext=u:r:kernel:s0 tcontext=u:object_r:param_data_file:s0
tclass=dir permissive=0

Change-Id: I5d5c9f39bab25a8d3377e0475e79a0411d93b56b
Reviewed-on: https://gerrit.mot.com/1979786
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2021-06-17 02:30:53 -05:00
litong20
4ddfc550ae novatek: Support parameter upgrade method
Support to upgrade TP firmware through the
Parameter APK.

Change-Id: I370e175db38ab7f5de3aa4cc5aabae7ea2f219c6
Reviewed-on: https://gerrit.mot.com/1979783
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2021-06-17 02:30:42 -05:00
zhuangnk1
5f718ceebc st21nfc:support build in kernel-5.10
Support st21nfc ko build in kernel-5.10
for rogue bring up

Change-Id: Ib55455435f68170db931cf779e3d8fe2ae25a63c
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1966273
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-06-16 21:32:36 -05:00
xuwei9
1c1bf99fc9 qc3p:Set AICL thres at qc3p pmic charging
At hvdcp more than 15w project.
AICL threshold will set to higher than 5V
which result pmic charging current unstable.

Change-Id: If1a0e9174dbaf5df656442bbdd1247b231636c48
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1980875
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-16 00:34:45 -05:00
chailu1
08626d5e9a dlkm: add enable CP api
add enable CP api for ESR.
disable all CP before ESR and switch to PMIC
enable all CP after ESR

Porting from (CR)

Change-Id: Ie2eafab9002b85982b359124c007dc939642fe14
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1978514
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2021-06-15 04:23:27 -05:00
Yan Zhang
b1f8698429 add power ctrl for fpc driver
Control gpio switch and regulator of fingerprint according to
the configuration of device node.
1. Use gpio switch if fp-gpio-ven is defined and valid.
2 .Use regulator control if rgltr-ctrl-support is defined and relevant
    vdd, voltage range is valid.

Change-Id: Ia5e71c08306835e4d93552dbc037beb78fca39db
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971796
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-15 02:06:11 -05:00
Yan Zhang
a38b3424f3 add power ctrl for goodix kernel driver
Control gpio switch and regulator of fingerprint according to
the configuration of device node.
1. Use gpio switch if fp-gpio-ven is defined and valid.
2 .Use regulator control if "rgltr-ctrl-support" is defined and relevant
    "fp,vdd" and voltage range is valid.


Change-Id: I40acd3abdba285a41f258d51b62f92a59c6796c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971397
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-15 02:05:55 -05:00
wangshuo18
83117789d0 aw8695: move camera start entry before the vibrator timer
-In the current logic,the camera process is after setting the vibrator timer.
The camera will take some time,which cause the vibration duration to be shorter.
Especially when we use launch_lens to move lens step-by-step.
-So move camera process before setting vibrator timer.

Change-Id: Ib8115444015f6160c25177e9065aa0f6a2fcede3
Signed-off-by: wangshuo18 <wangshuo18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1976296
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Qiang Guo <guoq8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-14 20:50:02 -05:00
wengjun1
f572e51181 dlkm: Touch gc7372 bringup
- Add support for 2nd source galaxy core gc7372.
- Add support for touch class for moto.
- Need to be improverd since this is initial code.

Change-Id: Ib75619df4f97be6a4ec2c5f3df8714cbac341fc1
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1974591
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-06-11 02:27:03 -05:00
dengwei1
73150b3cd8 pstar: vibrator add moto fw
vibrator
add moto fw

Change-Id: I7671e8b9fc8eee5e65c5af6287d44ecc7c4d4e5d
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1977359
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-06-11 01:37:33 -05:00
chenglong1
f7dec3bb51 Fix artificial vibrating pattern caused AF always on.
When vibrating with pattern [0,200,0,50], the vibrating will be started with
200ms duration first, when 200ms timeout, vibrator will be stopped with
duration 50ms which will not be considered as long vibrating, then AF will
not be turned off after that. This change is for fixing above issue, though
we haven't got evidence pointing to above metioned vibrating pattern is user
really encounted issue.

Change-Id: Iadc8ff7b9e00a11dc1d3e89b822e6cb8adb76116
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1973075
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-09 01:28:13 -05:00
chailu1
1558cd9184 charge: Add thermal interface
charge/thermal
add thermal control interface for charge

Change-Id: I748f77bd6b08fa8b240ee97e1586704b6338fb66
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1972226
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-08 21:55:41 -05:00
xuwei9
91fe461a72 qc3p:clear sm work when vbus off
Clear SM work when vbus off
at qc3p charging

Change-Id: Icf5fd619c70ac49869661af846db6bee9e45a529
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1973745
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-08 21:45:48 -05:00
litong20
38f8cc8aae Add sense off process to enter the idle process.
Add sense off process berfore sense on to avoid
the problem that tp firmware cannot exit the
gesture mode normally.

Change-Id: Ibb7a8572c168f8c4427c868fd8075ea086138243
Reviewed-on: https://gerrit.mot.com/1973335
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-08 04:13:17 -05:00
chailu1
a358f8bae4 CP: add qc3p charge policy
qc3p and  charge pump
add qc3p charge policy

Change-Id: I3af6c3214a88b5ad327f10df1f6afa639d7bfc5b
Reviewed-on: https://gerrit.mot.com/1967489
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-08 03:29:20 -05:00
chailu1
b657c809a6 CP: Reorganize charge pump
move common code from pps charge policy file
to mmi charge core file

Change-Id: I975b21e1d2c30c1ffd5b3939db1dbbefb295ffe6
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967488
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-08 03:23:50 -05:00
yanyh2
2286350930 Print ADSP battery manager log if charging changes
1. Print bm log when qti charger init complete
2. Print bm log when battery status changes
3. Print bm log when charger status changes

Change-Id: Iadbb43908094c1dbe7e91e32dc1c94c1f23d4ca1
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971298
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-08 02:24:00 -05:00
yanyh2
d9aca754c7 Create bm_adsp_ulog module
1. Provide debugfs interface to collect battery manager ADSP log  in AP side.
2. Provide debugfs interfaces to configure log level and category for log mask.
3. Provide exported APIs for other Moto battery charger DLKM to get battery
charger ADSP log and output to Kernel log or IPC logging.

Change-Id: I93cb18542414b21084a09218366d6d675beeb807
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971297
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-08 02:23:38 -05:00
xuwei9
45de9245da qc3p:config 33W charging current
Config 33W charging current
per project requirement.

Change-Id: I01e2cd078ad2739a764a9a726512437666195cfe
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1972960
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-08 00:48:41 -05:00
cuijy1
f23823a376 sx937x:fix wrong POWER_SUPPLY_ONLINE define
fix wrong POWER_SUPPLY_ONLINE define in Kbuild
change to CONFIG_SX937X_POWER_SUPPLY_ONLINE

Change-Id: If716625a7ad9446debc6ad5439674a08fd34a12c
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1972006
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-07 21:49:13 -05:00
wengjun1
b8bc7593ff Cyprus: dlkm: ili9882 driver improvement
- Since the uncertainty of the loading time of the display
module when using gki, so change the logic of read panel
name  in touch module.

Change-Id: I82d519bb96a8c82b1eff7044949ab270263a648c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1956524
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-06 21:39:11 -05:00
wangyq13
6a11390b68 input: focaltech_v2_mmi: add ft3519 upgrade function
focaltech_v2_mmi:
Add ft3519 firmware upgrade function.

Change-Id: I3a5935a38f36b202c4770d8ae7ca432379187bac
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1970307
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
2021-06-04 05:05:14 -05:00
litong20
0af265a862 Solve the build error: MODULE_IMPORT_NS missing
TP
MODULE_IMPORT_NS declaration specifier missing, defaulting
to 'int'

Change-Id: Ibe478fff1f66e478f6ec198c0554f2433ddfdcde
Reviewed-on: https://gerrit.mot.com/1969007
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 05:24:23 -05:00
zhangh12
57dceea1db pstar: sar: support multi parameters for different panels
the panel name can be captured from the bootargs, then define the correspoding
regs in dts of sensor.

Change-Id: Ia25da8afad4fd6c710a3f8d62333350278cdfb78
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1967050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-03 02:22:24 -05:00
wangshuo18
f8fe0eaf11 aw8695: optimize vibrator&camera resonance issue
-move camera start interface into aw8695_haptic_play_go to cover all
vibratoring cases
-add camera func called in aw8695_haptic_get_f0,to handle resonance
during phone boot case

Change-Id: I17e39debfabca1a812ac2728f10714eff08bdf9d
Signed-off-by: wangshuo18 <wangshuo18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967255
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Zilong Zhang <zhangzl7@lenovo.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-06-03 02:03:45 -05:00
litong20
a5632a94c1 Stmicro: Support parameter upgrade method
TP:
Support to upgrade TP firmware through the
Parameter APK.

Change-Id: I62fa7f7af03f6e850231a36e1d8a0f3911c92ee9
Reviewed-on: https://gerrit.mot.com/1966402
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 00:33:29 -05:00
litong20
51573bcad9 Add flash mode sysfs node in touchscreen mmi
TP:
Add flash mode sysfs node in touchscreen mmi
if flash_mode == 1, read firmware from /data/vendor/param/touch
else follow the previous process.

Change-Id: I17add2b289534533f6c87e4c321847f682cc02b1
Reviewed-on: https://gerrit.mot.com/1853339
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 00:33:07 -05:00
wangyq13
01ff483bf3 dlkm: lm3697: free resouces when init failed
- free resouces when init failed
- remove other ic type codes, only keep lm3697

Change-Id: Idfcbaba3f960906f947f22b8b30b30c0204c2dcd
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967063
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-02 01:14:17 -05:00