Commit graph

2,276 commits

Author SHA1 Message Date
mahj8
1a0e36fd6b charging: dcp current base on dtsi config in mmi charger
dcp_pmax is config in mmi charger dtsi,
dcp current setting base on dcp_pmax

Change-Id: I7257cb586557bcf24a93ac4f53f5b50339731eb1
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2093336
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 05:12:57 -05:00
gongsc1
e2af86a729 charger/bq25890: improve charger BC1.2 detection & rerun apsd
improve charger detection
for bq25890

Change-Id: I63d50facde8478b2e8064b44701a1cadbaa92ece
Reviewed-on: https://gerrit.mot.com/2089481
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 03:00:39 -05:00
chailu1
37e858962c typeC: import correct Modules.symvers in GKI build mode
When importing the Modules.symvers in fix path, the GKI module will import an
incorrect one and cause module load fail in gki kernel mode.

Change-Id: I1c089b5e9dbbe4b4922921df6f3923cb9c748d2e
Reviewed-on: https://gerrit.mot.com/2090513
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 00:34:17 -05:00
Yan Zhang
da19276c28 dlkm: Add focaltech fps module
Add focaltech fps module to bring up side fps
FT9391.

Change-Id: I52a4b1a328a7e7135ab8743cdad76c513a4ff9eb
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2085146
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-10-18 03:56:00 -05:00
dengwei1
690f92f0f4 dubai: vib update file name
vib update
file name

Change-Id: Iae827671629dd0a05589e97bab1584c4e52ac85f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2092018
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-10-18 03:55:04 -05:00
liuyc20
7645003f1e power: discrete charger policy create force_chg_fail_clear
create force_chg_fail_clear node for
compatible with tcmd test.

Change-Id: Id7aab73731e9bc689036c5fee34f7738f603fdf8
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2091898
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-18 03:54:00 -05:00
dengwei1
3d97a9bb96 dubai:input touch init setup
input touch
init

Change-Id: Iad4ee15dd060b38fc8d0c8925149a5906fcf94cc
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2090842
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-10-18 01:37:08 -05:00
litong20
bd038d5ab1 Update goodix berlin touchscreen driver to v1.2.3
1. Modify the factory test code
2. Modify the waiting time during the firmware upgrade process.
3, Report the tile_x and tile_y of stylus.

Change-Id: I8e398ff731e59b179edf28c6d5cd5923ec0083fe
Reviewed-on: https://gerrit.mot.com/2090807
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-10-18 00:40:00 -05:00
liuyc20
76f540cc95 Power: discrete_charger policy create factory tcmd test node
create /sys/class/power_supply/battery/
force_chg_usb_suspend
force_chg_auto_enable
force_chg__ibatt
force_chg_iusb

Change-Id: I19fc0231ab7bf3ae6020130ea29b09576f12425b
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090584
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-10-17 21:16:54 -05:00
mahj8
db26e79d21 charging: optimize bc1.2 detect for sgm41542
optimize bc1.2 detect and rerun apsd
for sgm41542

Change-Id: I711f95ead0d3d2c4c20a8d0e796b848fc588f03f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2089798
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-17 20:57:35 -05:00
chenlj2
709e461604 DLKM/sar:optimise sx9375 driver on bo
-optimise log output
-add register_read store function

Change-Id: Idfe5cf70f23f68fb3c87a2376c5b4da68f503018
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2090589
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-10-15 03:37:15 -05:00
liuyc20
1876dbc76d power: add get charing current api for discrete_charger_class
add get charing current api for discrete_charger_class
factory tcmd will use this api

Change-Id: I1a6011fcf7b936329e6ae1b7787b6e86078b8915
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090448
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-15 02:20:22 -05:00
Bernie Moreno-BERNIEM
8042a207c8 power:fet_control: ironmn: Fix typo in chrg-fullcurr-en-gpio
Fix errant 1 placed in chrg_fullcurr_en_gpio assignment from parse_dt.
Should be a 0 param instead. Also check battplus_state at beginning
and terminate work is already set.

Change-Id: Ia69bfa919452e03423d669afd633fd9af3599966
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2089379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-10-14 15:41:14 -05:00
wuwl10
cff2faf131 dlkm: add new regulator vibrator driver
This driver can support  regulator to driver a vibrator.
It was used on cypf by r first time.

Change-Id: Ib62747bacb225d1c730cf22a29bbe133aa5bd793
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2089627
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Submit-Approved: Jira Key
2021-10-14 04:18:01 -05:00
cuijy1
854549da23 hall:fix not report issue
fix not report issue when reopen

Change-Id: Ic350af4ec2440e8ac9ecbe322de36bc50b8d168e
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2089507
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: qiurp1 <qiurp1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-10-14 03:51:54 -05:00
Konstantin Makariev
9e89c022e5 pct1812_mmi: custom config options
This change includes the following:
 - build ID made by concatenating FW version (reg 0x7e) and Parameters
version (reg 0x7f) info
 - boot status check in the function that reads extended info
 - added custom config options

Custom config options include:
 - max XY coordinates
 - flip reported coordinates along X/Y
 - limit the minimal distance reported in scroll gestures

Change-Id: Ia8cee82df0d69de1efd9b58e18d08f5d495254c9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2084791
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-10-13 19:52:35 -05:00
Konstantin Makariev
1ddc49de86 pct1812_mmi: report scroll gestures
Scroll gestures will be reported as REL_WHEEL for vertical and
REL_HWHEEL for horizonatal. Motion from left to right for horizontal
and motion from top to bottom for vertical scroll gestures reported
as positive value while motion in opposite direction will be negative.

Scroll distance is measured in tix - artificial units representing
distance traveled by finger between 2 consequitive ineterrupts.
Slow scroll gesture generates only few events while fast gesture will
mimic gradual slow down with a bunch of small steps.

Change-Id: Idaa3df2f8b6297e42f198f5f3750753449585258
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2066795
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-10-13 19:52:24 -05:00
chailu1
9ee869b9f0 pd: add PD20/PD30 interface for tcpc
typec/PD
add PD20/PD30 interface

Change-Id: I0ad37aefca3de913eaa806edbeda80e5ce0272aa
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2086795
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-13 01:53:33 -05:00
chailu1
0c1475fe19 pd: create pd adapter class
typec/pd
create pd adapter class

Change-Id: I9cda62e369a3de31e133ad433f2e7991de44b650
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2086813
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-13 01:53:31 -05:00
gongsc1
cd42eda00b charger/bq25890:export api for charger class
register charger device and export api
for charger class.

Change-Id: Ifa42432344714da5390b8557c950df6d1dc53017
Reviewed-on: https://gerrit.mot.com/2087906
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-13 01:33:01 -05:00
litong20
8b83241083 goodix: support stylus mode switching.
TP:
Support stylus mode switching.
0 00 05 A4 00 A9 00 //close stylus, finger:360 Hz
00 00 05 A4 01 AA 00 //enable stylus, finger: 120Hz stylus:240Hz

Change-Id: I05d38631fa8cd4a2b35597dd182578b0c9e4909e
Reviewed-on: https://gerrit.mot.com/2088362
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-10-13 00:51:44 -05:00
gongsc1
024f6dc9d6 power: discrete charging solution intial version TCMD driver
Add mmi_chg_tcmd driver for tcmd
Porting from Moto solution :(CR) and fixed build err

Change-Id: I513227c592502ccae5fdcbd77018eb0a3e68d179
Reviewed-on: https://gerrit.mot.com/2059917
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2021-10-12 22:34:22 -05:00
tanhua1
ad3d45bb69 backlight: fix brightness flash issue
move backlight enable after brightness level update
while backlight on, to fix the brightness flash issue.

Change-Id: Ib3cfa1814edd3280db808091fe4b98eda32fa848
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2088179
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2021-10-12 04:44:11 -05:00
Yan Zhang
d85f57f55f Upgrade egis driver for supporting ET721
Dubai will use ET721 Fod sensor, need to upgrade
egis rbs driver to support FOD.

Change-Id: I5974aafe1cc3d85caae3260fdfa4095beda6a4c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2071992
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-10-12 01:58:29 -05:00
mahj8
bf8ec70a36 charging: fixed charging policy kernel panic
return EPROBE_DEFER when charging policy can't get
external power supply for avoiding kernel panic

Change-Id: I8c829181871f3fd732933b0c0704586cbebb554b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2087915
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-10-12 01:33:24 -05:00
litong20
dc8be450b4 Modify the config id and build id
1. Modify the config id to touch class common time format.
2. The reset operation has been performed after powe on,
so delete the redundate reset operation.

Change-Id: Ia93c8491c62f51d7effc56479462bb90a7a43c9f
Reviewed-on: https://gerrit.mot.com/2075360
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-10-11 06:02:31 -05:00
gongsc1
eff83dd6b9 charger/bq25890: stop ADC when system shutdown
REGN have 1 sec continous pulse when ADC is in Continuous Conversion mode.
REGN pulse will trigger PON when system shotdown ,
Stop the ADC could disable REGN signal and avoid reboot issue when system shutdown.

Change-Id: I333d9b4ac44520d9cd3b3a1fb2a3b64cba54ad2b
Reviewed-on: https://gerrit.mot.com/2086454
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-09 09:22:59 -05:00
mahj8
c20e18eae8 sgm41542: provide some api for charger class
register charger device and provide some
api for charger class

Change-Id: I2c458b2f0f33bca9e0b24ae6602b14c0ad492d6f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2085447
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
2021-10-09 05:21:29 -05:00
mahj8
52254262cf charging: add discrete ics charging policy
add discrete ics charging policy
remove pm7250b solution

Change-Id: I7f6dae86ccea4a3bd79dafbe8cd334962f02a162
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2077581
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-09 05:20:58 -05:00
liuyc20
1426fec0a8 power: cw2217 fg's name rename to bms from battery
gerrit.mot.com/#/c/2077581/ will create /sys/class/power_supply/battery
To apply for charging policy,
1.rename battery dir to bms.
2.return current*1000

Change-Id: I5895803bbd6ccfaefb1918dad23f5c9ac9aa0374
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2085227
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-09 05:20:15 -05:00
liuyc20
1affbeb16b power: rt9426a fg's name rename to bms from battery
gerrit.mot.com/#/c/2077581/ will create /sys/class/power_supply/battery
To apply for charging policy,
1.rename battery dir to bms.
2.current and voltage *1000
3.online rename to persent.

Change-Id: I224d53b6afb9b59b3f7c1e450e91a1f0de2ab502
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2085138
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-09 05:20:08 -05:00
liuyc20
5b8c5bca15 power: cw2217 fg add fcc/fcc_design info
add fcc/fcc_design info to
charge policy.

Change-Id: I3db04ae158538c1a8761938a7863e31226ba647d
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2086300
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-09 02:49:03 -05:00
dengwei1
b5ca4b4d3d dubai: vibrator init setup
vibrator
init setup

Change-Id: I3c640d960cdd572d7178aaa535df6334f24cfa74
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2086352
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-10-09 00:33:09 -05:00
liuyc20
2e2446261f power: rt9426a_fg introduce supprot muti-battery parameter func
1.if find utag battid,check and find utag_battid parameter,if check fail
  use default batt id.
2.if no utag battid,use dts default id.

Change-Id: I8cd036e68e6041944e57a4Montanaecd9ed357eb231c
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2081431
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-08 21:26:34 -05:00
liuyc20
1ad7af50ba power: cw2217 introduce mutil-battery parameter func
1.if find utag battid,check and find utag_battid parameter,if check fail
  use default batt parameter.
2.if no utag battid,use dts default id.

Change-Id: I0c56fdd0c1770a4291ebb1811118bdb7035cd624
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2081363
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-08 21:26:16 -05:00
kalathik
cff601d82b UWB: support build in kernel-5.10
Later version of kernel we need Makefile changes
to include dependent libraries.

Change-Id: I7c42cf935006ac40e9fae6169b2c43327952ca8c
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/2076379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-10-05 23:13:55 -05:00
cuijy1
a86a9d5763 sx937x:enable usb cal
use KBUILD_OPTIONS instead KERNEL_CFLAGS

Change-Id: If169afaf37096f8fb34a7a8cea2a478c9c791d13
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2080356
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: qiurp1 <qiurp1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-09-30 04:42:19 -05:00
gongsc1
584d7edf7d Charger/bq25890: force 5V/2A charging
Disable ILIM pin from register and force 5V/2A.

Change-Id: I5b21a5fc69373eeb4a9764782c4cab39820b1a1c
Reviewed-on: https://gerrit.mot.com/2075287
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-30 04:05:56 -05:00
liuyc20
23de05b6b5 power: cw2217 fg update battery parameter
update correct battery parameter
.

Change-Id: I3f387d670a41c055e2d585fe09fe0b0f6a81f5ce
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2080247
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-30 01:06:17 -05:00
liuyc20
39de3b3800 power: rt9426a register charger_full node
charge_full is for FCC(full charge capacity)
charge policy will use this charge_full node

Change-Id: I3a42d0d3c61e6b48ac4a8eeba698e25cad36c5a5
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2079623
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-09-29 20:53:45 -05:00
liuyc20
8210692448 power: apply 1th battery parameter for CW2217 fg
apply 1th battery parameter that from CellWise lab
overlay temporary battery parameter.
1th batt_id: SB18D00294

Change-Id: I2c24863d6d130c5eb08d3616ebb8323a58f19d3e
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2079246
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-29 03:56:37 -05:00
Bernie Moreno-BERNIEM
5b593d5497 power:fet_control: Add logic for ironmn EVB HW 2nd Batt
EVB HW does not monitor Vbatt_NB so decide battplus_en Low-Z path
switch control based on main batt only. When Vmain near centered
(mid) Voltage, and low current draw, <500mA, assert battplus_en.

Change-Id: Ib03b46c80518a87fdd7a54c9dc4ecb797477a68d
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059822
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-09-28 14:15:44 -05:00
gongsc1
a6feb6055a charger/bq25890:disable maxcharge handshake
Disable maxcharge handshake to allow HVDCP detetion as vendor
suggestion.detail operation is write 0 into REG02/bit2.

Change-Id: I0b45d48bd431bd81ae634ec1e4ada71da4e1b020
Reviewed-on: https://gerrit.mot.com/2078086
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-28 05:13:03 -05:00
gongsc1
5ccd952d01 charger/bq25890:pull charge enable pin low when charge
config charge enable pin gpio to low during init charge and release
it in shutdown to avoid current leakage.

Change-Id: I91595892d3492f33db9859da146981d9f3b128f8
Reviewed-on: https://gerrit.mot.com/2077229
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-28 05:12:41 -05:00
Xiaojun Ji
7106c1eae9 Revert "(CR) build: Only include modules needed by product"
After apply https://gerrit.mot.com/#/c/2078132/, the FPS is available after
flashing GKI but the touch(focaltech_v2_mmi) will be unavailable on courfr

This reverts commit 284e4b4bb7693a6c9552afefe5b4fe8944baa0b0.

Change-Id: I9f6ff86b0d9179aedc66c09e9358a052a01b3fc4
Reviewed-on: https://gerrit.mot.com/2078503
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Submit-Approved: Jira Key
2021-09-28 04:39:34 -05:00
gongsc1
8333c568ce charger/rt9467:remove MMI_STOPSHIP change.
annotate walkaround solution and remove MMI_STOPSHIP tag.

Change-Id: Ia6df94d69360673970447e4fe473d9de05e8286a
Reviewed-on: https://gerrit.mot.com/2078206
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-28 01:35:27 -05:00
yanyh2
c86591b770 Add a new DLKM to support smart pen charger driver
Create a new DLKM smart_pen_charger.ko to be the driver
for smart pen charging management.

DeviceTree property:
mmi,pen-psy-name = "wireless";

module parameter:
/sys/module/smart_pen_charger/parameters/simulator_enabled
N: Use pen_data from ADSP over OEM glink
Y: Use the simulator_data from user input over sysfs nodes

sysfs path: /sys/class/power_supply/wireless/device/
pen_control: wo, u32 value range:
  PEN_CTRL_DETACHED,
  PEN_CTRL_ATTACHED,
  PEN_CTRL_CHG_EN,
  PEN_CTRL_CHG_DIS,
pen_id: rw, u32
pen_soc: rw, u32 value range: 0~100
pen_status: rw, string value range:
"detached", "attached", "ready", "charging", "discharging", "charged",
pen_mac: rw, string value format: xx:xx:xx:xx:xx:xx
pen_error: rw, u32

Uevent to HAL:
POWER_SUPPLY_PEN_ID=xx
POWER_SUPPLY_PEN_SOC=xx
POWER_SUPPLY_PEN_STATUS=xx
POWER_SUPPLY_PEN_MAC=xx:xx:xx:xx:xx:xx
POWER_SUPPLY_PEN_ERROR=xx

Change-Id: Ic3466d9bca7fa9b30ac7256f9e05dc1022a4c500
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2076942
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-09-27 04:49:37 -05:00
yanyh2
6f1bbe9f80 Add OEM glink notification and notifier call chain
Add OEM glink notification for qti glink charger and
add qti charger notifier call chain to extend the qti
glink charger to be as communication proxy between AP
and ADSP battery manager.

Change-Id: I4351e2842e5f2105461a0d1d4bd2e5c8cdcd5d3e
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2076935
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-09-27 04:48:24 -05:00
gongsc1
3c4fc7ac25 charger/bq25890: add usb properties
1.add more usb properties for bq25890;
2.define bq2589x_state struct to collect important status.

Change-Id: I4c61cecb763c6a63b7360eb0bfbb07513dc3a2a1
Reviewed-on: https://gerrit.mot.com/2072511
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-27 00:48:53 -05:00
litong20
94555cd54a Resolve compilation errors for unused functions
TP:
Resolve compilation errors for unused functions ts_mmi_kobject_get_path.

Change-Id: I22b213db2304f4c3c73867ad9625f20715a4a528
Reviewed-on: https://gerrit.mot.com/2077104
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-09-27 00:27:36 -05:00