Commit graph

2,253 commits

Author SHA1 Message Date
huaqin85
d7e4e0874d gauge: force set sm5602 temperature to 25 degree
factory bt stattion no batt ntc resistance,
sm5602 adc get temperature is -20 or 80, force set it to 25 degree.

Change-Id: I2de7a9122e3f06d9c3ea7a150469b033f891841f
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2175723
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-20 21:24:08 -06:00
huaqin85
8c3912c592 modules: vision station WHITE MASK test failed
vision station ANALYZE_STUCK_PIXEL_WHITE_MASK_HANOI Test Failed
set pmax acroiding the usb type

Change-Id: I49de8a622fe7ca6f0dad1ceba136129abbbfab0a
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2174450
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-20 00:20:48 -06:00
liuyc20
50481f2d81 FG: Rt9426a fg add soc ir comp
factory report 3.8v battery this fg only show 5-15% battery capacity.
As when phone is booting up,the current will be large,that pull down
the voltage of battery, the fg get the lower voltage and search the
corresponding capacity.

For the first bootup, the voltage compensation method is added
to avoid the problem of low battery display.

Change-Id: I18b07ca76b3418b3e3fe463698de1e6836a576d2
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2174549
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
2022-01-19 20:38:34 -06:00
mahj8
774a63cfbf charging: avoid icl =100ma for 33w charger
When battery capacity > 90%, inserted 33w charger, main charger
icl config 100ma and CP don't enable. So charging slow.
avoid icl config 100ma when detect 33W charger.

Change-Id: If450fcabc1a18bc01c5a03bd7e9ff8176f5d338f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2174425
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-19 19:59:10 -06:00
liuyc20
9371756881 FG: sm5602 fg support muti-battery parameter
via serialnum & df-serialnum battery id to
search and load different battery parameter.

Change-Id: I2459e62d1da4dc386283ab365894500ba38b43dd
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2172575
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
2022-01-19 01:14:48 -06:00
chenlj2
fde09f4c60 DLKM/fps:optimise focal driver
focal
modify event interface to send screen status

Change-Id: I85243ca523276e1bd53ca89807078aae3d1aaf8b
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2173256
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-19 00:19:19 -06:00
mahj8
d4deb70169 charging: add pd support judge
For avoiding effect another product which don't support pd,
so add pd support judge.

Change-Id: Iafc014835b6042e211afdcfa246d09a626dbe28b
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2174030
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-01-18 21:06:31 -06:00
tinno18
ea0570ad0a HAWAO+OLED: chipone fingerprint modify the power-on sequence
Used to fix the failure of the probabilistic startup identification module

Change-Id: Id37309cd0e2e448e4989cea8ae098cd36d47e889
modified:   fpsensor_spi_tee.c
Reviewed-on: https://gerrit.mot.com/2172960
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-18 03:56:51 -06:00
huaqin85
6f39ab6876 gauge: force batt present in bt station for factory test
force batt present status to true in BT test station in factory mode
because sm5602 recognize the batt present though NTC Partial voltage,
but Rhode5G+ no NTC partial voltage resistance on mainboard . 

Change-Id: I2ea84aaa719a0228eb9fb00f133c5d0b24375b88
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2171966
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-18 01:08:14 -06:00
liujian24
6fadca094d ibiza:disable power control for chipone FPS
WHY:Makefile is wrong and enables power control for all products
WHAT:Modify makefile to enable power control only on Hawao

Change-Id: If50e4154c0baf80be6bc30744d98a4bc7270ecce
Reviewed-on: https://gerrit.mot.com/2171657
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-17 02:21:06 -06:00
wangyq13
d08495df99 input: goodix_v1510: fix irq wake disable unbalanced issue
- make irq wake enable and disable match, fix unbalanced issue
- port https://gerrit.mot.com/#/c/2158726/, increase i2c try times
- port goodix latest 1.5.2 version, sync input event when suspend.

Change-Id: I6e5639356db18e37698ff0b6e8101e5b4a724143
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2169342
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-01-14 01:02:03 -06:00
Yan Zhang
a67332ded1 : Support screen callback thru panel notification
focal fingerprint module:
Support screen callback thru panel notification for qcom sm2020
platform.



Change-Id: Ic5fe044351468da2ff528da009d18d4dcacd4e8a
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2169268
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-13 22:31:39 -06:00
Yan Zhang
597372804c use correct macro for FOD
use correct macro for Egis FOD

Change-Id: Idd6b2a2ae05cdf99025bbfe2aa19f56fa26c43e3
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2169272
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-13 04:03:06 -06:00
xuwei9
061526fb73 discrete:optimize charging enabled interface
Consider the input suspend status
to charging enabled interface.

Change-Id: Ie49bc9f02cafdbc7471b06b6660c140970ca8ab8
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2169116
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-01-12 23:14:04 -06:00
xuwt2
3eb5c1a999 qti_glink_charger: Add wireless dump info
1, Add debugfs wls_dump_info to dump wireless info
-------- wireless info -------
CHIP_ID: 0x4035
MTP_FW_VER: 0x10006
IRQ STATUS: 0x0000
SYS_MODE:  RX/TX 3
OP_MODE:  BPP/EPP 0x2
RX_FOP:   127kHz
RX_VOUT: 9989mV
RX_VRECT: 10430mV
RX_IRECT: 570mV
RX_NEG_POWER: 15w
TX_IIN: 0mA
TX_VIN: 0mV
TX_VRECT: 0mV
TX_FOD_I: 0
TX_FOD_II: 0
TX_FOD_RP: 0
TX_DET_RX_POWER: 0mW
TX_POWER: 0mW
POWER_LOSS: 0mW
TX_FOD: 0
FOLIO_MODE: 1
PEN_STATUS: 0
PEN_SOC: 0
PEN_ERROR: 0
USB_OTG: 0
WLS_BOOST: 0
WLS_ICL_MA: 1250
WLS_ICL_THERM_MA: 1250
2, Add wireless dump info to dmesg

Change-Id: Ie0a60052469e3d0c1b7bf643dbe1c389ce0c14a6
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2168508
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Submit-Approved: Jira Key
2022-01-12 22:38:31 -06:00
xuwt2
343be32253 smart_pen_charger: Add power_supply_changed when receive PEN event
Trigger wireless power_supply_changed when receive PEN event.
To inform qti_glink_charger to dump pen status into dmesg.

Change-Id: I815e98830ae679d2d3e7959a06d438cdad932e15
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2168501
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-01-12 22:38:29 -06:00
mahj8
f1eafbf79f charging: report usb present when pd hard reset
when in COM, pd will trigger hard reset to let source send source_cap.
But pd hard reset will closed vbus and re-enable vbus by adaptor, so usb
present will return 0 to let COM shutdown. But typec mode is always on,
so use typec mode to workaround it.

Change-Id: I7f39cfd81e6cf2607103579d3cab58102aaabc40
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2168221
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
2022-01-12 19:39:50 -06:00
yanyh2
c35ac191dc Bringup sgm4154x charger driver to Moto product
1. Fix the build issue on Androd S
2. Support externel USB power supply for charger input detection
3. Support battery fuel gauge power supply to query battery status
4. Register the charger to mmi charger driver architecture

Change-Id: I852a176657964b4a8914176333171c0ab6d81b51
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2168097
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-12 06:40:17 -06:00
yanyh2
9a2b3304dd Add initial sgm4154x driver code from vendor
Add sgm4154x charger driver source code from vendor as
initial version.

Change-Id: I4b18f92e47ae59bc053e25e6d21dc3a083cb6b8a
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2167394
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-12 06:39:27 -06:00
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