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
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
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
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
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
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
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
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
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>
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
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
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
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
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
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
force 5V/2A charging
for bring up process
This is only a temp patch. We need revert it after
charging policy ready.
Change-Id: I3b05ee22b59ac8c2febf8b956fa051f8d6f0b334
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2076418
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
The kobject_get_path function is not in Google's
whitelist, so reimplement the function.
Change-Id: I162e4d91cc5d8e918da1e7497fba7d48df9e86ef
Reviewed-on: https://gerrit.mot.com/2076930
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
TP
The kernel_write is not in google white list, and we only need the test
data saved during the factory build.
Change-Id: Iad0cb0a32902af116425ef26d53397d53973f7db
Reviewed-on: https://gerrit.mot.com/2075505
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Because 9916 and 9916P use the same firmware file and configuration file,
so the chip does not need to distinguish between 9916 and 9916P.
Change-Id: I08921833b01ee1700bd6c81bbf10e204e57b080a
Reviewed-on: https://gerrit.mot.com/2070699
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key