Commit graph

2,276 commits

Author SHA1 Message Date
mahj8
73f818f4b5 charging: avoid vbus voltage increase to 12V
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
2021-11-08 21:53:27 -06:00
mahj8
f0b71b186c charging: add qc3.0 arch for bq25890H
add qc3.0 detected function
for bq25890H

Change-Id: I8b7f9de35175756daa9c0f9b631eb767e560dd8c
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2109874
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-08 21:51:59 -06:00
Bernie Moreno-BERNIEM
4659a9f917 power:fet_control Vbatt2 balance path, chrg fullcurr, ocp
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
2021-11-08 21:43:35 -06:00
chailu1
fbe06d4b12 charge: add iio interface for typeC mode
charge/typec
add typeC mode iio interface form typec module

Change-Id: I2df7d66757399924e03678e69e734637b5dac06e
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2106497
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-11-08 20:08:44 -06:00
chailu1
0222c9e9e7 typeC: add iio interface for typeC mode
typec mode
add typeC mode iio interface to charge module

Change-Id: I73ed231e93588606c9dd34755759ae6e31e5af57
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2107389
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-11-08 20:08:42 -06:00
mahj8
1972d6de66 charging: config charger power supply type unknown
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
2021-11-08 00:00:41 -06:00
zhaoxp3
80456d6e6b mmi_charger:use orderly shutdown in factory mode
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
2021-11-07 09:01:57 -06:00
litong20
1d0fe48a70 Close the stylus clock when system suspend.
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
2021-11-05 01:55:50 -05:00
mahj8
490f9b94e5 charging: avoid kernel panic
avoid NULL pointer kernel panic
<1>[ 4.240233] Unable to handle kernel NULL pointer dereference
at virtual address 0000000000000488
......
<4>[ 4.240332] Call trace:
<4>[ 4.240334] _raw_spin_lock_irqsave+0x40/0x74
<4>[ 4.240337] power_supply_changed+0x24/0x6c
<4>[ 4.240341] batt_external_power_changed+0x44/0x54
[mmi_discrete_charger]
<4>[ 4.240344] __power_supply_changed_work+0x50/0x88
<4>[ 4.240347] class_for_each_device+0xdc/0x148
<4>[ 4.240349] power_supply_changed_work+0x60/0xcc
<4>[ 4.240352] process_one_work+0x2cc/0x51c
<4>[ 4.240354] worker_thread+0x278/0x4d0
<4>[ 4.240356] kthread+0x16c/0x17c
<4>[ 4.240358] ret_from_fork+0x10/0x18
<0>[ 4.240362] Code: 1100054a b900192a 52800029 f9800011
<4>[ 4.240364] --[ end trace 55041178414fca52 ]--
<0>[ 4.241541] Kernel panic - not syncing: Fatal exception

Change-Id: I14e651a74cb6598fb2ba9fbad44e372c18fed024
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2107613
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-11-04 21:37:42 -05:00
Jefferson Capovilla
de6c28300f Fix path for ion lib in Kernel 4.19
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
2021-11-04 16:58:16 -05:00
liuyc20
151bc916a9 power: early register bms_phy client for cw2217_fg
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
2021-11-04 06:53:33 -05:00
Jefferson Capovilla
67a7f42cc3 Update Trustonic TEE driver module to version 410a-V108
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
2021-11-03 15:07:09 -05:00
dengwei1
7699e56cd9 pstar: input touch add delay for mode
input touch
add delay

Change-Id: I1e4624a989488d5c1d009875472dd23179d929b5
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2106659
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-11-03 09:30:33 -05:00
liuyc20
e2f9f6dd59 Power: update fg current orientation
charger policy need that
charger current showing "-" and discharge showing "+"

Change-Id: I242a9dcfee16b53b344ac1c68b0a3c4dc89280cb
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2106481
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-03 05:51:16 -05:00
mahj8
43cb5b5c3e charging: fixed get vbus voltage error
tcmd and charging policy get vbus voltage error
in bq25890

Change-Id: I6945f6f0bc9fbec1f4032c144538cde219588a07
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2106444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-03 04:44:07 -05:00
mahj8
56702a8ce8 charging: add VREG fine tunning for setting float voltage
As sgm41542 VREG step is 32mv, so can't match 4.45V battery.
Add VREG fine tunning for setting float voltage.

Change-Id: I2294b111ab02fd0959d3508626869ecd865b3bfa
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2105800
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-02 06:23:54 -05:00
mahj8
94590a511c charging: replace numeric value with macros
replace numeric value with macros
for sgm41542

Change-Id: I585a3c34d3cf750b5e5358ee5dd781cf13740449
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2105624
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-02 06:23:48 -05:00
mahj8
f4c56763d1 charging: adjust sgm41542 prob sequence
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
2021-11-02 06:23:42 -05:00
chailu1
d603cb8437 sgm7220: add typeC mode switch interface for sgm7220
UFP/DFP/DRP
add typeC mode switch interface for sgm7220

Change-Id: I6def0c4b4694c5647fe1ced8ee64eb385f3b91b2
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2100812
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-02 04:36:28 -05:00
chailu1
ea948fedb6 tcpc: add typeC mode switch interface
add typec mode switch interface
this interface for only typeC and not support PD product.

Change-Id: I5e5b352504e475a755561dc4875fea1b576417c1
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2105408
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-11-02 04:36:25 -05:00
chailu1
c8afdd7c14 sgm7220: Reorganize sgm7220 driver architecture
sgm7220 is not typec TCPC architecture, so clear tcpc ops
function.

propagate from MTK kernel-4.14/drivers/misc/mediatek/typec/tcpc/

Change-Id: Icd59ec48c510306d7f8d46d7e9d0fdf7a39fb72b
Reviewed-on: https://gerrit.mot.com/2100791
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-11-02 04:36:11 -05:00
litong20
70be896a4a Support goodix single tap to wake the device
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
2021-11-02 02:49:24 -05:00
liuyc20
fc4c5d8ed4 power: modified the caculation formula of ocv_checksum_dtsi
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
2021-11-02 01:40:23 -05:00
mahj8
171660acbc charging: add qc3.0 charging feature
add qc3.0 charging feature
for sgm41542

Change-Id: I681f062bc29f3b113335ace7602379ca117b5f5e
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2103357
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-29 04:32:49 -05:00
kalathik
be97e39954 sr100: Increase delay range on read/write
D31 increase wait time for read & write operation.
improves the accuracy of wait time.

Change-Id: I797e5e7599244828bf18ba837e5cf63f51bef58f
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/2099338
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-10-28 21:38:57 -05:00
litong20
15813afb44 goodix: support charger mode switching.
TP:
support charger mode switching.

Change-Id: Iae244cf9a74d978b9d1841842f5382fed9cf9a74
Reviewed-on: https://gerrit.mot.com/2101710
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-28 03:57:38 -05:00
litong20
0d19c2eeb7 stmicro: support touch film sensitivity switching
TP:
support touch film sensitivity switching
With phone film : C0 20 01
Without Phone film: C0 20 00

Change-Id: I5ef4ecfc3e3a7b40235350ec11236ce11fdf7fdb
Reviewed-on: https://gerrit.mot.com/2098548
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-10-27 21:05:24 -05:00
wengjun1
d7c429aa5d milanf: dlkm: Support game mode by defualt on nova_0flash_mmi
- 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
2021-10-26 01:04:56 -05:00
litong20
d17c8eb6c6 fts: deleate the PM_WAKEUP_EVENT in interrupt threaded
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
2021-10-25 22:19:06 -05:00
mahj8
54f61e0846 DLKM: UI batt level show 100% when real batt level 0%
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
2021-10-25 20:18:21 -05:00
litong20
98012f1ed0 Suspend and resume process using touchscreen class.
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
2021-10-25 02:46:25 -05:00
liuyc20
91e11f23b3 power: cw2217b user_rsense modify to 10mhom
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
2021-10-25 02:18:32 -05:00
mahj8
554f22c80b charging: disable HVDCP detected
disable HVDCP detected
for debug I2C hung issue

Change-Id: I61a8dc78b1b964195e6afd41bfb43a5b8f3fbd85
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2097998
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-25 00:45:35 -05:00
litong20
54686bafb0 Solve goodix tp firmware upgrade problem
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
2021-10-23 04:28:17 -05:00
Konstantin Makariev
6964a14473 pct1812_mmi: no touch zones
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
2021-10-22 16:29:46 -05:00
yanyh2
2afeda660d print ulog when write oem glink command
Print ulog when write oem glink command for adsp debugging
and charger and usb related issue analysis.

Change-Id: I742894e7378dd81f81c552ed45eeb1ff798f69cc
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2097322
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-10-22 07:38:24 -05:00
mahj8
ec1c78a8a6 bq25890: set input voltage limit 4600mv
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
2021-10-22 05:28:52 -05:00
mahj8
f21f768ba7 charging: setting icl=0 for usb suspend
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
2021-10-22 05:10:27 -05:00
liuyc20
10a9fcbe5c power: create chg_type node for factory test
factory need detect DCP type test.
create chg_type node, if real_charger_type=DCP return 4
otherwise return 1(SDP), this is to be compatible with MTK platform.

Change-Id: I757faee03d6765a557d6f68f27c2d9f9e7af44e6
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2096593
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-22 04:58:30 -05:00
litong20
a745460a6f touchscreen_mmi: Support refresh reate notification in Rogue
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
2021-10-22 04:31:54 -05:00
dengwei1
855433bff6 dubai: touch use gki api
touch input
use gki api

Change-Id: I52bcb290bed9ee5656f15de59423df01b9c009bd
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2096603
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-22 02:24:52 -05:00
wuwl10
5ea66e0be4 dlkm: fix vibrator stop fail issue
Cyprus IP68 use regulator to driver vibrator.
Fix regulator unblance  and disable faild issue.

Change-Id: I17cab4b196725794c34f73d4ee4eccfeeac75f89
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2095603
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-21 03:26:33 -05:00
chailu1
b276620d9f typeC: add typec cc orientation interface
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
2021-10-19 21:37:54 -05:00
chailu1
2772626015 typec: add host and device interface
typec/pd
add host and device interface

Change-Id: I69fcb5656c07416407832f1624682e837d8c6bac
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2080556
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-19 21:22:34 -05:00
mahj8
1837c058f2 charging: add iio psy to provide api for other modules
add iio psy frame to provide api for
other modules

Change-Id: Ibc8478b4ee9b07b843f262555e1d15c5a59fc554
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2088633
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-19 21:19:37 -05:00
liuyc20
420a200b18 dlkm: rt9426a fg update read fg_extreg_table
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
2021-10-19 20:58:14 -05:00
wengjun1
0e193a6009 Cypfq: dlkm: Bringup touch CSOT ILI7807S
- Add the configuration for csot ili7807s.
- Change the ic name to ilitek_csot for CQA test.

Change-Id: I7cb03ba7caa332e390d9422bc0d07840b5b91340
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2091635
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 20:58:05 -05:00
liuyc20
aac82dad39 dlkm: rt9426a fg update rt9426a_read_page_cmd
from richtek.
For confirm sending read page cmd successfully.

Change-Id: If36e8e29a57eb7b2890a510477e09a80382845e5
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2093282
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-19 20:57:45 -05:00
mahj8
3bb34fb958 charging: fixed user version build error for bq25890H
remove all EXPORT_SYMBOL_GPL config for fixed user version
build error.

Change-Id: If5ceea78f9e9ff270691cc5c1dca481108776437
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2093409
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 20:04:36 -05:00
xuwt2
5a102c87cb wls-chrg: Add FOD_CURR and FOD_A/FOD_B settings API
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
2021-10-19 05:36:33 -05:00