Commit graph

2,638 commits

Author SHA1 Message Date
weiweij
eb15e8e279 wlc: change wlc current from ibat to iout
For some charge pad, we need to get the result of iout
from cps4019 to judge its working status. So ibat could
not work in this scene. So we should change the current
result form ibat to iout.

Change-Id: Ie31b1308ecd59507208ad4ec9038e6e950bfef76
Reviewed-on: https://gerrit.mot.com/2330599
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-18 21:19:03 -05:00
hqjiangy
85bd3d719d TP focal bsp fix[1/1]
focal bsp fix

Change-Id: Iec8c3b47f88d8d7f46693f61a9006e57a4cae8ee
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325040
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-07-17 02:31:29 -05:00
weiweij
c77ace836f WLC: Add vbus check before power supply read ops
If vbus is absent, CPS4019 could not be accessed duel to loss of power.
So before power supply read operations, we should check vbus status.
If it is not exist, we should not access CPS4019.

Change-Id: I32bcdec8dd7aa9829a727ffb0205adaa04e185ba
Reviewed-on: https://gerrit.mot.com/2334726
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-15 04:17:53 -05:00
hqjiangy
8b32ae240c TP change config id
TP change config id

Change-Id: Ie31414eeb8d9f868754758b1611720cc336e5a0c
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2334875
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-07-15 03:59:35 -05:00
Yan Zhang
3f77e0870f : chipone: enable power gpio for penang
chipone:
enable power gpio for penang

Change-Id: I9a344a59ff74d3986b755a74f5fcdb0cbac1e681
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2332239
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-07-15 02:41:46 -05:00
hqjiangy
1099aa770f TP suspend and resume fix[1/1]
TP suspend and resume fix

Change-Id: If8bf10df447f5bbd203efef7cf379870297b99ca
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2334512
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-07-15 01:19:58 -05:00
hqjiangy
02cabe542e TP change config id
TP change config id

Change-Id: I815bcebb253a5f40841a007abac8405376d1383f
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2333076
Reviewed-by: Wei Deng <dengwei1@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-07-15 00:21:29 -05:00
hq_yexiuyon.wb_tmp
e5e1bedc3e TP: The TP nt36528 bringup
Modify:
      Bringup TP for nt36528 , add TP bringup

Change-Id: I83da674735bee27f4a9bd1a78e3131ff81dcb2d6
Reviewed-on: https://gerrit.mot.com/2331327
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-07-14 01:30:58 -05:00
Haijian Ma
709e299c1e charging: disable I2C error workaround
disable I2C error workaround for miami.
when unit suspend, plug out otg device, it can't disable
otg vbus by i2c.

Change-Id: I2a3fb1ba046be9d688d36ac1a7d587c55269aa6d
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2330923
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-13 01:36:56 -05:00
Yonghua Yan
a2caade93d adjust flip charger input current
The charger input current provides for both main
and flip battery charger, so there should be balance
between the two charger input in order to meet
the BC1.2 charger current spec:
SDP: 500/900mA
CDP: 1500mA
DCP: 1500mA

Change-Id: Idf52ec497a46a01340a8a96888148cc324858ad3
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2331227
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-12 10:38:59 -05:00
Yonghua Yan
c6c43063cf support empty vbat shutdown with charger
In order to avoid battery over discharging when charger attached
in some cases with high system load or charging disabled in factory
mode.

Change-Id: If323b2a5c558c944ba85a33188235c58909b6ada
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2330746
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-12 05:16:13 -05:00
Konstantin Makariev
683b26e7ad drv8424_mmi: fix sensors logic and data
Fixed sensors active logic, data order and values range to match
sensor hub's expectations. Timeout timer is disabled due to the
panic it causes.

Change-Id: I2ceae34b7ecdac2f790593b6ff25ea8caa34fb12
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2326249
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Submit-Approved: Jira Key
2022-07-11 20:12:55 -05:00
Haijian Ma
bebc619ba5 charging: add battery ovp debounce
As some times charger pump detect vbat hight, so add
battery ovp debounce to avoid stop charging.

Change-Id: I6ed0bde0eb61232e368f31a3b308c948c05843b7
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325324
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-11 00:34:38 -05:00
Haijian Ma
eb88899d5c charging: fixed build error
fixed build error
for miami

Change-Id: I3c3ab796c288640d1236d5b50da3db106551b65a
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2328728
Reviewed-by: Hujun Liao <liaohj@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-07-10 22:45:09 -05:00
xuwt2
4cda3bbcf7 qti_glink_charger: Add some debug info
Add some debug info prints
WLC stand type/power/fan/light/status
rc_connected

Change-Id: I5795a8e8b87bc67a4ac7c38dc0528c970fc6e58f
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2327419
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-10 02:35:11 -05:00
Wenge Zhu
a7c4c83e6e Optimize CLI touch single tap function
When CLI touch wake irq triggerd to wake up kernel,add a wake lock
for it in case kernel suspend before resume.

Change-Id: I47f045f6d53cbe9e491922e60799c2e831e14ce2
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2326776
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-07-08 05:10:43 -05:00
Haijian Ma
90a9edd4ec charging: remove debug log
remove debug log for optimize
boot up time

Change-Id: Ibd8e1e7cb8ee12ab7fcc8cdaff5f8770dfa82c54
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325851
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-08 03:49:36 -05:00
Haijian Ma
bb37015224 typec: disable vbus under 0.8V interrupt when vbus remove
As vbus remove and type-c cable still inserted at BSP test, the
CC voltage transfer to VBUS pin, the vbus pin voltage range is 0~1.25V
frequent switch. So the interrupt of vbus under 0.8V is triggered frequently.
So disable this interrupt when vbus remove.

Change-Id: Ibfc26ed1e7db2c1031ac27642aa38a2dcb120f92
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325805
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
2022-07-07 22:58:30 -05:00
hqjiangy
8f797300e1 TP charger mode fix[1/1]
charger mode fix

Change-Id: Ie86f496f9823946007de1df4a3f359ade532296c
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325014
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Jira Key
2022-07-07 21:48:12 -05:00
Yonghua Yan
b111dc0500 Monitor fg psy event once get the psy name
The fg psy may be created later than sgm4154x charger probe
and the fg psy event will be missing according to current
psy filter condition in psy notify call.
In order to fix this, use the fg psy name directly for
psy check, and not check the fg psy pointer.

Change-Id: I6ca888864045c0f523bfbef9f30411567214d995
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2326012
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-07 09:24:20 -05:00
Wenge Zhu
851c8f0fda Fix CLI touch gesture event timeout handling logic when kernel wakeup abnormal
1.If touch wait kernel wake up timed out, we must reset IC or just need
to read out data from IC via I2C interface when I2C is ready to let IC
pull up the INT,if we can not wait I2C ready finally, single tap will
not be available at this time sleep state, display on/off once will
restore it.
2.Disable watchdog work to ping IC when IC is on SLEEPING and SLEEP_ON
state.

Change-Id: I10106ef993ddb8270293c3defd4002e6cda6e9b5
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2324444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-07-06 21:45:22 -05:00
Haijian Ma
818fa467f8 charging: don't update qc3.0 type to core when rerun apsd
when rerun apsd, don't report qc3.0 charger type to core
to avoid qc3.0 pluse invalid for impedance.

Change-Id: Ib8309d341da386ee35374cfab2a63e1dad312182
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2324271
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-06 05:53:49 -05:00
Yonghua Yan
e22004f53f support battery ovp/occp/ocp
In order to avoid battery over voltage and current
during charging or over current in discharging
add threshold to trigger the protection based on
battery voltage and current.

Change-Id: I2c9329a181ba9dd814d6e48a5e0f9c8e7f9d5147
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2322540
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-07-05 07:22:59 -05:00
Yonghua Yan
ff60c5497c Revert "(CR): Add OVP and OCP for battery"
This reverts commit 8dff4032ddd4f0cf9f3a6Montanafa338c712fc0a4eb.

Mot-CRs-fixed: (CR)

Change-Id: I5e05e24e2829c9d25f0592b9506906600adccde1
Reviewed-on: https://gerrit.mot.com/2322539
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-05 07:07:40 -05:00
Shicheng Gong
5dbca0ed55 sgm4154x_charger_lite: add thermal mitigation
Add thermal mitigation for battery charging current to support
thermal-engine policy.

Change-Id: I478ec42d85b5c8c1c2cb5aa4ad75242f88534710
Reviewed-on: https://gerrit.mot.com/2312431
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-05 06:45:07 -05:00
dengwei1
a2b37b646a rhode: input touch update syna config id
syna
config id

Change-Id: Ie472d2b45b199a1edba9a0b1685a6aaf9655a372
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2320173
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-07-03 20:58:02 -05:00
Yonghua Yan
1ff2f1a3f7 fixup! (CR): Reset charging if it's halt
When the battery charging is halt under chargable
condition, reset the battery charging to recover it.

Put the charger in HIZ mode if the battery is absent
or OTG is enabled to prevent battery charging by
boost power.

Mot-CRs-fixed: (CR)

Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Change-Id: I7631a7fdd2329c108d1dc2bd3d341775a194ccb8
Reviewed-on: https://gerrit.mot.com/2321180
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-02 01:37:14 -05:00
Yonghua Yan
d16d1f99f1 Reset charging if it's halt
When the battery charging is halt under chargable
condition, reset the battery charging to recover it.

Put the charger in HIZ mode if the battery is absent
or OTG is enabled to prevent battery charging by
boost power.

Change-Id: I435bcb751d22ef2ac515aa15bb63e423dfdc4cb6
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2320930
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-02 00:58:40 -05:00
liuyc20
8d978d3a80 FG_MM8013: Update logic to compatible with param_ver=0xa200
param_ver=0xa200 is for temporary parameter.
Need to update to offical parameter.

Change-Id: I3624f7776c095051a9aa28fc23c9ba422e736db5
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2318274
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
2022-06-30 20:25:28 -05:00
Yonghua Yan
ed90b000ce control charger irq for otg or battery presence
Disable charger IRQ if OTG is enabled or battery is absence
to prevent unexpected charger IRQ wakeup.

Change-Id: I71b699f25a5624f0f3699434f142abc8cd3d69d4
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2319107
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-30 11:27:50 -05:00
Yonghua Yan
fc575f57fc Trigger battery current read on demand
Schedule the heartbeat work to update the battery properties
if read current_now.

Change-Id: I47cdd15911219ce8af268a23acefd4980c081b45
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2316770
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-30 05:34:31 -05:00
Konstantin Makariev
ee7e452d82 drv8424_mmi: proper IRQ setup
As it turned out nFAULT signal drops for about 200us every time BOOST_EN
enabled. Arming IRQ after SLEEP signal allowing for avoiding false
fault interrupts

Change-Id: I947839591e7c6bff2231bb8e39ae8b6fdd5c2ab7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2317946
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-06-29 14:45:38 -05:00
Konstantin Makariev
eb5123d536 drv8424_mmi: unify source code indentation
Replace leading white spaces with tabs

Change-Id: I6c26f0083cb5bae6a6c76a6fdb7e2a35b28ea936
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2316810
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-06-29 11:33:49 -05:00
Konstantin Makariev
48e2ea9a62 drv8424_mmi: dual motors fault handling
Felix has 2 motors. Thus nFAULT signal can be raised individually
for each motor. If both motors consistently failing any further
motor communications must be suppressed to avoid mechanical damage

Change-Id: I11eec76eea7b056bfa93ebe19e7bb81fe823abd2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2299699
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-06-29 11:33:38 -05:00
Yonghua Yan
9f61fd6d0e Add OVP and OCP for battery
Add battery OVP and OCP for battery charging
to workaroud the CE certification.

Change-Id: I2004e4a280cf2e5e8ce0d19c501e4a338e45d500
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2316155
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-29 03:20:04 -05:00
Haijian Ma
9c4e76e7b1 charging: change wireless charging icl step increase rate
As HW require, change wireless charging icl step
increase rate from 200ms to 500ms

Change-Id: I7ec1ffb229e6a8be997de4b5224de0bd554890bd
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2312396
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-24 05:37:11 -05:00
Yonghua Yan
d8ef9cab5a Add the description sysfs node when usbnet init
As the factory tcmd init depends on the usbnet description sysfs
node when tcmd start up, so create it as early as possible to
avoid tcmd fails to get usbnet description.

Change-Id: Ie2946efe49ffa5815504bd45734c3538bee15a1f
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2311260
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-23 10:20:36 -05:00
Haijian Ma
d1a2cf641d charging: optimize select pd capacity
optimize select pd capacity to cover
more PD charger

Change-Id: Ie67c3b530f6cfb250508ecec72b12de537492969
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2310810
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-06-23 04:48:02 -05:00
Haijian Ma
0caa4ffe0d charging: optimize wireless charging icl vote
As HW require, wireless charging icl vote from 500ma
for authentication

Change-Id: I922495b3f89a72f3a2b2b4306b941351614631e8
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2310686
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-23 02:29:37 -05:00
wangyq13
33cf825022 dlkm: led_aw2033: don't enable led and CHGDIS when boot
dlkm:
- don't enable led if brightness and blink is zero
- don't enable CHGDIS when boot, set reset reg can enable CHGDIS, so
  change reset function.

Change-Id: I2c86386a2f1e0714793871dc72ac2ad553d67aaf
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2309617
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-22 22:51:52 -05:00
zhangly19
4d4e63a83c Add parrot in Build_external_kernelmodule.mk
add  parrot(6450) a new mechansim for
building external modules.

Change-Id: I1bdd6b55482fdd6ada9f63e160a27de33b664f83
Reviewed-on: https://gerrit.mot.com/2306144
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Liyun Zhang <zhangly19@lenovo.com>
2022-06-21 22:46:48 -05:00
Haijian Ma
28886f1477 charging: enable cp ADC when factory mode
As factory test, so need to enable cp ADC
when factory mode

Change-Id: I82e96fd9acbd4727f9750ef1ca85447e7316297e
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2308976
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-21 21:07:44 -05:00
Yonghua Yan
b9556551e5 add and remove sysfs files when usbnet config
Add and remove the sysfs files when usbnet configures the
ip by host PC.

When this sysfs files are ready, it means ip config received
from host PC and the phone can configure the network interface.

Change-Id: I2dabc4693d5e698e0c4853d0fa9d06e454ba7875
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2306945
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-21 09:24:18 -05:00
zhuangnk1
83c7cd9c22 Always power-on eSE to avoid ese not open issue
Always power on eSE to avoid eSE not open
issue

Change-Id: I46c9697fb329eb259759d2c461eec8cfd5782cf7
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2307741
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-06-21 01:18:24 -05:00
liuyc20
cd2e724d56 mm8013c_fg: add more safeguard when update FW/param
1.only in factory-mode enable fw/param update
2.add 3 times retry when update fw fail.
3.when get battery_id is zero.read utag battery_sn to search the correct battery_id.

Change-Id: I17999baf0f1a66731c4d95279de0ca0c1a46a33a
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2302762
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
2022-06-19 21:04:42 -05:00
Haijian Ma
a34d156d50 charging: disable cp adc when cp don't work
disable cp adc when quit cp policy
enable cp adc when enter cp policy
for reduce power

Change-Id: I279c2493e4483c161c31df903866c75f7c7da513
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2304010
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
2022-06-19 20:00:21 -05:00
Wenge Zhu
9ab8033192 Support goodix 9916P touch IC
Add goodix,9916P to spi device match table to support
9916P touch IC.

Change-Id: I7dbd07075c7bb63ff54171c6c98f6567046ab2f8
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2305630
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-19 01:05:27 -05:00
Yonghua Yan
7eb1770837 Set to discharging status if charger absent
Set charging status to discharging if charger absent
in case FG report confused status.

Change-Id: I95194b19750eb5af422ebb05f5937ca18a15a61c
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2301533
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-15 05:59:53 -05:00
Haijian Ma
6b5d72caf4 fg: modify fake battery default value for assembly test
modify fake battery default value for assembly test
in factory

Change-Id: Id479e2ec546026decae31d6fdfd5d56987bfbeb7
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2301490
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2022-06-15 05:42:53 -05:00
liuyc20
cd707d1093 mm8013c_fg: force none update fw/paramerter
there is low probablilty update fail.
then the phone will can't be bootup.

Change-Id: I1f25bc5cd5e74f7301090859fb7f6287b1e61d04
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2301067
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
2022-06-15 01:04:04 -05:00