Commit graph

2,946 commits

Author SHA1 Message Date
Wenge Zhu
bf239e4ebd Reduce zinitix touch resume time
TP:
Reduce zinitix touch resume time.

Change-Id: I62f05c91a6355e869636ee3c2d54354d207c1b23
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2637882
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-06-08 02:43:32 -05:00
Lei Chen
a5f96568a0 mmi_charger:optimize the thermal vote policy
Changes,
ensure the thermal vote current can keep constant.

Change-Id: Ie95e6ee49381781484b843715dcaabe5ebf4e760
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2632194
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-07 01:15:12 -05:00
Lei Chen
f78635ed93 bq25980_mmi:optimize the adc read
1, use bulk read to ensure the adc read correct.
2, reduce the frequency of vbus reading

Change-Id: Ib4c2a4f3586196e2ad3042c6f701b2741a81fe03
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2633111
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-06 20:53:37 -05:00
litong20
4e46c022e9 cw2217b: optimize the battery capacity
cw2217b:
When the soc reaches 100 and the usb is online, and the
battery is not in discharging status, the ui_soc remains
at 100.

Change-Id: I075229f572eb3330f490b5840d25d1ed119311c4
Reviewed-on: https://gerrit.mot.com/2631323
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-06-02 07:35:46 -05:00
tin_bingtai.zou_tmp
9885e3822c optimize aw963xx driver-set_enable
1.each channel enables calibration only once
2.optimize set_enable function

Change-Id: Id61e6e192c84aaa7e23c234456ff65e34e085153
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2629574
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Submit-Approved: Jira Key
2023-06-02 03:57:51 -05:00
Lei Chen
1757a8c181 mmi_charger:optimize the pump policy
Sometimes the pump can't recovery if disabled accidentally.
The recovery_pmic_chrg flag should reset to 0.

Change-Id: I01119c6531ca42aa7e92d590cca9989ce18a53b0
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2630990
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-02 02:48:03 -05:00
Lei Chen
4cccb0285a mmi_charger:enable adc when charger plugin
SC8541 ADC enable will cost extra current while standby.
Enable sc8541 adc when charger plug in.

Change-Id: I0d8cd2b680534a75e29d80cf955d705204bec02f
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2629340
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 01:46:31 -05:00
Lei Chen
24a58e0f57 sc8541:enable adc when charger plugin
SC8541 ADC enable will cost extra current while standby.
Enable sc8541 adc when charger plug in.

Change-Id: Ib8993bbd2c7a806a60a91ed53be5e84abd43c877
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2629332
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 01:46:26 -05:00
Lei Chen
5994d0842b charger:optimize the qc3p init vbus voltage
To ensure the battery current can meet the target, optimize the
qc3p init votalge while the soc above 65%.

Change-Id: I005799a1a530bd1d5899206da4f64bf4492d4c84
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2629112
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
2023-06-01 00:08:33 -05:00
litong20
64f13d6843 Reduce 'cw2217b_fg_mmi.ko' boot log printed.
cw2217b:
Reduce 'cw2217b_fg_mmi.ko' log printed to improve ko loading time

Change-Id: Ideb3b4c1edae893429b2e5c6c964f96cfb3bc49d
Reviewed-on: https://gerrit.mot.com/2620316
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-30 21:52:36 -05:00
litong20
a07f15833d cw2217b: modify charging status
First unify the polarity of the current through the ibat_polority,
then judge the charging state according to the polarity of the current.

Change-Id: Ie2c155708e0c6808f56502325af0248e74e6c420
Reviewed-on: https://gerrit.mot.com/2620148
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-30 21:52:31 -05:00
tin_bingtai.zou_tmp
f86c48d11b optimize aw963xx driver
1.add reset node
2.modify enable function
3.fix panic problem

Change-Id: I0e7e1e7185ffa6128239c2e91f61f31f448ded28
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2620252
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Submit-Approved: Jira Key
2023-05-25 03:23:46 -05:00
Wenge Zhu
000036d29e Set touch reset and interrupt pin
Set touch reset and interrupt pin to low after touch IC
powered off to reduce power consumption.

Change-Id: I9443a29ee5ccb7d19290024048e054102710a65b
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2619346
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-05-25 00:38:46 -05:00
Rafael Ortolan
69486e81af pd: configurable tcpc timeout to detect charger type
Different devices require different settings for tcpc's max polling
count. Make this value configurable.

Change-Id: I10b3bc4f27d14e00c5ec2b4ca943c1f97b4eb14a
Reviewed-on: https://gerrit.mot.com/2610513
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bruno Oliveira <brunosoe@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Submit-Approved: Jira Key
SME-Granted: SME Approvals Granted
2023-05-24 16:14:02 -05:00
litong20
2570e879eb save the value of ui_full to the A2 register
The value of ui_full will be lost after reboot,
so save the value of ui_full to the 0xA2 register.

Change-Id: Ib183f9ee745e8e91207f5dd0763729845573ec04
Reviewed-on: https://gerrit.mot.com/2612156
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-18 02:55:28 -05:00
Wenge Zhu
c14fd70d65 Optimize zinitix touch firmware upgrade flow
Firmware flash is ok but verify fail, change to verify the last 4 bytes
on firmware.

Change-Id: If4e80a914d8ad7b9352a26fb7259aa97451c7863
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2611066
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-05-17 21:50:04 -05:00
Yan Zhang
a5ba5911b1 : Fix FOD zero tap not working issue
Goodix touch:
Clear correct bit 13 to enable FOD zero tap wake up gesture.

Change-Id: Iece50a5dc5ae27c562f0cdf1087c44ec6fa5d5c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2608756
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-16 02:11:01 -05:00
Lei Chen
2d22cb6ebb charger:optimize the qc3p request voltage
The qc3p request voltage is too high while the vbat
is float. Optimize the qc3p request voltage when
charger pump entry.

Change-Id: I206e23f6f21519cf59725ce5d0874e11582325c9
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2603252
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-15 21:22:22 -05:00
dengwei1
1c0ddee9b1 bangkk: input touch add game feature edge/rate
add game feature
edge/rate

Change-Id: I2173f12bcfb0e05aa91c275e3532babf81c15c3f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2603761
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Submit-Approved: Jira Key
2023-05-14 21:01:36 -05:00
litong20
b7c07a15f7 sgm4154x: support 8w wireless charging
sgm4154x:
Setting ichg to 360mA for 8w wireless charging in Juno. 

Change-Id: Icc2fb0bde8cd766fb1354b9bdad68514387a879d
Reviewed-on: https://gerrit.mot.com/2604889
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-11 22:19:56 -05:00
Wenge Zhu
e12191b812 Optimize zinitix touch firmware upgrade flow
Found that zinitix touch firmware upgrade failed due to checksum
error,but now firmware version check right and touch works well.
It's not sram broken or burst upgrade problem, suspect "0x55aa"
check sum not stable.
Change the firmware check to a more stable way after burst upgrade.

Change-Id: I1edb0dc608179e3d64c8ac931603aae9e28cd78d
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2604234
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-05-11 20:55:53 -05:00
litong20
7f6626a7ca Set the thermal_ratio_nums.
sc760x:
The step of thermal radio is 0.5, so the thermal_ratio is
(thermal_ratio_nums * 0.5).

Change-Id: I87238d652c90be53c7bd2901c63fcf2c84Montana467
Reviewed-on: https://gerrit.mot.com/2601346
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-10 03:04:49 -05:00
litong20
7ecda6d0df Add SUPPORT_DYNAMIC_UPDATE_UI_FULL control
cw2217B:
Add SUPPORT_DYNAMIC_UPDATE_UI_FULL macro definition to support
dynamic selection of ui_full logic.

Change-Id: I75d6070f0de3359dd74d8c4ef220e692b8edf90e
Reviewed-on: https://gerrit.mot.com/2601342
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-10 03:04:03 -05:00
litong20
89cb6ae120 need to clear jiffies in non-charging state.
The jiffies value is only recorded in the charging state,
and it needs to be cleared in other states.

Change-Id: I9beb3465a24784d35399c10733416f3104269678
Reviewed-on: https://gerrit.mot.com/2601217
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-10 03:03:57 -05:00
Robert Cabral
d73cc9a3e8 input: ili9882_mmi: remove unused netlink codes
Ported from (CR)

ili9882_mmi:
Removed unused netlink codes, fix vts test fail.

Change-Id: I9c35145f9f067e194ebc3c348ed46cd42d95614d
Signed-off-by: Robert Cabral <robertc@motorola.com>
Reviewed-on: https://gerrit.mot.com/2593044
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Levy Gabriel <levy@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-09 08:01:09 -05:00
litong20
aca130a133 use the battery voltage of fuel guage in charging logic.
use the battery voltage estimated by the fuel gauge in charging logic,
not the adc value of the charge pump.

Change-Id: Ia001e41dc909ce3ec57ddbcfe888a7b566ad358a
Reviewed-on: https://gerrit.mot.com/2599627
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-08 21:20:41 -05:00
Konstantin Makariev
e2435909dc goodix_blr_mmi: wakeup gesture gt9966
This change formilizes gesture mode setup for GT9916 and GT9966
Goodix touch ICs. There are 2 major differnces between these two:

1) gesture mode command length
2) gesture enable mask

Command length is 6 bytes for GT9916 and 8 bytes for GT9966.
Gesture enable mask:

  9916 -> 0 is enabled and 1 disabled
  9966 -> 1 is enabled and 0 disabled

 double tap            single tap
     |                     |
    |V--------------|------V--------|
    | | | | | | | | | | | | | | | | |
    |---------------|---------------|
          Byte 5         Byte 6

Change-Id: I76f9735addc45ed2b94a50569a3929b1b73084d0
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2549731
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-05-08 11:09:57 -05:00
Yonghua Yan
f68d0640c1 Add sysfs node for cid status read
Add sysfs node for cid status read to support CQA
test.

Change-Id: I933133e54a575aab2b009b8d69d79e467561374a
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2599136
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-08 06:38:59 -05:00
tinno61
d52da72ed7 bangkok modify focal tp power on off
bangkok:modify for focal tp 
power off and on

Change-Id: I23791c139fa095611fdb3989d3fb318222144533
Reviewed-on: https://gerrit.mot.com/2597827
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
2023-05-08 04:57:47 -05:00
litong20
eda20302a8 Need to initialize full charger capacity of 100%.
cw2217b:
Need to initialize ui_full
Change-Id: I4ae00866e93a56625cd4ec529c441f943f70060b
Reviewed-on: https://gerrit.mot.com/2591425
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-06 05:40:07 -05:00
Wenge Zhu
529e12857d Support goodix ghost touch log capture
TP:
Support goodix ghost touch log capture

Change-Id: I49946e6eb8adcec4387915a8d80572be9e008789
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2583262
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-06 05:10:58 -05:00
tinno61
b1ba34da62 bangkok add tp charger mode
bangkok:add focal tp 
charger mode

Change-Id: Idc0a8235fef180fdc681c5b025cc005829567a47
Reviewed-on: https://gerrit.mot.com/2596224
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-05 01:56:40 -05:00
Lei Chen
77db14c6c2 charger:seperate the FFC and none FFC parameter
SDP and DCP charger should not use FFC parameter. Seperate
the FFC and none FFC parameter.

Change-Id: I1a95d632d5cbccc9803d1fcbc81e8a62fe3a0a64
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2592241
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
2023-05-05 01:15:01 -05:00
Wenge Zhu
ec7d16daad Support touch assit p-sensor dectection
Support TP assist p-sensor detection due to ultrasonic
p-sensor limitation.

Change-Id: I71c7ee1ddbd800dae4e8188ed6ca5c8260262f7d
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2579809
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
2023-05-03 22:37:54 -05:00
xuwt2
549988a6b9 mmi_charger: power_changed when charger register susccess
Throw out BATT_PSY power_supply_changed
when mmi_register_charger_driver success.
It order to update the battery status more timely.

Change-Id: I7ea63a9340c44a2393ac86ab2b6cb94c62cb5905
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2592493
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-04-28 06:21:37 -05:00
tin_bingtai.zou_tmp
acbd1b6d19 fix read Board level Capacitor Compensation Value
1.009b07 read Board level Capacitor Compensation Value is 0
2.modify aw96308 driver

Change-Id: I232230Montana61914246b6438b684edcf3ddd848fae
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2592259
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-04-28 03:29:13 -05:00
xuxj
8a73a52922 sc760x_charger_mmi: no need to return failed
sc->thermal_ratio assign to default value, so no need retrun failed if
not define thermal-ratio in dts, or sc760x may register failed

Change-Id: I8f0494c85bf36caad9aa8d5340d8bcc70e779b5a
Signed-off-by: xuxj <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2592059
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-28 01:22:11 -05:00
tin_bingtai.zou_tmp
be0aa66192 The probability of sarsensor not being mounted
1.modify the problem of null pointer
2.PMIC supply
3.test result:pass the test results of 50 verifications of primary and
secondary sar

Change-Id: I94d4855ddcdb90ce9f8d2660f7d07f44b96aa14e
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2586600
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-04-25 02:42:12 -05:00
Yonghua Yan
2a71b6e13c Add more sku types and typec cid support
Add more sku types definition and add typec connector insertion
detection support in lpd_info structure.

Change-Id: I41b856c853c2e8ce6df024d1a1577ad56c97e72a
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2569869
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-24 08:18:01 -05:00
litong20
1e1506a5e5 fg_cw2217b: Ensuring monotonic variation of soc
fg_cw2217b:
Ensuring monotonic variation of soc

Change-Id: If13fbfcbd32e8e8897388b236c5355838c7e114c
Reviewed-on: https://gerrit.mot.com/2586781
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-24 03:57:16 -05:00
litong
a8cb200aab Revert "(CR): Ensuring monotonic variation of soc"
Revert:
This reverts commit daaaf64b38c53308fba2615213bacc64bcdb8bd0.

Change-Id: I8e75ac6d8753f68c0fb542df3b307f9ad77fed82
Reviewed-on: https://gerrit.mot.com/2586578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-24 03:57:09 -05:00
tinno61
450bdaa547 modify focal tp
bangkok:add macro and remove unnecessary 
for focal tp dirver

Change-Id: Ic4c1cb53cc5b2f1d69c84b804f44c7a4c6a5dfe7
Reviewed-on: https://gerrit.mot.com/2585802
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
2023-04-23 03:12:39 -05:00
tin_bingtai.zou_tmp
3fa32c60ae optimize aw963xx driver
1.optimization of secondary interrupt triggering logic for sar
2.modify driver aw963xx

Change-Id: I81782749f4cc8c62be421316e9d367f0d9d92156
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2585232
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-04-23 01:21:54 -05:00
xuwt2
bf8f9b9fd0 sc760x_charger_mmi: Update sc760x_en to psy_property
1, fixed kernel warning for irq balance
2, update sc760x_en to psy_property

Change-Id: I4ffbd0dd17891b0f623c7f922f687888d9c3ac2b
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2580762
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-19 01:18:23 -05:00
litong20
9eb7fe65ac Ensuring monotonic variation of soc
Ensure that the power monotonically increases during charging
and monotonically decreases during discharging.

Change-Id: I4ef202daf4b65e0640e4794d7f74a17241051c25
Reviewed-on: https://gerrit.mot.com/2575379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-17 05:06:25 -05:00
tin_bingtai.zou_tmp
99381ee852 optimize aw963xx driver && insert usb calibration
1.optimize driver about multiple mode
2.insert usb calibration(aw config flag in dts)

Change-Id: I392f5cf266647abf3b6eb0aa649f8061d944871b
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2575217
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-04-14 02:48:10 -05:00
tinno61
fde9bdffea bangkok focaltech tp modify for system crash
bangkok:remove focaltech fod log,because too many logs in
interrupts can cause system crash

Change-Id: Ia7444d41a1e60398b5524938299e457b8f96527d
Reviewed-on: https://gerrit.mot.com/2574799
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
2023-04-13 01:00:24 -05:00
xuwt2
8cc8dc29b0 sc760x_charger_mmi: Support THERMAL_RATIO_CONTROL
Dual battery thermal mitigation, Add equal ratio thermal level control
Define THERMAL_RATIO_CONTRO to enable this feature.
It will ignore thermal-mitigation-level and force to rewite new thermal
level through calculating the (batt_fcc_ma/thermal-ratio) of parnter
battery

Change-Id: Ib44eccfe540b6d8d705bb53fb5001207288a7b85
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2567981
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-12 01:34:26 -05:00
litong20
e831fbc96e cw2217b: add some logs for soc jumping debug.
In order to debug the problem of fuel gauge soc jumping,
add some debug logs,

Change-Id: I5b6adf50d496126059366a0c322915a0f533acd4
Reviewed-on: https://gerrit.mot.com/2567828
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-04-06 21:24:52 -05:00
Wenge Zhu
6f245b1a79 Check if i2c device available before add driver
TP:
Check if i2c device available before add driver.

Change-Id: Ia53cf3f952c5742632c0e105db95e19e4d02ce31
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2565327
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-04-04 08:26:48 -05:00