Commit graph

2,234 commits

Author SHA1 Message Date
wingte50
42d008cccb FPS: Modify the power-on sequence for focaltech
After the VDD is powered on for more than 1ms ,
The RST is powered on

Change-Id: I7c49dc6cbaab0a9dee0ae8642a9de13db971f51b
Reviewed-on: https://gerrit.mot.com/2167042
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <leiyun@wingtech.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-01-11 21:27:22 -06:00
huaqin85
b7578c2dbf 2snd Fuelgauge SM5602 move temp coefficient to ext channel
2Snd Fuelgauge SM5602 move temperature coefficient
to ext channel

Change-Id: Id62c661fe7b534775891c9350efe36b261b4f53c
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2167222
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-11 07:29:44 -06:00
huaqin85
a0c5ae4cec 2snd Fuelgauge SM5602 current direct set and coefficient
2Snd Fuelgauge SM5602 current direct set and
coefficient need multiply 1000

Change-Id: I6e72dab8a7bc6d68f045908171f2a6656dcaa5c4
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2167032
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-11 07:29:17 -06:00
wutao
b856b01a42 sm5602:set battery temp to 25 in moto-factory mode
battery ntc is on the board,so battery temp is error in factorymode testing
it doesnot test quick charger in moto-factory mode when battery is error
set battery temp to 25 in moto-factory mode

Change-Id: I230edcfa1118b303561d21ce2b16e1fab92e298f
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2166164
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-11 05:15:48 -06:00
wutao
7cf8867638 cw2217b:set battery temp to 25 in moto-factory mode
battery ntc is on the board,so battery temp is error in factorymode testing
it doesnot test quick charger in moto-factory mode when battery is error
set battery temp to 25 in moto-factory mode

Change-Id: I2a6ed72e3124acba68c9051a1956d6f69d48370f
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2166154
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-11 05:15:38 -06:00
a17671
ece2bbacc3 Add watchdog_cpu_dump and tzlog_dump support on 5.4
Add watchdog_cpu context and tzlog dump support
For 5.4 or later kernel, there is no way to browse the
Symbols without breaking the GKI rules
So read the ttbl1_el1 to get the init_mm->pgd instead of
The old symbols browsing
Update module dependencies

Change-Id: I26aca73f4a879f9504ecd5443c458e154cf48fe9
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1975101
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-11 02:28:00 -06:00
liujian24
65c4f350b2 Hawao:Enable power gpio for Chipone FPS
WHY:FPS sensor will be overheating due to impact damage to FPS
WHAT:Enable power gpio in Chipone FPS driver so that it can disable power
     when overheating.

Change-Id: Ie32e69870cbcc53f6fafd97ac0068f79b66afbaf
Reviewed-on: https://gerrit.mot.com/2166844
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-01-10 21:28:34 -06:00
chenlj2
842041e75d DLKM/fps:add build control for focal
add build control for focal
support DRM screen status interface

Change-Id: I9a5ead1b52a2a287785cf0db38cceeb08c206623
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2163372
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-01-09 20:26:12 -06:00
mahj8
4c5a64b2ac charging: fixed 15W product build error
fixed 15W product
build error

Signed-off-by: mahj8 <mahj8@motorola.com>
Change-Id: I020a10375e04de6193756de89df175bff86bc011
Reviewed-on: https://gerrit.mot.com/2164862
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-07 03:58:53 -06:00
mahj8
75c52cae5a charging: add SW QC3+ 33W turbo charging
add SW QC3+ 33W turbo charging
for Rhodep

Change-Id: I89ba55d628a811d9951c9321941416db10b94ecb
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2145169
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-07 01:58:44 -06:00
litong20
d803d067a0 goodix: Open the touch esd check function
TP:
1. Open the esd check function,when the touch IC dies, it can be
restored to normal by hardware reset.
2. Increase the delay between the stylus command and the clock to
prevent the IC from hanging up.

Change-Id: I20617d63c0d53d60d1100b9eb26182096c657b16
Reviewed-on: https://gerrit.mot.com/2164520
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-01-07 00:34:15 -06:00
mahj8
23c6b453f5 charging: add mutex lock init
some time unit trigger kernel panic, optimize mutex lock
and add mutex lock init.

Change-Id: Ic4f670e91f2d3987b1623f47e6c1154d829c8fed
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2164439
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-06 21:30:25 -06:00
Bernie Moreno-BERNIEM
5416f8d6ab power:fet_control: Apply main batt ocv instead of v_now
Batt switch state can be more reliable from boot with charger when
reading main batt voltage_now to compoare to batt2 through R-balance.
We'll monitor both v_now & v_ocv, but use ocv for the battfet swtich
decision.

Change-Id: I60cf8d0dfb5befbb029477644efed88e0342cef1
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2143291
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2022-01-06 09:54:05 -06:00
mahj8
ba840ade41 charging: avoid i2c error when system resume and suspend
delete schedule charge monitor work for avoid i2c error
when system resume and suspend

Change-Id: Ic71b8a094b34d6f68b2fffb2ab14a17c730589e6
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2163682
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-06 05:35:06 -06:00
chenlj2
c97446a89b DLKM/fps:optimise screen status interface for focal
kernel version >= 4.19&DRM panel used
screen notify interface change

Change-Id: I8a5785931902e2378beab32961999cc880a1c1af
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2162012
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-01-05 22:51:09 -06:00
liaohj
99655ee678 modules:regulator_vibartor:add regulator long short voltage logic.
avoid vibrator noise.
add regulator long short voltage logic.
use "vib,pwr-by-regulator-enable" to seperate .

Change-Id: If90137a486b3ff807e573fba17c79951213777a7
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2162262
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-05 05:15:53 -06:00
litong20
8487ee8e40 lock mode switching operations for thread synchronization.
TP:
Lock mode switching operations for thread synchronization
to prevent conflicts.

Change-Id: Ia7158b29bb697187e0b326aeb8ea5adbf582dc12
Reviewed-on: https://gerrit.mot.com/2160991
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-01-05 03:48:59 -06:00
zhangh12
9320dafd36 sar: support sar reset after usb hot-plug
1. This driver is porting from MTK, however, on QC platform, the sys
   node is "usb" only.
2. modify the correct macro

Change-Id: Ib2a799ce28571a274c1432f2aef842bd9f1ecf32
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2162018
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-05 01:21:40 -06:00
Yan Zhang
b6a130bde1 dlkm:Update rbs driver for FOD
Move delay to hal for better performance.


Change-Id: I0e208047b9d0be8c016929d67d1486ecf5e9d9d5
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2161172
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-04 20:37:55 -06:00
xizx
bc00b7fe1a mmi_annotate: add unpersist annotate memory region to minidump
For the minidump region of mmi_annotate, should record volatile memory
instead of persist memory when platform doesn't support persist memory.

Change-Id: I94afe0b8ff5eda3686e2957f00747a4cb4582a89
Reviewed-on: https://gerrit.mot.com/2160648
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2022-01-03 22:50:21 -06:00
hujing3
60c5552188 focaltech_v3_mmi:add touchscreen mmi to improve FW logic
focaltech_v3_mmi:
add touchscreen mmi to improve FW download process

Change-Id: I12b76c2644403d14ead207687c028d3ab2beb321
Reviewed-on: https://gerrit.mot.com/2159432
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-03 20:03:11 -06:00
litong20
4eceb69f09 goodix: Modify the report rate command.
00 00 05 C1 00 C6 00//exit period report
00 00 05 C1 02 C8 00//480Hz
00 00 05 C1 03 C9 00//576Hz

Change-Id: I07b03820a05636488935f0955ca3a4c7298d5371
Reviewed-on: https://gerrit.mot.com/2159224
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-12-31 02:01:26 -06:00
dengwei1
6c6dcb2921 dubai: vibrate add short index
set
short index

Change-Id: I71e53f871946b152db8a0a68f8f167ced13cb702
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2159319
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-31 00:38:46 -06:00
litong20
ce42066416 Increase the number of I2C retries.
TP:
When the screen is off, the TP driver starts to read gesture events
after receiving the interrupt.But I2C bus is still in the suspended
state, so gesture events cannot be read out.

geni_i2c_xfer System suspended
[GTP-INF][goodix_i2c_read:82] I2c read retry[1]:0x10308
geni_i2c_xfer System suspended
[GTP-INF][goodix_i2c_read:82] I2c read retry[2]:0x10308
[GTP-ERR][goodix_i2c_read:87] I2c read failed,dev:5d,reg:10308,size:26
[GTP-ERR][gsx_gesture_ist:236] failed get gesture data





Change-Id: If3ebbc4b65829def142835c51816b70e0a474865
Reviewed-on: https://gerrit.mot.com/2158726
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-12-30 05:44:22 -06:00
dengwei1
ccab9caec6 dubai: input touch add wait pm
input
add wait

Change-Id: I2d3fa46630cd5cd54c3f35872f1fd012e95a5e9a
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2157954
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-30 03:08:00 -06:00
xuwei9
fe82961abc qc3p:set qc3p charging voltage threshold 3.4V
Set QC3P beging charging voltage
threshold to 3.4V for optimization.

Change-Id: Ib5ad2454ba7d0f2655785651b7535f5170b8d5f4
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2158288
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-30 01:19:34 -06:00
Yan Zhang
3d1cecc323 Change to mdelay for power up delay
FOD will turn on/off frequently, msleep will take longer delay than
 expected, use mdelay to optimize the power up time.

Change-Id: I9c4d23f0c3b98713eeee7bb1393106ebac507af4
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2157879
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-29 23:49:12 -06:00
yanyh2
64bca136c8 Adjust bq27426 fg module to support Android S
Adjust bq27426 fg module to support Android S and different
HW design.

Change-Id: I90e0c6e49a47ca148e519564cc1a448deeb29177
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2152626
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-12-29 22:36:10 -06:00
Qiong Xie
c2086f49d3 Revert (CR):sgm4154x:add hawao vbus adc sample ratio
Revert "(CR):
sgm4154x:add hawao vbus adc sample ratio"

This reverts commit 3fa23f1771ca5bd9b1509823f8a52b160d2bf0f6.

Change-Id: I422474dd15250c8b99a81ab766a2d19c15f6d107
Reviewed-on: https://gerrit.mot.com/2153198
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-29 20:49:11 -06:00
huaqin87
0652de385b wt6670: add QC3P firmware num node to /proc/driver
Adding a node to the power supply will affect the IIC timing,
adding to the IIO system file path is not fixed,
so add the node to the proc

Change-Id: Ib4842d6eaf37daf53e9c6bdb2a8f5d2a90694c38
Signed-off-by: huaqin87 <huaqin87@motorola.com>
Reviewed-on: https://gerrit.mot.com/2157051
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-29 04:43:36 -06:00
chenlj2
3775caaa65 DLKM/fps:optimise power ctl for focal
optimise log process
Enable ff_device_control_reset

Change-Id: Ibb899cd1bfa22acd42066ec9368b9312afe4d273
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2156913
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-12-29 04:18:30 -06:00
liuyc20
b6b28fc271 FG: apply rt9426a 0015 patch
1. remove pm_wakeup on fg_update_work_func, becase update_work will be cancle
   when the device into suspend.
2. Relax the unseal state determination criteria, and the unseal only determines the bit0
3. update Correct unknown error. about writing rt9426a_reg_swindows value,
   moto did not use this function

Change-Id: I38e2acd5b11fb78e722b6cb86e192ac389057705
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2156775
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-12-29 02:13:05 -06:00
bchhq23
de31178d74 rhodep:open charger mode;
kernel/tp:
	open charger mode;
	wait probe is ok that send cmd;

Change-Id: I186884262858227efdfcd5a6588b70e4414b1556
Signed-off-by: bchhq23 <bchhq23@motorola.com>
Reviewed-on: https://gerrit.mot.com/2153152
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-12-28 23:07:04 -06:00
mahj8
c73d42c876 charging: enable irq wake up
when system suspend and then inserted charger, the system
can't wake up and update charger info.

Change-Id: Idb69dfc330b93d5929ce1b10b5c95491d6997aff
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2155893
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-28 02:46:30 -06:00
mahj8
ffbae57032 charging: optimize sgm41542 charging type detected
As in some case charging type detected error, so optimize
sgm41542 charging type detected.

Change-Id: Iad9608794ff0cf9116295037f6bacdfc1bdd619a
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2154824
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-28 02:40:22 -06:00
huaqin86
a4e8e09997 Revert "(CR):add firmware interface"
This reverts commit c36e4a8eb858da064615bbfa7941312fe2d82c5b.
The node /sys/class/power_supply/QC3P/firmware_num that reads the 6670
firmware cannot be placed under the power supply,because the battery
service obtains information every 5s, which leads to the need to read 
the version number every 5s,which will affect the bus timing on the IIC,
Which will affect the identification of the charger type

Change-Id: I0bbcc6419caf2e340a1ae6e951fe2bd32643b0a2
Signed-off-by: huaqin86 <huaqin86@motorola.com>
Reviewed-on: https://gerrit.mot.com/2154893
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-27 03:50:47 -06:00
wutao
9b9c0d3edf bq2589x:add qc3p charger type
add qc3p charger type at bq2589x charger ic.
it will not charger icon if not have charger type

Change-Id: I950fd7e9fc9855f27174e58fce81a9e5c654f3c8
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2154583
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2021-12-26 21:40:17 -06:00
wutao
a16d6cfe74 sgm:add qc3p charger type
add qc3p charger type at sgm4154x charger ic.
it will not charger icon if not have charger type

Change-Id: I2c62c685a347dee2e35e3e8b545ac4d3e0a16941
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2154578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Submit-Approved: Jira Key
2021-12-26 21:40:10 -06:00
wingte49
f0e3866cd7 backlight/sm5350: Add a sm5350 IC which is second backlight IC
Modify:
 Porting backlight sm5350,add pamameter of second backlight IC.

Change-Id: Ib9b2ad61ecf942d7b0258890af03f4ccf45c0328
Reviewed-on: https://gerrit.mot.com/2152637
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2021-12-26 20:35:04 -06:00
mahj8
5a998abf5d charging: avoid to report usb type before apsd done
don't report usb type before rerun apsd done, to avoid input current
limit auto changed to 500ma by charger IC.

Change-Id: If148bded78a3ae8a628353ca70c7fa15f2b1363c
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2154207
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-24 02:36:36 -06:00
mahj8
264b8e8d71 charging: add icl*vbus to report power max
As pd type can't equal to real_charger_type in discrete charging,
so need to add icl*vbus to report power max for showing turbopower
connected UI.

Change-Id: I16f4b559383f86eb38ec1b5e6cac09556d9dfada
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2154206
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-24 02:36:27 -06:00
huaqin85
1c7538d444 charger: compatible NU2105 Charge Pump in bq2597x
NU2105: compatible ADC & regulator for NU2105 pump
print bq2597x , NU2105 , SC8551A PartNo, and Deivce Name
Change the base Addr for show registers

Change-Id: I4540dc9fac6caa35b848988359c4462d86f4dd76
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2142696
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-12-24 01:16:18 -06:00
yanyh2
fed40d1211 Reset charger configure and constraint for glink down
Reset charger configure and constraint for glink down, so that
AP will resend the charger configure and constraint to ADSP
battery management, otherwise uninitilized value of charger
configure and constraint will be used in ADSP side after ADSP
restart, and then power max value will use default value 0;

Change-Id: Ic29a61763c85be62102ecb0333ae7f03f79ac670
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2153260
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-12-23 21:13:13 -06:00
liuyc20
abd4219f55 FG: rt9426a add cancel_work when system into suspend
when system into suspend. at this time running battery_work to
read the I2C that will make reading the i2c error.
so add cancle_delay_work when suspend, queue_delay_work when resume.

Change-Id: I7a39f8689b8b560ecfc04b40171bb59f20b6b57a
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2152989
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2021-12-23 05:42:39 -06:00
huaqin86
efc3721336 wt6670: add retry function to wt6670 read fw
Power supply is updated every 5 seconds, and firmware reading will be called every 5 seconds
The original firmware reading will pull the interrupt pin up and down
This operation will cause incorrect timing of wt6670, resulting in incorrect value read by wt6670

Change-Id: Ia4cfd37b8705ce2527fe6f6509a4b14b1eb8dd51
Signed-off-by: huaqin86 <huaqin86@motorola.com>
Reviewed-on: https://gerrit.mot.com/2153027
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-23 05:35:54 -06:00
Yan Zhang
565cf7a3ab Update Goodix TP FOD event implementation
1. Update FOD gesture trigger in screen off mode.
2. Add FOD event support in screen on mode

Change-Id: I7ecbfdb4aff8eaf34e88247d91d08279edd018a6
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2152070
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-23 03:06:05 -06:00
xuwei9
3f42788a45 qc3p:optimize power supply init
Optimize power supply int time
Keep get supply name once.

Change-Id: Iba46c0885dccecf6c66346879227d1e8756aa70a
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2152814
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-23 02:08:15 -06:00
xizx
15f84bb003 mmi_annotate: write info mem when persist mem unsupported
From 8450 platform, Qcom doesn't support warmreset, so pstore memory
cannot work again. All persist memory data should be writtle into
memory.

Change-Id: I9f20a35b50a10c69b7df96037a27b965e130b5f9
Reviewed-on: https://gerrit.mot.com/2152098
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-12-23 00:54:01 -06:00
tinno18
beb23b07a3 [hawaii+oled]:vibrator long short vibration intensity 1/2
vibration intensity
play_ms > 80ms means long, otherwise short
long : 2.6V
short: 3V


change reason:vibrator resonates with camera

Change-Id: Icdb29bf77b3987ef7f25e0f6660b8461fe74e84c
Reviewed-on: https://gerrit.mot.com/2152699
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <tinno18@motorola.com>
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-23 00:40:08 -06:00
xuwt2
81a711a700 smart_pen_charger: Add PEN_STAT_CHARGE_DISABLED
Add new pen status : PEN_STAT_CHARGE_DISABLED
it means the pen charging was disabled.

Change-Id: I784d770f34b1bbe1e8e34bf785810e180924de6d
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2151778
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-12-22 23:43:37 -06:00