Commit graph

2,098 commits

Author SHA1 Message Date
wuwl10
3ca68e2cf9 dlkm: sec_nfc: add samsung nfc driver
Rhode 5G + will use samsung rn4v NFC controller.
Add sec driver for it

Change-Id: I5c88e07953fec45b458d47b803a3afd119ee9f10
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2131748
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Xu Du <duxu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-01 20:44:08 -06:00
liuyc20
af6293f942 dlkm: sd77426 driver add soh api
- add soh api, init age=-1/cycle_count=-1
- modify chinese comment to english

Change-Id: I321b3149b2a3682c344fe4efe1f5a6bbb2201725
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2057831
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-01 20:11:58 -06:00
liuyc20
6308309340 power: cw2217 add ui_soc feature
we can modify ui_full to adjust  showing 100% limit
The default ui_full is 100, that is hard word.
config it to dts file,that can suit for muti-project

Change-Id: I6aa2e7567e2ed91a8ac1c24be53c5aa471a4c7e7
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2124577
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-01 20:10:53 -06:00
wangyq13
9d79305032 goodix_v1510_mmi: check if panel is available
- Check if panel is available, if not, don't probe, save boot time
- Set avdd to 3v, same as other touch driver.

Change-Id: I34711276c2e5efcf1acc9421db2e347d95f2b41b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2131131
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-01 01:28:36 -06:00
wangyq13
cac6221ab1 focaltech_v2_mmi: check if panel is available
focaltech_v2_mmi:
Check if panel is available, if not, don't probe, save boot time
and don't disturb other touch driver operation.

Change-Id: Ib4db6f77fc458970dcc42fd7460ee3a800e3ff47
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2131110
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-01 01:28:28 -06:00
mahj8
177bfbe63a bms: do battery power supply change when fg update data
fg data can't update to user space timely, because fg driver only power
supply change the bms psy. So need to change to battery psy to update
data.

Change-Id: Idd39efd3790b6e80b473a8048827663d5a61851d
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2131783
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-01 01:12:21 -06:00
liuyc20
0df380501b Power: remove "\n" about mmi_discrete showing factory test node
"\n" is invalid char for
test case.

Change-Id: If15673f6a229ab9f56ae3c97fa676ef8c90a2695
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2130777
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-30 20:44:08 -06:00
mahj8
50231385d2 charging: add charge counter prop
As VTS require, must to add charge counter prop
in sys/class/power_supply/battery

Change-Id: Iad117f5bd7261ed435c5b6704a6242181245da75
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2130897
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-30 04:19:26 -06:00
wangwang1
1f977a8a0b kernel:export interface tcpm_inquire_typec_remote_rp_curr
tcpm_inquire_typec_remote_rp_curr is only used when kernel version < 5.4, which
is referenced in rt-pd-manager.ko.

Change-Id: I512071ac39537276701cb17261a03f58a7f14b48
Reviewed-on: https://gerrit.mot.com/2130450
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-11-30 01:36:04 -06:00
mahj8
3cc6a1b4ff 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.

Ported_from: (CR)

Change-Id: Ic24bfc8a4291761f4681e0464e7afd94b9239bd2
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2129919
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-29 23:51:06 -06:00
mahj8
a50c9fcd46 bms: modify battery capacity unit from mah to uah
As VTS test failed, need to modify battery capacity unit
from mah to uah.

Change-Id: I04b24e6d564917b1a0af06c12eeec5351ae38048
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2130441
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-29 21:30:48 -06:00
mahj8
0d91c148b4 charging: remove useless power supply prop
As VTS test failed, need to remove useless
power supply prop

Change-Id: I497bde2a0b61645284daf00b89f28a80faae8748
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2130440
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-29 21:30:41 -06:00
mahj8
3974bb7b3f charging: remove FULL status in charging ic driver
As moto charging FULL status judge in SW policy, so we must remove
FULL status in charging ic driver.

Change-Id: I881b1464bdeb9e9c6599dee15d33189c6b4d1594
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128758
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-29 21:29:25 -06:00
Bernie Moreno-BERNIEM
c17e04702f power:fet_control ironmn: ps prop usb type BRICKID
Ironmn cold-boot with charger or usb connected tocharge port is
identifying ps_prop_usb_type brickid, apple charger. fet_control
was not handling this charger type.  Why the incorrect detection
is happening needs to be investigated, but battfet control will
now handle all usb_type cases.

Change-Id: I5356ee108e2a2430b434311dd5b2cfaa225b89ac
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128139
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-11-29 09:05:57 -06:00
chenglong1
814dd527c9 regulator: Force shutdown all regulators when system power off.
Add shutdown procedure for WL2864C and force disable all regulators when
system power off to avoid unexpected current leakage.

Change-Id: Ia92782a7baa2599fd6be1a7c62d5f747f10340ae
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2128240
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: <huqian4@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-11-26 07:29:52 -06:00
mahj8
cc8cb1e520 charging: stop charging when capacity > upper_limit
As some discrete charging ic can't suspend usb, so need to disable
charging when capacity > upper_limit. I think it don't effect any scene
in pmic charging solution product.

Change-Id: I2f794cd81371169ea29e2e2918ad47430132415f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128317
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-11-26 04:37:46 -06:00
mahj8
560d51d21f charging: fixed otg boost current limit error
The default code use the error mask, so sgm41542 otg boost
current limit set error.

Change-Id: I97647e99a1dc6b35e01e523860b7642d88f40961
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2127194
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-25 00:27:42 -06:00
litong20
c7ab15c6bf Add pm_qos control to reduce the interrupt responce time
request pm_qos during the interrupt processing to prevent
the CPU from going to sleep state.

Change-Id: I95728329c7df7a4376415b9d8ec20d6525fe45c8
Reviewed-on: https://gerrit.mot.com/2124280
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-11-24 06:21:18 -06:00
tanhua1
87f9105584 wl2868c: modify ldo2 and ldo6 default voltage
modify ldo2 and ldo6 default voltage
ldo2: 1.24v
ldo6: 2.8v

Change-Id: I70493791ad55c4f66114e1de2691e9ebe144deb1
Signed-off-by: tanhua1 <tanhua1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2126124
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-11-24 03:41:15 -06:00
mahj8
b858c92c54 charging: fixed the error HVDCP voltage standard
As change the get vbus voltage api from BQ25890 to Main PMIC, 
so need to change the HVDCP voltage standard

Change-Id: I5e175b0a5019b3b69810539f21c11b1a26764f84
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2126099
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-11-24 03:28:15 -06:00
mahj8
55c3b6d4b8 charging: set register 3250ma when icl >=3A
As TI bq25890 chip accuracy issue, so when policy set icl >=3A,
we need to set 3250ma at register for BQ25890H

Change-Id: I74cd75fdae300b50a8a9581b751dff6890258e11
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2125735
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-11-24 03:28:07 -06:00
xuwt2
701b7cbb08 smart_pen_charger: Add pen_status and pen_error notify
Add sysfs_notify()
Report notify when pen_status and pen_error changed.

Change-Id: I45fda6a759b35f93c736f278054994fd23f5e89d
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2111243
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-11-23 06:19:59 -06:00
xuwt2
b4fe951973 qti_glink_charger: Add tx_mode and rx_connected sysfs node
Add tx_mode and rx_connected
this is to support moto wireless powershared

Change-Id: Idb36fdfb10fa9cbe4015f6c4ecd1f6c6e74deb26
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2111245
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-11-23 06:19:49 -06:00
chailu1
bf8776fd3d PD: Extend PD adapter class charge function
Extend PD adaper charge function for future PD IC
1. add pd idx select interface for config PDO
2. add MMI_PD_ALL for got all PDO info

Change-Id: Ic60270c3c4cf071044a50fdd56f546120ce7369c
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2115616
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-23 04:55:32 -06:00
chailu1
28d310006b charge: add chage&PD policy
charge/PD
add charge and PD policy

Change-Id: Id2c5c2347a57f33fd2ac95a298bf0c5544a8a037
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2110938
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-11-23 04:55:15 -06:00
liuyc20
496f8af84e power: rt9426a update fcc design
rt9246a fcc value is part of its algorithm,
fcc value will change according to the condition that the battery is 100%,
https://gerrit.mot.com/#/c/2121340/, the fcc value from 4895 change to 4654.
that isn't our expect. the fcc_design should be a const value
so we add another dts to config it.

Change-Id: Ibc4947e8671243f831e4d6dc160cc8c71873a594
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2121919
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-23 02:15:12 -06:00
chenzc2
400a7f952b Rhode4G: Implement different ldo compatibility.
Below it is the compatible ldo information.
a.wl2868c.
b.et5907.
c.fan53870.

Change-Id: I6bf57bc4420eded96410568323a720c2caafa8e2
Signed-off-by: chenzc2 <chenzc2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2123413
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: PengFei Qiao <qiaopf1@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Jian Luan <jamesluan@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-11-22 22:27:08 -06:00
litong
c1f6eacfa9 Revert "(CR): Add pm_qos control to reduce the interrupt responce time"
This reverts commit 1da6346249088c0e5d42c6147b2c5bcd8ec9e395.

CRs-fixed: (CR)
Change-Id: I1fd4e6f2c5144433728aa021391aab385d1db4bf
Reviewed-on: https://gerrit.mot.com/2124282
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-22 21:27:20 -06:00
Xiaofeng Wang
f898c85fb3 rhodep: camera power IC et5907 config
rhodep camera use new power IC et5907,
add et5907 config files.

Change-Id: Iecca4e840632453d6ace8223b6e9cc36f421fccc
Signed-off-by: Xiaofeng Wang <wangxf32@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2119188
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-22 20:40:41 -06:00
litong20
bad4b4d393 Add calibration noise error handler
TP:
 If the noise detection fails after calibration, the touch IC will
 report the "F3 E0" event, and when the event is received,
 the touch driver will send the calibration command again.

Change-Id: Ifd2f4bd287fbdc7861a127d2ffd481f635d963c7
Reviewed-on: https://gerrit.mot.com/2123149
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-22 20:02:58 -06:00
litong20
cf6c77763e Add pm_qos control to reduce the interrupt responce time
request pm_qos during the interrupt processing to prevent
the CPU from going to sleep state.

Change-Id: I78a67ef1aa9a363e9d7f9546b8d4c20a81ac04c4
Reviewed-on: https://gerrit.mot.com/2107618
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-11-22 06:45:24 -06:00
luozhq15
85578616c0 rhode: rhode 4G camera ldo config[2/3]
Rhode 4G wl2868c ldo bringup

modify camera ldo file

Change-Id: Id1b37b1ca39dc14862ca32fa8aa22c5c636df6ed
Signed-off-by: luozhq15 <luozhq15@motorola.com>
Reviewed-on: https://gerrit.mot.com/2106490
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: XiaoFeng Wang <wangxf32@lenovo.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-11-19 05:30:55 -06:00
mahj8
5dd6f5b15a charging: fixed uevent block issue
cat sys/class/power_supply/battery/uevent and return null,
so UI can't show turbopower label.
The power supply val->intval can't equal to -EINVAL.

Change-Id: Ibd6a40770144185b11c54e8f21741fc06477686c
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2121820
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-19 03:19:42 -06:00
wutao
08b3dee44f mmi_qc3p_wt6670f: int pin config to input mode
wt6670f int pin(gpio85) default is output mode,if request_irq
while fialed(return -5),so config to input mode to fix it.

Change-Id: I1f6e08e6b1ca652be57448334bb15465e3a87d3f
Reviewed-on: https://gerrit.mot.com/2120830
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <huaqin85@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-19 00:01:30 -06:00
Rohit Sisodia
c763e7f8ae Revert "(CR): Revert "Revert (CR) power:fet_control Vbatt2 balance path""
This reverts commit 19d004c6c999c9dd1b6b7122ebf32738d1ce5e64.

Change-Id: Ibbdf8a9e103e4558af0d194a87ada40b9479d573
Reviewed-on: https://gerrit.mot.com/2121056
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Submit-Approved: Yinjun Chen <a7301c@motorola.com>
Tested-by: Yinjun Chen <a7301c@motorola.com>
2021-11-18 13:27:27 -06:00
Rohit Sisodia
ebc8a767c0 Revert "(CR) power:fet_control Remove ps_notification cb"
This reverts commit e7c24f09b40f98dc3ba5f23586e3db0769d99997.

Change-Id: I7765f6c6234bd85452fe7260ee2e43615e6a7053
Reviewed-on: https://gerrit.mot.com/2121057
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Submit-Approved: Yinjun Chen <a7301c@motorola.com>
Tested-by: Yinjun Chen <a7301c@motorola.com>
2021-11-18 13:25:39 -06:00
xuwt2
accd702702 qpnp_adaptive: Change Makefile to compatible with Android S build
Change the build make file to be compatible with
Android S build.

Change-Id: I9faf66a92f1d4c4bb32b6069d9ed4b9e08f66392
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2117635
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-11-18 00:18:47 -06:00
wengjun1
329c4bc70b dlkm: Add check if panel is available for gt9916s
- Add if panel is available logic for gt9916s with
using spi bus.

Change-Id: I0489672829c2e411f58a1799e35cf05024f7a75b
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2108636
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-17 21:10:52 -06:00
liuyc20
c7989e92e3 power: fix rt9426a get the negative soc or soc jump
11-06 10:22:19.922     0     0 I rt9426a 1-0055: RT9426A block read 0x2c fail
11-06 10:22:19.922     0     0 I rt9426a 1-0055: SOC(-13)
11-06 10:22:19.922     0     0 I rt9426a 1-0055: RT9426A block read 0x2c fail
11-06 10:22:19.922     0     0 I rt9426a 1-0055: read soc value fail
QC holi project can't permit do i2c test when phone into suspend or resuming.
The failure of I2C operation jointly produces many unexpected behaviors,
including but not limited to the negative power number and serious power jump.

when calling to the fg_update_work_func(),
avoid the system into the suspend.

Change-Id: Ideeecffc1abe6e7eed12173c7a589cf1f3dc1b22
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2118864
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-17 20:43:00 -06:00
zhouzs1
86370de399 Wallet shown slow when screenoff at qingdao
when device screen off, the wallet running slow and some time
nfc service will reset.

remove IRQF_NO_SUSPEND feature on driver to avoid issue

Change-Id: I1828ce8293915b288020595fa3d2a992503c90a8
Reviewed-on: https://gerrit.mot.com/2119768
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-11-17 20:25:59 -06:00
wutao
1b1b1538aa mmi_qc3p_wt6670f: remove QC3.5 detection in shutdown ops
wt6670f_shutdown() will trigger QC3.5 charger type detection and cause kernel panic .
No need to do QC3.5 action while system shutdown, so remove it .

<1>[   16.536435] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000028 
<1>[   16.536437] Mem abort info: 
<1>[   16.536439]   ESR = 0x96000005 
<1>[   16.536441]   EC = 0x25: DABT (current EL), IL = 32 bits 
<1>[   16.536443]   SET = 0, FnV = 0 
<1>[   16.536445]   EA = 0, S1PTW = 0 
<1>[   16.536446] Data abort info: 
<1>[   16.536448]   ISV = 0, ISS = 0x00000005 
<1>[   16.536450]   CM = 0, WnR = 0 
<1>[   16.536452] user pgtable: 4k pages, 39-bit VAs, pgdp=00000001ce121000 
<1>[   16.536454] [0000000000000028] pgd=0000000000000000, pud=0000000000000000 
<0>[   16.536458] Internal error: Oops: 96000005 [#1] PREEMPT SMP 
<0>[   16.536582] Skip md ftrace buffer dump for: 0x1609e0 

<4>[   16.536673] Call trace: 
<4>[   16.536675]  mutex_lock+0x18/0x40 
<4>[   16.536679]  wt6670f_shutdown+0x24/0x8c [mmi_qc3p_wt6670f] 
<4>[   16.536683]  i2c_device_shutdown+0x5c/0x90 
<4>[   16.536686]  device_shutdown+0x1b8/0x298 
<4>[   16.536690]  kernel_restart+0x40/0x108 


Change-Id: I7e81484c25ff8f65d84e86a88b0ae51d7601fab6
Reviewed-on: https://gerrit.mot.com/2119210
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Reviewed-by: <huaqin85@motorola.com>
Submit-Approved: Jira Key
2021-11-17 19:52:41 -06:00
Bernie Moreno-BERNIEM
59532d88ef power:fet_control Remove ps_notification cb
Some units may panic on charger cable insertion at powerup. Seems
to be a race condition either registering the ps notifier, so remove
the call.  This will reduce the reaction time to check for overcurr
condition at time of charger application.

Change-Id: I71e00636630605e393334e2c8424dfadd2913566
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2115456
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-11-17 11:20:18 -06:00
Sridhar Vashist
d693f3b415 Revert "Revert (CR) power:fet_control Vbatt2 balance path"
Re-instate the original commit back into mainline to validate.

This reverts commit e5433a437a06221b577d0b54c4e4936d317e4c1e.

Change-Id: Ida06a55eee333d31fb0f0f212daed74c11c790b9
Reviewed-on: https://gerrit.mot.com/2118107
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-11-17 11:19:38 -06:00
mahj8
7221ea47ce charging: update charging status when power supply get
update charging status when policy get power supply prop
for sgm41542

Change-Id: Idbf9addb9312dc2705d0c722b4f1bf07b03712fb
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2118981
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-11-17 04:38:57 -06:00
litong20
ce40bdb1a9 support pmk8350 gpio3 as stylus clk.
TP:
  Support Pmk8350 gpio3 as the stylus clock for Rogue PVT, and the
output frequency is 19.2Mhz.

Change-Id: I5dae054b6170b921b7afee1853b7de7995531705
Reviewed-on: https://gerrit.mot.com/2111742
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-11-17 00:39:18 -06:00
mahj8
a23570c75d charging: use msleep instead of mdelay
In COM kernel panic. Kthread max runtime is 0.95s, but we use
mdelay 1.5S, it will kernel panic. So change mdelay to msleep.

Change-Id: I643df7edc75b8640ff6a5d2aa90106e378e0df9f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2117321
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-16 04:18:14 -06:00
wuwl10
3849eeccd0 dlkm: silead_fps: remapping the keycode
Remapping the keycode report to HAL  per moto spec.
Remove the HOMEPAGE key to avoid factory test issue.

Change-Id: I8b4c5ee1d10fe43f466906d70a58fd007d89b6cb
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2117197
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Zhong <zhongl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-11-16 03:21:27 -06:00
mahj8
f64b636d80 charging: defined default termination current 120ma
As cyprus IP68 SW terminate current is 150ma, so HW
termination current need set below 150ma.

Change-Id: Ib52492992495e03945943b18363ea58f1cf6a49f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2116841
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-16 01:26:03 -06:00
mahj8
38dc43e76b charging: optimize ICO feature
sometimes we need disable ICO feature, so add
enable ico judge

Change-Id: Iffa1673c33f3018e03e61f01696fcb229fdade2e
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2117107
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-16 01:25:10 -06:00
mahj8
df808e52a6 charging: schedule monitor work when charging
schedule monitor work when charging for debug
and add register dump.

Change-Id: I50e182b03d8156b09418270d5f2e28ed482267ce
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2116792
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-16 01:24:53 -06:00