If sometimes dm drop to 0V slowly, then vbus increase to 12V as
dp 0.6V dm 0.6V. So first drop dm to 0V and then drop dp to 0.6V.
Change-Id: I8db3b6273dd4be244b75513a0103a021719bf070
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2109927
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Submit-Approved: Jira Key
Logic control for vbatt2 balance_en_n (gpio105), battplus_en (gpio90),
chrg fullcurr_en (pm8350b_gpio8) and vbus_ocp_fault_n detection.
Enable low-Z battplus_en when vbatt2 is within 200mV of vbatt_main lev
Otherwise, leave in balance_en_n path. Charge fullcurr_en dflt to
disabled (low) and set high on charger connect, with vbus_ocp_fault_n
logic high and mainbatt_current < 1C (2500mA). Full charge current will
be 5000mA for both batteries in parallel.
Finally, check for factory mode state or Not Charging + battplus_state
High. If either condition met, skip out of fet_control workfunc and
delayed work. Future charger detection will restart delayed work again.
Change-Id: I108f5d4e7382d67ad874db03f498dfeac729a9d2
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2110359
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
If online prop is 1 and power supply type is MAINS, healthd will
think charger type is AC. So config charger power supply type
is unknown to avoid conflict with usb power suply.
Change-Id: I6e0baf4c40df1cc4f42d83b44bb918e2708a2bdc
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2108494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
User an orderly shutdown for factory kill instead of a
kernel power off. The orderly shutdown will attempt to
call the reboot binary from userspace first, and then
fallback to kernel power off if it fails.
Change-Id: I52bac148c92a2aaf6a3929b4c1a2709e4b3421af
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2108688
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
1. Close the stylus clock when system suspend and the stylus
mode exits.
2. Add 16ms delay between each command.
Change-Id: I6dff47410315272167d47a733b1058736f72c737
Reviewed-on: https://gerrit.mot.com/2108295
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
The mobicoreDriver from Trustonic drop 410a-V108 was not including
the correct ion header when CONFIG_ION_SYSTEM_HEAP is disabled, causing
a build failure.
Change-Id: Ie324ba066fb1a487a13c86716af8a79a3ce3b16a
Reviewed-on: https://gerrit.mot.com/2107997
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
the CW2217 needs 2.5s to biit up when the battery is first buttoned.
During this time, mmi_discrete_probe will delay to waiting get bms_phy.
so get the usb_type type becomes longer. Therefore,
the usb_real_type cannot be obtained immediately after the pr_pd_manage_probe is started.
The mmi_discrete can quickly probe pass if early register bms_phy
and factory test node can created as expect.
Change-Id: I3628d8f1a4f8ca1fbdf19f49bd63a3cd622e5cd4
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2106564
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
Update the Trustonic TEE driver module with the version available in
kinibi drop 410a-V108.
Kinibi version t-base-QC8996-Android-410a-V108-20211010_233907_31049_105441
Change-Id: I58908bf3c0ea22cc7c19f8e70696e5b7eb1b2a22
Reviewed-on: https://gerrit.mot.com/2084881
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Joel Voss <jvoss@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
As HW init is after irq request in default code, so there have many
irq trigger when boot with charger and load charger type detect error.
So need to adjust init sequence.
Change-Id: I02e50ef6e20e1034764d9086a8e625446823bd98
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2105583
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
TP:
Support goodix single tap to wake the device.
Change-Id: I038edf7655f6944653d22e13c3ec056baca77084
Reviewed-on: https://gerrit.mot.com/2105483
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
When the phone is restarted, the OCV checksum calculation method
is problematic, which causes the OCV parameter to be updated,
so that the voltage is re-measured and check the meter to obtain the initial capacity,
which causes the battery capacity to jump when restarting the phone.
Change-Id: I07bea70c2318eff8d71e7fd44119242f5b830de3
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2105262
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
- Game mode API also can be supported when mmi touch class is disabled.
- The required interfaces need to be configured in the dts.
Change-Id: I59582a0dfa4079a5c3500517d7acc779581cb29f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2086206
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
The PM_WAKEUP_EVENT causes a delay of more than 4ms before
starting i2c transmission.
Change-Id: Id5dc406f8e7b675c4d34597b37fa12992cdb24d6
Reviewed-on: https://gerrit.mot.com/2098214
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
The unit boot when real batt_soc 0%, the UI batt level show 100%.
The root cause is combine soc is 100 when init, and now
mmi_combine_battery_soc api return soc is -1, so don't update
the combine soc.
Change-Id: I9e41b7f68c735b76c384d1cdcf3ffb6735db4f57
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2098253
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
Not use the PM suspend and resume process, but use
the touchscreen class unified process control.
Change-Id: I8d104c0b44abba22d624187cf351d2fd2eb4fe0f
Reviewed-on: https://gerrit.mot.com/2097211
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
project use 10mhon rsense,but current rsense config is 1mhom,
that will make current value not correct.
log:
FG_CW2217: cw_update_data-518 : vol = 3880 current = 5238
above log show current=5238mA, but it should be 523.8mA
Correct rsense config can fix this issue.
Change-Id: Iebaa671d2db2690f7e91f4410bc57a809b10cd77
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2098076
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
1. In the case of firmware damage, the input device is directly released
when probe, and the input device is accessed when the system is
suspended, causing the system crash.
2. When the firmware is damaged, because the product information cannot
be read, the touch upgrade script cannot repair the firmware.
So we need to use the ic_name in the dtbo file.
3. When probing, if obtaining the configuration file fails, reflash the
configuration file after the firmware upgrade is completed.
Change-Id: I10cf96e3721d539d6e15f4c6cc490eb0f4328700
Reviewed-on: https://gerrit.mot.com/2095432
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This change allows defining an artificial no touch zones. Reported
touch coordinates will never belong to these zones. This is done by
extending associated screen beyond physical touchpad Y resolution.
If physical touchpad resolution along Y axis is Yres and Z is the
dimension of such a zone, then reported coordinates will be in the
range Z < y < (Yres + Z).
Change-Id: Id53bd8b155bdaa0e2bc470f84f11286710cc27f8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2092741
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
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