Commit graph

2,532 commits

Author SHA1 Message Date
hujing3
45f76c2fcc focaltech_0flash_v2_mmi: single tap gesture not work fix
focaltech_0flash_v2_mmi
fix single tap gesture feature, remove invalid gesture invoke

Change-Id: I269a51346c40a4cc4409378342e29073d7e0acf6
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2278143
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-24 03:44:34 -05:00
mahj8
9554e1f581 charging: Don't switch dpdm from AP to pmic when host mode
The charger is inserted when usb is host mode, as charging want to
switch dpdm for detecting charger type, urb communicate error.

Change-Id: I938d80bc3428add5a7a1d82d4631cbffdaf1ce71
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2273301
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-05-24 01:40:04 -05:00
hqjiangy
9293c0bd41 TP bring up[1/4]
touch IC is synaptics

Change-Id: I5cc6c211d1a157967666c2d9bf910b0bde0d3541
Reviewed-on: https://gerrit.mot.com/2267911
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: <hqjiangy@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-05-24 00:43:35 -05:00
Yonghua Yan
0769972de6 Add charger power watt uevent
Support charger power watt uevent to notify BatteryService
the charger power capability.

Filter uevent by uevent message POWER_SUPPLY_POWER_WATT=
to parse the charger power in watt.

Change-Id: I9Montana081355e68b281825476d241f570d3118c5fb
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2276713
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-05-23 04:13:19 -05:00
dengwei1
473692abb9 tundra: input touch add sample rate
add
sample

Change-Id: Ic00991b8358c696dd7bbb8326d1b276d73fcbfe9
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2271092
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-05-22 21:12:02 -05:00
Wenge Zhu
bb5af1188d Lift off current touch when suspend
Lift off current touch when suspend in case after resume still receive
last touch data.

Change-Id: I2c7e7824d724534af45d88880d08d314e9e9a23c
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2274865
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-05-20 03:11:51 -05:00
weiweij
8c1a4feee8 WLS_CHG: change fw upgrade judgment
When the chip is blank, the value in ver&id register wiil
be a random value. So we could not judge fw status just
by version. We should also check chip id register. And to
avoid user version fw missing problem, I will check fw
not only in factory mode.

Change-Id: I51269a4489062ebc23beee362aac987bc9da8f49
Reviewed-on: https://gerrit.mot.com/2274673
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-05-20 02:47:04 -05:00
dengwei1
cfe7cfbe38 tundra: input touch fix gki issue
fix gki
issue

Change-Id: I19432333e40d9978e33c80511efd5347a994e953
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2274541
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-05-20 00:05:27 -05:00
weiweij
df8702a208 wls-chg: add fw ver judgment for blank chip
For cps4019, when there is no fw in chip(blank chip), its version
may be 0xB4B5.0xB6B7. It is larger than normal version number
(for example, 1.2). So fw update judgement should consider this
situation.

Change-Id: I033ab39837f85fab9d1d1e1694d0b3fb972a375d
Reviewed-on: https://gerrit.mot.com/2274466
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-19 21:47:20 -05:00
Haijian Ma
496a6958d1 bms: add charge counter in mm8013
As CTS test, need add charger_counter file node
for mm8013

Change-Id: I3e90679f50eaf8d3891867ef240a170dca702815
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2273595
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-19 21:27:57 -05:00
jixj
2e56ea884d Integrate mmi_device_is_available() into mmi_check_dynamic_device_node()
mmi_check_dynamic_device_node() uses of_find_node_by_path() to get device
node so that mmi_device_is_available() can use this node to find where is
"mmi,status".but need use of_node_put() to put this node in there drivers.
So move "mmi_device_is_available()" into "mmi_check_dynamic_device_node()"
and put the device node at the end.

Change-Id: Id42e73b844ef6928ebea673dcd7f9c57c8804f8b
Reviewed-on: https://gerrit.mot.com/2271017
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2022-05-19 20:02:02 -05:00
jixj
f1c46d33ce mmi_info: Add missing of_node_put()
of_find_node_by_path() returns a node point with refcount
incremented and need use of_node_put() to decrement refcount

Change-Id: Ib1cbdc4c40b1ea5e9bfc1c5d02ddd231185a42b1
Reviewed-on: https://gerrit.mot.com/2269870
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2022-05-19 20:01:48 -05:00
Yonghua Yan
e9dcdc46e0 Check return of regulator_enable
Check return of regulator_enable to avoid compile issue
for in some build environment.

Change-Id: I49e64662959c2f5e57909901ae3c373ae57b3e08
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2273786
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-05-19 07:34:57 -05:00
xieqiong2
81067e6616 charger:add the handle for quick plug out/in case.
While the quick plug out/in happen, the detection of bc1.2 happens very
early and no irq received even, and it starts detection hvdcp quickly.
So need to handle the special case for hvdcp detected result for bc12
and the subsequent qc3p detection accordingly.

Change-Id: Ic9558b9490963f585163ae29a9903ba6831abddf
Signed-off-by: xieqiong2 <xieqiong2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2273497
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: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-05-19 05:40:16 -05:00
Yonghua Yan
e4e70fc2b3 Turn off load switch during charging
Turn off load switch when charger is attached and paired
battery is under charging, but not discharging.

Change-Id: Idbd2824c85a43175b8030eeb2e0af2e7a400f27e
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2273610
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-05-19 03:34:29 -05:00
Yonghua Yan
949abff4c6 Improve cw2217b fg driver compatibility
1. make it compatible with Android S build environment
2. add optional i2c pullup power regulator
3. make battery current polority selectable from DT
4. make the power supply name configurable from DT
5. use battery temperature for battery present detection

Change-Id: I326688b499296e3c99ebde67632af90edac092c1
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2269111
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-19 01:35:40 -05:00
zhuwg1
210f570c86 Optimize high report rate feature
Support config different touch report rate by product,
search corresponding report rate command in config struct according to
refresh/interpolation config and then send it to IC.

Change-Id: Ieff127e4b1e6dbb18fdda5deca91972326ebbb9c
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2258273
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-05-18 22:30:06 -05:00
weiweij
7737ad1aa5 WLS-CHG: ADD usb icl vote for wls chg
For wls power off charging, main charger driver will start before
wls charger driver. As a rsult,  it could not get wls present status
at the beginning of power off charging.  So we should check
wls presentation before USB ICL voting. And set ICL as defined.

Change-Id: Ibc846d907ce2deb85aeb787fcdd7427dd8ebc2e6
Reviewed-on: https://gerrit.mot.com/2272083
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-18 04:51:31 -05:00
mahj8
4a36724c7e charging: config vindpm by dts
change code logic to config vindpm
by dts. Default value is 4600mv;

Change-Id: I531c7b23acd664b9c63870281d779dba8a263662
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2270958
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-18 03:53:10 -05:00
longc102
0c797318a4 DUT keeps vibrating after connecting to computer via USB
charging with CDP will stop charge when battery volatge is high
use dynamic vindpm tracking voltage when CDP charging

Change-Id: I31434a85963c605126930a5d0f29dd46eea43b8f
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2269909
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-05-16 21:51:48 -05:00
Konstantin Makariev
2be78db15c touchscreen_mmi: active region interface
New interface to set/get touchscreen active region parameters. This
interface intended for use by Rollable Display HAL

Change-Id: I78e99893ff9b694ea61143e8d79311954840aa6b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2237772
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2022-05-16 15:28:57 -05:00
Konstantin Makariev
7d1b945671 drv8424_mmi: enable gpio init
Added pinctrl state allowing for initial GPIO configuration, e.g.
function, signal strength and pullups. This feature is controlled
via device tree option. Pinctrl state must be called init_state.

Change-Id: I9af30ab15845fb3db122aead96389443b9d6d707
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2270421
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2022-05-16 15:22:27 -05:00
Konstantin Makariev
0b1073803f drv8424_mmi: position detection and sensor data
Position state machine added. Current position detection will be
attempted on power up. Added sysfs interface for hall effect
sensors data. Added destination position to validate every move.
Defined default stepper sequences for major moves that can be
altered if necessary.

Change-Id: I304c7de05347267f1031fedde9d014779afc933b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2256131
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-05-16 14:22:16 -05:00
Konstantin Makariev
a6b014440f goodix_blr_mmi: active area support
Stub functions to support optional active area region. This change
is for demo purpose only and serves as low level support for touchscreen
class driver

Change-Id: I50a3ae10cb76a5c59ff82cec028f812bf93c676e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2269390
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-05-16 14:22:05 -05:00
Konstantin Makariev
ba8e3d9922 drv8424_mmi: fix makefile to build for android s
Makefile needed some changes to allow building for Android S

Change-Id: Id8c0756321d1048b84bdda293030e2c23a1d29ce
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2259618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-05-16 14:21:31 -05:00
litong20
792c7174a0 Integrate goodix stylus Direct Data Access feature
In order to reduce stylus writing latency,MotoNote read touch data from
touch driver via goodix_pendev character device directly,this change
bypass the HAL layer and input subsystem.

Change-Id: Iccb121336992574f03fb89ff5cf4cc074ff3dc50
Reviewed-on: https://gerrit.mot.com/2247007
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-05-16 06:14:05 -05:00
hujing3
201dff4cec focaltech_0flash_v2_mmi: disable FTS ESD check by default
focaltech_0flash_v2_mmi
disable FTS ESD check by default

Change-Id: Ifccb02a5b2d7ecc346e9884c210436f5df5c0ed7
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2252208
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-16 03:22:54 -05:00
litong20
de4584117f Fix goodix touch driver build error
Fix goodix touch driver build error that variable defined but not
used and return value not match.

Change-Id: Ibded582ff67e524be8b148592e8577f4864417c8
Reviewed-on: https://gerrit.mot.com/2265448
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-05-16 01:18:32 -05:00
mahj8
0252f629d7 charging: only turbo charger enable FFC function
As D team discuss, KP require FFC function only enable
in turbo charging.

Change-Id: I76acfdf2caf33b841993d9cca348336fa7219e8d
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2268184
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-16 01:10:00 -05:00
mahj8
65ea3cf178 charging: config batt profile max fv
config batt profile max fv for FFC
function

Change-Id: I5f6200d7bc61525069de73b889dc727b0851449c
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2268183
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-16 01:09:50 -05:00
hujing3
f7f53bd5d0 focaltech_0flash_v2_mmi: gesture mode feature support
focaltech_0flash_v2_mmi: gesture mode support
support to enable gesture mode by sensor config

Change-Id: Ie101b341618b0d0f7b253603c372ae3e38c527af
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2266979
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-12 20:45:21 -05:00
weiweij
caf64803c0 wls-chg: change chg pad led to green when soc is 100
When battery so is 100, the led in charging pad should be changed
from blue to green. It depends on PPP command transmission. The
command is as following:
head -> 0x5
cmd -> 0x64
data -> null
And it gets the event from "battery"(could be changed in dts configuration)
power supply notification by register power supply "supplied-from" element.

Change-Id: If7978d97a6bdae51acbdcf7342719ab2facce6a8
Reviewed-on: https://gerrit.mot.com/2266476
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-12 02:57:58 -05:00
weiweij
7883e39b0b wls-chg: adjust some registers' addreess value
For original code from vender, some registers' address value
are incorrect. We should fix them as data sheet.

Change-Id: I52f68cd549b8b5bfa08f29168e7a99bb3d25fd4a
Reviewed-on: https://gerrit.mot.com/2265882
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-05-11 22:25:31 -05:00
weiweij
5024ad827a wls-chg: add tcmd test interface
Adding tcmd test interface, and meanwhile, adjusting some
file point name as tcmd requirement.

Change-Id: I0b1460545288f320a5b5ecfd430f1ca6f38a0845
Reviewed-on: https://gerrit.mot.com/2264522
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-11 22:25:21 -05:00
hujing3
7d652e6066 nova_0flash_mmi: gesture mode improve
devon: set touch state when enable gesture
to avoid panel reset when suspend

Change-Id: I7c8684bf3af42a9829c2bde9071eb6c3b7a65e96
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2265701
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-11 19:13:33 -05:00
hujing3
491f4e4523 ili9882_mmi:gesture mode improve
devon:
set touch state when enable gesture
to avoid panel reset when suspend

Change-Id: I874c9d7b8e5f7bb98afe38393bdd37c120260ba8
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2265698
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-11 19:13:27 -05:00
mahj8
2496d8de1f charging: vote PD ICL 3A when PD connected
As vote 500ma when PD active, it will load to ICL only 500ma
in main charger side, so need vote 3A when cp active.

Change-Id: Ia6ddb0632c5e61f90d7633dbc0ff871366f24875
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2264803
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-10 22:16:28 -05:00
mahj8
b3abad7222 charging: show turbo charger when PD connected
real charger type add PD charger type for showing turbo
when PD connected and defined bc1p2_charger_type only
for BC1.2 type, because rt_pd_manager need BC1.2 result
for usb enumeration.

Change-Id: I3cd856c887883ff13603a8660bbb40f0782097c4
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2264632
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Submit-Approved: Jira Key
2022-05-10 22:16:20 -05:00
hujing3
d84f9b679b focaltech_0flash_v2_mmi:update fw info when fw resume
focaltech_0flash_v2_mmi: update fw info when fw resume
to fix test fw download issue because of fw_length check

Change-Id: Ida2f21393ca741654228f7e9a2c4ba8ce2c3b026
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2265462
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-10 21:51:13 -05:00
xieqiong2
0e0c7f3a01 devon:fix z350 detect issue for apple charger.
Z350 detect apply charger as OCP type.
So need to match the correct type in definition.

Change-Id: If5a5fbecf643cc18dff91ae137f2635529fe9f06
Signed-off-by: xieqiong2 <xieqiong2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2264873
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-05-10 21:50:48 -05:00
Guocheng Wang
f298e1bd95 charging:Ignore request dpdm
Add interface to set ignore sc89890h and bq25890
 request dpdm in factory mode.

Change-Id: Ie6dcf7990a0a258f6500a735f75d467c46d508b7
Signed-off-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2264918
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-10 20:29:41 -05:00
mahj8
3aa525eb21 charging: optimize rerun apsd for sc89890H
As sc89890H chip issue, need optimize rerun apsd
before setting force dpdm = true to fixed sdp connected

Change-Id: I9ab07f24cfc836e376b7313c120bef5f80f4c519
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2261041
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <wanggc6@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-10 04:52:43 -05:00
wanggc6
0b86b9c63d charging:Ignore request dpdm
Add interface to set ignore sgm4154x
 request dpdm in factory mode.

Change-Id: I0582008bebf57541c2a04d1073a9ef9c7d3797b6
Signed-off-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2264484
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-10 02:44:02 -05:00
xuwt2
e12bf299f8 qti_glink_charger: Add WLC func
1, Add sysnode wlc_light_ctrl/wlc_fan_speed
2, Add NOTIFY_EVENT_WLS_WLC_CHANGE

Change-Id: I52f0ef0e26a8813d8b31534c2e6254749c140738
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2257842
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-05-09 21:45:36 -05:00
jixj
ab3a836a04 utags: Free allocated memory when rmmod utags.ko
These two memory are allocated when driver probe, and need free
them to avoid memory leak.

Change-Id: I0a875043e73598baca0436620c26c41750b8ce17
Reviewed-on: https://gerrit.mot.com/2261525
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2022-05-09 20:58:31 -05:00
jixj
f28c86729f utags: Free the device name buffer when rmmod utags.ko
If the device name can be expanded, it will allocate a buffer to store expand
name, so need free it when removing.
If not expand, it will keep use buffer getting from "of_property_read_string"
and this buffer can not free on our driver, so allocate a new buffer for it.

Change-Id: Id1c18ac7caae426319813f48d1a67366216fe630
Reviewed-on: https://gerrit.mot.com/2261463
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2022-05-09 20:58:21 -05:00
weiweij
97cfc95e6c charger: add wireless type judgement for healthd
For healthd's charge type judgment logic, we should set USB/online
as false when wireless charger connected. And set DC/WIRELESS type
as "wireless" at the same time.

Change-Id: I5397224e7432802891706b3b7facf79cb749cbd7
Reviewed-on: https://gerrit.mot.com/2263683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 20:18:42 -05:00
weiweij
5062a34253 wls-chg: change name of the file point chip_id
For CQA test requirement, the name of the file point chip id
should be chip_id. And its result should be "0xXXXX". So we
will change this file point as requests.

Change-Id: Ic37fa0645c64a766960f0799e7aad7f469121491
Reviewed-on: https://gerrit.mot.com/2263347
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 03:01:02 -05:00
weiweij
170c7d9dff wls-chg: add force wls chg test interface
Add a file point interface to let tcmd could force wls
chg when usb&wls connected at the same time.

Change-Id: I545cc4d7ac8ffa562596ed85706b62fcacc718dd
Reviewed-on: https://gerrit.mot.com/2263182
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 02:54:50 -05:00
weiweij
58ea6b5c86 psy: add DPDM operation ignore option
For special factory test, USB DP/DM may should not be
operated when VBUS status changed. So we will add
DP/DM operation ignore options in power supply property.

Change-Id: I226c02cf126ecae9308804334c1bdbfb933d7bac
Reviewed-on: https://gerrit.mot.com/2263246
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 02:54:47 -05:00