Commit Graph
2983 Commits
Author SHA1 Message Date
longc c92029353b fogona:add fogona booster[1/3]
add longcheer booster bringup
for driver

Change-Id: I22f0dfee292f49211f388840754a6d83039b7c3c
Reviewed-on: https://gerrit.mot.com/2671628
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: <longc156@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-07-12 02:00:35 -05:00
Bruno Oliveira 299187823d Implement wlc_tx_capability for cps4019
WHAT: Implement wlc_tx_capability to report if the current charger supports led
      and fan. Use the same op_mode flag that was used at wlc_fan_speed and
      wlc_light_ctl to identify the support.
WHY:  Wireless Charging HAL 2.0 needs the wlc_tx_capability to identify which
      feature is supported, and that was not needed at HAL 1.0, so miami could
      control the 50W charger. After upgrading the HAL, miami could not control
      the 50W charger anymore, which was a regression.

Change-Id: I312d7b77ca6d79e41d420e87e024842e0c22520c
Reviewed-on: https://gerrit.mot.com/2649794
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-07-11 09:03:55 -05:00
xuwei9 ce287da8c3 Cw2217:kernel 5.15 compatible compile change
CW2217 kernel 5.15 compatible
compile change

Change-Id: I6190b193fbcc159308a1bc91dbd689f28b3829a9
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2672112
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-11 04:33:13 -05:00
Wenge Zhu 5f7aa81a93 Enable CLI touch large palm detection for lynkco
Optimize mistake touch when phone on pocket both on display on and
display off scenarios,more than or equal 70% touch area touch FW will
report palm event and event will be dropped.

Change-Id: I3c4ba8d093d889189c1eada93836948459cb33ef
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2666127
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-07-11 00:50:39 -05:00
liuzhen ba687e647c charger:optimize the qc3p reduce vbus voltage
optimize the qc3p reduce to voltage and avoid overflows of
requested voltage values.

Change-Id: I44bc0a2f275bef8cb191e26eda3024dea9bceb3a
Reviewed-on: https://gerrit.mot.com/2667434
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-06 02:56:33 -05:00
Yuchang Guo 38bd346332 sx933x:setup build on kernel 5.15
sx933x:
setup build on kernel 5.15.

Change-Id: I9f19111b087f3572879df4368e1848e5d150d23d
Reviewed-on: https://gerrit.mot.com/2666412
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-06 01:52:30 -05:00
ontim52 0ecccf6663 fogor: touch: CQA-test add IC name
1. modify ic name
2. modify ic name code

Change-Id: Ic7e313f5193d5ed3e4fca4becfee1575d6e04a1c
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2666405
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-07-05 22:00:38 -05:00
xuwei9 83f446f45e wt6630 remove unused pointer struct
Remove unused pointer struct
at fogo.

Change-Id: I458d243c1960a89a228a2034cae8016907625f85
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2666341
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-07-05 05:02:08 -05:00
xuwei9 45758e3302 qti power_supply header at kernel 5.15
qti_power_supply.h header file
only avavil at kernel-5.15.

Change-Id: I29dbe8d3ef5cfb9fac3be46e41c30e67f42e500c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2666195
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-07-05 03:40:46 -05:00
xuwei9 45cbdfc07e charger motorola module kernel-5.15 compatible design.
fogo charger bring up motorola module part.
Kernel-5.15 have different compile makefile requirement.
Compatible 5.15 and previous kernel version.

Change-Id: Ibf1a28578de068b550d8ccabf8c0dec15bed7295
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2618261
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2658446
2023-07-05 02:36:03 -05:00
Yan Zhang 62eb97b360 : Add Chipone fps v1 driver module
Add Chipone fps v1 driver module for fogona T 2th fingerprint
source bring up

Change-Id: I5732ed23a49416124d15be339b4d02406cf9dd32
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2664219
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-07-05 01:55:08 -05:00
ontim52 c94a4cc151 fogor: tp: 1st icnl9916c CQA-test function
1. modify self-test function.
2. modify 1st tp depend on mmi_info.ko
3. modify 2nd tp depend on mmi_info.ko

Change-Id: Iba103e204af8ec98c3d7e97936330014d13bc8d2
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2658984
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-07-04 21:48:06 -05:00
wangdp11 1a41085023 ctwo: solve tof compile issue
Details:
The flag -Wno-unused-but-set-variable will cause
8450 compile error, so add a macro to diff.

Change-Id: I1938183af983c9b29ff2489c647f30601d00649d
Signed-off-by: wangdp11 <wangdp11@motorola.com>
Reviewed-on: https://gerrit.mot.com/2662655
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: <shihl5@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: <chenzm8@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-07-03 22:11:08 -05:00
shihl5@motorola.com 0d7f3d6217 ctwo:fix compile issue
Details:
fix tof compile issue

Change-Id: I270d852abdc05bf6322ac968f3abcd6980a31609
Signed-off-by: shihl5@motorola.com <shihl5@motorola.com>
Reviewed-on: https://gerrit.mot.com/2661450
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-30 03:52:44 -05:00
Felipe Carrasco eccd8995b7 Revert "(CR): ctwo: enable TOF phio tool"
This reverts commit 840ef5295c0b5c6edca8cbeaaa30793c797f64bb.

This change is breaking several builds on Android T and U:
Example:
https://jenkins.mot.com/job/T2SR33_rhode-g_userdebug_mr_r-qsm2020_test-keys_continuous/
https://jenkins.mot.com/job/UTGN34_genevn-g_userdebug_ms_r-q8450_test-keys_continuous/

Error message:
In file included from build/make/core/binary.mk:9:
build/make/core/base_rules.mk:335: error: vendor/st/laser_daemon/vl53l1_test: MODULE.TARGET.EXECUTABLES.vl53l1_reg already defined by motorola/kernel/modules/drivers/input/misc/vl53l1_test.
06:28:17 ckati failed with: exit status 1

Change-Id: I5a253adf9c1be3d6a31e4d597b9a8ea269b2ec3f
Reviewed-on: https://gerrit.mot.com/2660663
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Gilberto Gambugge Neto <gambugge@motorola.com>
Submit-Approved: Gilberto Gambugge Neto <gambugge@motorola.com>
Tested-by: Gilberto Gambugge Neto <gambugge@motorola.com>
2023-06-29 09:49:42 -05:00
chenshitao ae81f70eca driver: fogor: tp gki issue adapt
tp gki function:
    gki issue adapt

Change-Id: I0c096bb86a54bf26f108d4bf1eee025b16f9a68b
Signed-off-by: chenshitao <ontim51@motorola.com>
Reviewed-on: https://gerrit.mot.com/2659836
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-29 04:54:53 -05:00
wangdp11 0118a04fa7 ctwo: enable TOF phio tool
Details:
1.Enable phio tool.
2.Solve tof kernel build error.

Change-Id: Ia395cMontana9657de7fcb527e83aad5c1dd2c0f3209
Signed-off-by: wangdp11 <wangdp11@motorola.com>
Reviewed-on: https://gerrit.mot.com/2645067
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-06-28 21:12:30 -05:00
Wenge Zhu a2ea66c605 MOTODESK-12263: Change touch gesture mode key values
1.KEY_FX will report to APP and this may cause APP mistake reaction.
2.Change touch gesture mode key values:
single tap: KEY_F1 -> BTN_TRIGGER_HAPPY3
zero tap down: KEY_F2 -> BTN_TRIGGER_HAPPY4
zero tap up: KEY_F3 -> BTN_TRIGGER_HAPPY5
double tap: KEY_F4 -> BTN_TRIGGER_HAPPY6

Change-Id: I9e732020e4ad78b05ee1aa42e7e68a8952716392
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2655037
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-06-26 05:02:12 -05:00
liuzhen 497fec0650 Open USB log in factory version for bangkk[3/3]
In order to track the usb abnormal disconnect problem,
open some log about usb in factory version recommended
by Qualcomm for bangkk.

Change-Id: If317121e650bd48fd09e50825ecd3fa83cc77c02
Reviewed-on: https://gerrit.mot.com/2654715
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-26 04:04:15 -05:00
zhuangnk1 3ba68f548f Add st54spi_gpio driver for ST54L eSE
Add st54spi_gpio driver for ST54L eSE
It is used for QC esepowermanager to reset eSE

Change-Id: Ie4e88f6ea56c3d60f90e88e750be6b25c0500508
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2654151
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-06-24 21:55:26 -05:00
Yan Zhang 09039778a9 Support game idle mode for focal touch
Porting from
1. (CR) aion: dlkm: Support game idle scan rate feature 
   for ft3681,https://gerrit.mot.com/2538693
- Support for game idle scan rate feature, keep 1500hz scanning
frequency for 10 seconds when entering idle in game mode.

2.(CR) aion: Change edge suppression cmd in normal mode
- To prevent conflicts with edge suppression commands in game mode,
match firmware to change edge suppression commands in normal mode.


Change-Id: I6303d367752d9bf7709e1b42df4fa2ce6c5fd33b
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2649117
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-21 02:25:38 -05:00
ontim52 d905a5eaca fogor: kernel: 2nd tongxingda ili9883c TP bringup
1. add 2nd ili9883c TP code
2. add TP build.

Change-Id: Iee5821d2b5f92be73c5184d5ac386afd559673e7
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2647002
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-20 05:10:31 -05:00
zhaoxp3 672359fba1 AndroidKernelModule.mk: add bengal in Build_external_kernelmodule.mk
add Build_external_kernelmodule.mk for new sm6225 base.

Change-Id: I1b1b7a82ac9040e0c6d0f66af34bf4d09ee0ec97
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2647687
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-20 01:10:06 -05:00
Yan Zhang 4453c5b727 : Fix goodix touch GKI build break
Fix goodix touch GKI build break because of undeclared coredata is 
referenced by new added clip touch feature.


Change-Id: Ibc68d98965c26e1146a57bf44f90cc219f5b9173
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2649119
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-20 01:01:07 -05:00
Konstantin Makariev 29f4a4a3f6 goodix_brl_mmi: clip area support
Added support for clip area feature. This alows suppressing touch
events reported outside or from within the clip area.

Change-Id: I2fccf524df373a5a3848d884f2ecf33d4e667f5a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2642708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-06-16 13:40:22 -05:00
Konstantin Makariev 4580159511 touchscreen_mmi: clip area support
This introduces a new class method to suppress touch events sourced
outside or within specified clip area. To enable suppressing touch
events reported outside specified clip area, add the following DT
property:

mmi,clip-area = <xUL yUL xBR yBR>;

Suppressing touch events from within requires DT property:

mmi,clip-inversion;

Class driver's method will send forced lift event when an active
touch moves outside/within clip area and indicate this to the vendor
driver by setting type to TS_COORDINATE_ACTION_FORCE_LIFT in
touch_event_data structure.

Change-Id: I327af4441e179e381be97cb8083698d76882caa8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2641660
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-06-16 13:40:10 -05:00
chenshitao c7aa054681 driver: fogor: tp tm-icnl9916c tp bringup<2>
tp function:
    tm-icnl9916c bringup in driver

Change-Id: I4d965e325f0c94df8a3c3969cd8cf8ea72a2597d
Signed-off-by: chenshitao <ontim51@motorola.com>
Reviewed-on: https://gerrit.mot.com/2645706
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-16 04:41:33 -05:00
Alison Venancio b27503a054 Berlin Row - Avoid fts_tp continuous wakeups
Keep stay awake to avoid device suspend and
additional check senser_sleep for pm suspend.

Porting of https://android.googlesource.com/kernel/msm-modules/fts_touch/+/b80139cb3eb11e1fccaafeb0bf5bfb823d5ca027%5E%21/#F0

Change-Id: Ifc508aa4481f851ac3f9d1b1a5040d0d5e69ac78
Reviewed-on: https://gerrit.mot.com/2642844
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-15 07:54:36 -05:00
Lei Chen d8037661fe mmi_charger:init thermal parameter at high temp
PD charger hard reset as the thermal request current is 0.
Init the thermal parameter at the highest thermal level.
Pick from https://gerrit.mot.com/#/c/2006952/

Change-Id: If07718fa3d7f8e51ce8df7ad05ff740519c4aab3
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2643326
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2023-06-14 05:21:42 -05:00
weimh1@motorola.com 71c50ad441 fogor/sensor: adjust sx937x driver format
1.adjust sx937x driver format
  2.motorola/kernel/modules/drivers/misc/sx937x/sx937x_sar.c

Change-Id: I2733b5c18da1bd3c35853b5112f95d870b44b8ca
Signed-off-by: weimh1@motorola.com <weimh1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2643279
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-14 03:33:56 -05:00
Rafael Ortolan e5de27e68e nova_0flash_mmi: conditionally enable spi CS delay feature
Following changes are made to fix Devon build issue:

- conditionally enable spi CS Hold Time feature based on product flag
- include proper spi header file depending on kernel version

For details please refer to: https://gerrit.mot.com/2630767

Change-Id: I7d1e6e55ccde912442f11c71f1f92e5302318315
Reviewed-on: https://gerrit.mot.com/2637062
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bruno Oliveira <brunosoe@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-13 07:32:06 -05:00
xuwt2 687d73d12d sc760x: Enter Low power mode when system suspend
Entering Low power mode when system suspend
Exiting Low power mode when system resume

Change-Id: If809ab448e6b294c1dcd0b6186aaaeeeadb4aca7
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2642143
Reviewed-by: litong <litong20@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-06-13 04:20:14 -05:00
Bruno Sampaio Leite 53c07ddb44 Update battery status before reading
Capacity is not getting updated because of wrong status
being checked by update capacity. Force updating battery
status before reading it to decide about updating capacity.

Change-Id: I1d8f68d7fb855aa878284b34303d04ccf1c5c2ab
signed-off-by: brunosmp@motorola.com
Reviewed-on: https://gerrit.mot.com/2633986
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-12 09:27:38 -05:00
Lei Chen 78a2c2f396 smbcharger:support power_watt report
SystemUI need power_watt uevent to show the charging
round icon. Support power supply prop power_watt report.

Change-Id: I88eab49f3e56ba56b12432bc284466456046670b
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2640041
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>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-12 00:34:27 -05:00
Bruno Sampaio Leite 0e71c391e5 Add capacity_level to discrete charger driver
Miami is having a Kernel Panic when battery reaches 0%
while device is charging. Android system uses battery
capacity_level prop to control shutdown when device is
charging  but battery reaches a critical level. Add
this prop to discrete charger driver.

Change-Id: I6a278ba0157a22a54ecedf0cf26f73361e711354
signed-off-by: brunosmp@motorola.com
Reviewed-on: https://gerrit.mot.com/2625350
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Bruno Oliveira <brunosoe@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-09 08:30:17 -05:00
Lei Chen ed5a5e73c0 sbmcharger:optimize the pdo select
bangkk select the max current is beyond the sourcecap pdo.
Optimize the pdo max current when the pd power is lower than
18W.

Change-Id: Iaded43336951bcfbd9620d45a89c3517ccd058a9
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2638964
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Submit-Approved: Jira Key
2023-06-09 01:02:03 -05:00
Wenge Zhu c0990aa3fe 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: I9befe0b38669af4085d268e3564d966ee16bfada
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2637539
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-06-08 03:00:18 -05:00
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