As bq2589x_adjust_absolute_vindpm api sleep 1s to get vbus
voltage, but it will cause charger type update to charging policy
slowly. So directly call bq2589x_set_input_volt_limit api.
Change-Id: I4890f8b1aad066ceb8fe5b3655ac77a4620b7f87
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2097216
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As external charging ic is different, some charging ic will trigger irq
to update charger type unknown when set HIZ mode. So setting
icl 0 mA instead of usb suspend feature. The min icl current of some
charging ic is 100mA. We also can think usb suspend.
Change-Id: I044073443ce6675c48a1b21bf5e7066766c3774b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2095741
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
1. dsi_freq_head is undefined, so add Module.symvers of display driver.
2. Use the KBUILD_OPTIONS to pass the configuration parameters to
the Kbuild filed.
Change-Id: I24d792a26cb1d3a9f8beca8089cea7116ae1a669
Reviewed-on: https://gerrit.mot.com/2097103
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
In typec tcmd test, it will check typec cc status, so we
add this interface for tcmd
Change-Id: I00f3b0c09f07d2479a5676f2f43de96dc7bc97fe
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090827
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
fg_extreg_table parameter is different between different battery
so move it to battery's dts file.
Change-Id: If881658da98c403498e2681bb686a01c87670d8a
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2093366
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
FOD: Foreign Object Detect,
It is a port of Wireless RX tunning development.
provide thoes API for WPC certification.
Change-Id: I6694dc1fa2c841ac189a3057281f4779d0c08ed7
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2091619
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
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
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
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