Commit graph

1,219 commits

Author SHA1 Message Date
wangyq13
ceba7f61ed input: ilitek_0flash_mmi: add support for single tap
ilitek_0flash_mmi:
Add support for single tap.
NO_PROP_NEEDED: this is new IC driver, don't need to pick to stable
line.

Change-Id: I7d3efeb71e0f0e309db7c06062c86c765f8d7e1e
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1647675
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-06-28 01:19:27 -05:00
Bernie Moreno-BERNIEM
60f7e4400e qpnp-smbcharger-mmi: update ocp check
Charge current ocp overcurrent check was made on negative current
Charging is positive polarity, causine ocp cal to be missed

NO_PROP_NEEDED: current reports are negative on Olson, not on smith

Change-Id: Icfee60ff847b55ff0fe5119cc178fb5fac65d581
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1638826
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-06-25 19:42:35 -05:00
Konstantin Makariev
e347ef6e9c synaptics_mmi_class: handle delayed init
When Synaptics touch belongs to secondary display and splash screen
option enabled, driver depends on DRM display notification to follow
with HW init. In this case suspend/resule and irq enable/disable
methods can be called by class driver un-initialized causing kernel
to panic. Added atomic flag to indicate device queried successfully
to prevent un-initialized methods execution.

Change-Id: I3debfb80eac129f550acdd2fc104eacc32f499a2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1641558
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-06-24 16:32:50 -05:00
chenlj2
3ab651e580 DLKM/sar:optimise process of sar to support 4 channels
compatible with 3 and 2 channels
support 4 channels only in borneo
the sar chip default support 3 or 2 channels

Change-Id: I0a594fe18ebff2679b0ada26646f44b50afce67f
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1640530
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
2020-06-24 04:43:59 -05:00
wuwl10
5b79367873 aw8695: nairo: add 3 ATT ringtone waveforms
Add 3 new waveform binaries for ATT ringtone "City_lights",
"Firefly" and "Now or Never".

NO_PROP_NEEDED: Only new products need these new ringtones.

Change-Id: I1a10d7c6786edd74abcb3c63fbbe4536ad84056b
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1638282
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-06-23 02:27:29 -05:00
shourieg
a705267292 himax_v2_mmi: Add productinfo & buildid sys node
Adding sys node productinfo and
buildid in himax driver.
Node gives chip name and FW version information.

Test ID:https://dalek.mot.com/browse/KERNEL-390991
cat /sys/devices/platform/soc/4a88000.spi/spi_master/spi0/spi0.0/buildid
cat /sys/devices/platform/soc/4a88000.spi/spi_master/spi0/spi0.0/productinfo

NO_PROP_NEEDED

Change-Id: Idc9a005d10050aa7dc3668a9de4826f053901a67
Signed-off-by: shourieg <shourieg@motorola.com>
Reviewed-on: https://gerrit.mot.com/1631276
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Marcos Sassahara <msassaha@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
2020-06-23 02:11:14 -05:00
hujing3
38609caf43 focaltech_0flash_mmi: support FT tp ft8006s_aa
Cebu TP:
Add ft tp ft8006s_aa IC
NO_PROP_NEEDED: already in bq_shm2018,Gerrit: 1436075

Change-Id: I9381fa7f27d65af03c5ac179c016ab37a8981e88
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1636123
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xianhong Li <lixh8@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-06-22 23:40:50 -05:00
dengwei1
9b74c88370 Guam: input update touch chipone resume time
input update touch chipone
resume time

NO_PROP_NEEDED: only for guam

Change-Id: Ib11Montana36996d131526ae9cb9c9c6490029c302be
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1630634
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-06-22 01:14:04 -05:00
Konstantin Makariev
e2c0f43aff synaptics_mmi_class: panel ready handling
Detection work handling panel ready event need to check current touch
IC state before calling resume method. Sometimes driver can
transition to suspend before panel ready received, thus detection
work must query current state before calling resume.

Change-Id: I58f6e6eb7c717fb11778a5b566eb67369facd603
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1631533
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-06-19 16:30:36 -05:00
Andy White
f4e72e165a aw8697: Add "Moto Retro" to ringtone map
Add new ringtone to end of waveform file array.
"Moto Retro" is not present on all AW8697 devices.

Change-Id: I1b4b68aec659306eea3b398a0460ec28326e2c26
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1596551
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-06-19 15:52:14 -05:00
Andy White
30b10c835d fg: Trigger POR in factory mode or factory software
Check for factory mode or factory software and reset on probe.

Change-Id: I46ad960219739ff6412f77bc8947a25690da3488
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1617379
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-06-18 13:00:25 -05:00
wangyq13
8b5ac94545 DLKM: leds_aw99703: don't pull down enable pin again
leds_aw99703:
Don't pull down enable pin again to avoid backlight flicker when
system boot.

Change-Id: I52c4f01dfd3c50d9cf7202a53f31957cb29d5479
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1625864
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-06-18 05:25:37 -05:00
yangjq
80ff61e535 racer 5G: aw8695: Add 3 new ringtone waveforms
Add 3 new waveform binaries for ringtone "Play", "TJINGLE" and
"Verizon_Airwaves".

NO_PROP_NEEDED: Only new products need these new ringtones.

Change-Id: I2bb497ab21205e6bb2b5645d82f57988534c23c5
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1621835
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-06-15 21:53:21 -05:00
yangjq
8db7df380c aw8697: A fix of rtp playing from Awinic
When frequently making a phone call and declining it, the waveform
playing sometimes would fail to work due to the limitation of i2c's
transmission speed.

Awinic provides this solution and it not only works fine but also has
been integrated to all their new software releases, even for aw8697.

NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.

Change-Id: Id7f1a01c4fcb13b082ca48d105654803eb84e8f4
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1616585
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-06-15 06:27:04 -05:00
yangjq
4ba3ddd1dc aw8697: Stop repeatedly waveform playing
Stop repeatedly waveform playing when receive a stop command.

Also cancel the 120s timer when stopping vibrating.

When stopping waveform playing, the 120s timer to safely stop
vibrating also needs to be canceled because it becomes no use, and
it might disturb normal operation when it's triggered later.

NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.

Change-Id: I544ec1c8c391bf5468b22bdd0095a77b9d43d222
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1611611
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1614428
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-06-15 06:26:59 -05:00
yangjq
1dd38c4212 aw8697: Support repeatedly waveform playing
Play those waveforms repeatedly with wave id higher than 200;
Stop the repeatedly playing after 2 minutes automatically to avoid
the problem when no stop command is received as expected;

As for the Code-Review-1 of missing propagation to branch(es):
bq-shm2018

NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.

Change-Id: Ic9201ffbe726de66a513b6ea501b4e3bf99beef1
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1577403
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1611551
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-06-15 06:26:55 -05:00
yanyh2
7e2ed631f2 adjust factory image identification
Adjust the way to identify factory bootloader to decide
whether SW is factory SW version.

When device in factory mode may be identified as factory version
in previous implementation.

Change-Id: I38b4fe9ea12d70b8e07416110c2d7e8a5bbf994a
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1616461
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-06-15 00:35:23 -05:00
dengwei1
46549afa7c guam: input add moto care support
input add moto care support
for guam

NO_PROP_NEEDED: only for guam

Change-Id: Id6e3363575bff0825c26b7bdd4d2200c06f4a185
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1616016
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-06-14 22:24:04 -05:00
yangjq
f70e023e1a aw8695: A fix of rtp playing from Awinic
When frequently making a phone call and declining it, the waveform
playing sometimes would fail to work due to the limitation of i2c's
transmission speed.

Awinic provides this solution and it not only works fine but also has
been integrated to all their new software releases, even for aw8697.

NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.

Change-Id: I6fea17ac70b0781e4e395c3f3c4e9bd2859d6f66
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1616513
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-06-12 05:56:03 -05:00
yangjq
e46db14438 aw8695: Cancel the 120s timer when stopping vibrating
When stopping waveform playing, the 120s timer to safely stop
vibrating also needs to be canceled because it becomes no use, and
it might disturb normal operation when it's triggered later.

NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.

Change-Id: I5f5b65dfc930d252c89183c2bf22f7b8cae110aa
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1613915
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
2020-06-11 04:14:43 -05:00
yangjq
7d98ee3f20 aw8695: Stop repeatedly waveform playing
Stop repeatedly waveform playing when receive a stop command.

NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.

Change-Id: I3147d49c1d9d47dd8586250d9fd2155cd2ab0698
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1611611
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-06-10 11:25:39 -05:00
dengwei1
74fd22263c guam: input touch add class ic_ver support
input touch add class
ic_ver support
NO_PROP_NEEDED: only for guam

Change-Id: I315c83611f52196a62d57325645bc27217a39d6c
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1610780
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-06-09 21:51:22 -05:00
wengjun1
b56025a63d dlkm: Add himax touch info node for Moto Care
- Now we need ic_ver node to points out Product ID, Build ID and
Config ID for moto care, so add /sys/class/touchscreen/NVT-ts/ic_ver
for this requirement.

Change-Id: I9b481abb9c399077212739eb0f79e4f97b03ed84
Reviewed-on: https://gerrit.mot.com/1606735
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-06-08 21:05:21 -05:00
Ryan Lattrel
12e3ce978e Revert "(CR): modules: power: Add Adaptive Charging feature"
This reverts commit e130da4632a9818ab07b4b9e21400172a43de933.
Mot-CRs-fixed: (CR)

Change-Id: Ib68efac21a73ffd78cdd60b748fe32cb5479ea49
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1583201
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-06-08 12:37:38 -05:00
Ryan Lattrel
84cd5e0c5b Revert "(CR): qpnp-smbcharger-mmi: Fix getting stuck in adaptive mode"
This reverts commit 2b28077d6f80aa57e75d703908d2efa0ef3221f2.
Mot-CRs-fixed: (CR)

Change-Id: Id68f413c32fd73dd4adf27587f5f457fb92aaead
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1583200
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-06-08 12:37:29 -05:00
xuwt2
977fe15282 mmi_sys_temp: Add thermal sensors monitor work
CRs: (CR), Add a thermal sensors temperature monitor policy
it can listen to the specified thermal sensors and
report their temperature when the power supply was changed

NO_PROP_NEEDED: if needed.

Change-Id: I09ff63c12c9723a00b992018cc2d693d143bd26e
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1424608
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1606687
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
2020-06-08 03:26:41 -05:00
wengjun1
c347ce6333 dlkm: Add novatek touch info node for Moto Care
- Now we need ic_ver node to points out  Product ID, Build ID and
Config ID for moto care, so add /sys/class/touchscreen/NVT-ts/ic_ver
for this requirement.

Change-Id: I9637276ccd968008b40d5f10609c2d4a52f5e502
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1606371
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-06-08 02:43:39 -05:00
litong
34686a0745 Add the judgment on gesture_enabled configuration in dtbo
TP:
If "mmi,enable-gestures" is not configured in dtbo, do not enter the
gesture_suspend function, so that prevent access to null pointer.

Change-Id: I689fecdd9bbf9f31e13dfa780d614d6c53774c5a
Reviewed-on: https://gerrit.mot.com/1600197
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-06-04 21:11:42 -05:00
zhongling1
6e4d188a6f Double tap optimization
Set double click interval to 300ms
to avoid false trigger.

Change-Id: I31da2f3bc917741444118c48df596340858be557
Signed-off-by: zhongling1 <zhongling1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1600095
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-06-04 05:16:45 -05:00
Andy White
0b3fdf0116 aw8697: smith: Add boot-up vibration
Add 1-second long vibration after waveform library load
as a boot-up vibration. This is distinct from the f0
calibration pulse.

Change-Id: Ic31062da9cbcd163f9af3882e7cdd2bcc389020c
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1593615
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-06-03 14:22:14 -05:00
Konstantin Makariev
e895977efc synaptics_mmi_class: fix suspend/resume callbacks
Touchscreen class driver suspend/resume callbacks updated to properly
enter enter/exit suspend mode.

NO_PROP_NEEDED: this driver only used in Smith

Change-Id: I12e786077bebd08f3011e128b8df665d5ec9d53b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1596492
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
2020-06-03 10:33:07 -05:00
litong
26f1197d84 Release touch events after suspend
1. After in_susped is true, release all touch events to avoid receiving
touch events and not releasing them while the touchscreen is suspended.
2. Only release the finger when the suspend is completed, not in the
pre-suspend phase and the suspend phase, otherwise it will cause
multiple down and up events for one event.

Change-Id: I0b061468a4b22b7231c4e32785ba8c63041315f3
Reviewed-on: https://gerrit.mot.com/1595399
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-06-03 04:37:57 -05:00
litong
866aada563 Set the type of release event to the correct value.
When the release event is received, the value of the type should not
be modified to TS_COORDINATE_ACTION_NONE, it should always be
TS_COORDINATE_ACTION_RELEASE.

Change-Id: I871567c0a32ce30611f6e50d86e9c5af06353360
Reviewed-on: https://gerrit.mot.com/1597584
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-06-03 04:37:52 -05:00
wengjun1
477d824a1c dlkm: Improve himax_0flash_mmi for single tap
- Because sometimes the event of singe tap does not take long
enough for the upper layer to process, adding wakelock extends
the time for the system to enter sleep to ensure that every event
can be processed normally.

Change-Id: Ie01c83eb6d4331dc1ab38dd1d4e33fc3aae3a50f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1594839
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-06-02 21:35:06 -05:00
Bernie Moreno-BERNIEM
220eafc716 add dm_code ver 1 to both fg
Change-Id: I50b31068d97529da413a1085db0ef2856c889143
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1588884
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-06-02 09:47:44 -05:00
Ryan Lattrel
4996f1f056 p938x_charger: wake lock initialized too late
The wake lock is initialized too late if we boot up with the
charger attached.  The phone will still charge, but there might
be unintended side effects of trying to sleep while attached
to the charger.

Additionally, re-run aicl in this case to ensure the current
is correct.

Change-Id: Ic18c6581a3ffa9e172d24d97604f7d93baaea516
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1590031
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-06-01 16:54:19 -05:00
Andy White
17333d3730 capsense: Add dummy set_poll_delay function
Add dummy function so we no longer get "Invalid sensor class
delay handle" errors

Change-Id: I7b3fd34e485ffff58736b3b58e660bdb276085ad
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1585831
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-05-29 13:34:35 -05:00
haojl2
af1e9ff4f1 touchscreen_mmi: optimize poison event
When poisoned slot's event is outof poison area, temperary report this
event.

Change-Id: I3fa3fd735fbcda9983e663836b898c809323f559
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1587418
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-05-29 04:07:43 -05:00
haojl2
80c513e09b synaptics_tcm_v2: Add touchscreen class handle touch event
Let touchscreen class do some gesture work before vendor driver code
repot event.
To accomplish some gesture algorithm, touchscreen class need report
touch events and skip vendor's events report.

Change-Id: I42fe9df4c0190449b0052a9f18623db1d2514285
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1567169
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-29 01:55:16 -05:00
haojl2
ef916eb278 touchscreen_mmi: Add poison slot support.
Import a new gesture, poison slot.
When the report point is in this supression area, and the Y-axis
coordinate changes in little range over a period of time.
This is considered to be a point caused by the user's grip at edge.
Temporarily close all events report function for this slot from driver,
until this slot receives a release event or touch screen suspend.

Change-Id: Id7541aab8314e611d6943ed081f07776e5939f1b
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1584617
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-05-29 01:55:09 -05:00
dengwei1
1d5ae85ca3 guam: input update touch chipone driver version
input update touch chipone driver
version 1.2.8 base vendor
NO_PROP_NEEDED

Change-Id: I30f61091d706e7e0c7839da26f658a88f362f7c7
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1586983
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-05-29 01:48:22 -05:00
wengjun1
3dddb0ddfb dlkm: bo: Clean up focaltech_0flash_8756_mmi
- Clean up focaltech_0flash_8756_mmi because it's not really used
in any of our products now.

Change-Id: I585df913007e0bd3fc190a9a2851008e0a388109
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1583839
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-28 20:35:46 -05:00
wangyq13
1f94cddbdd ilitek_0flash_mmi: add ili9881x initial driver
ilitek_0flash_mmi:
Add ili9881x initial driver.

Change-Id: I2f9373cbcdbfb4eb9f7cc0c521977da77634e919
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1584344
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-05-28 02:43:26 -05:00
wangyq13
7896edaeec backlight: Add wleds driver aw99703
backlight:
Add wleds aw99703 initial driver.

Change-Id: Ie40380796126e59391043dc80cb8f46c8784c38e
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1584340
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-05-28 02:43:21 -05:00
wengjun1
ffe1fe74e8 Nairobi hx83112f touch driver improvement
Per discussed with vendor, we don't need to wait until the init code
of display is downloaded to start the touch resume work, so change
the corresponding event when touch resume.

Change-Id: I4dbc09feaad4e2022366cbd6c5f8cfdb118d6374
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1581976
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-05-27 20:45:29 -05:00
zhouwl
764634ffd0 ASoC: aw882xx: set speaker default impedance value
According to Astro audio calibration statistical data in ODM
Ontim factory, set 7.3 as speaker default impedance value.
If aw_cali.bin is not exist, use 7.3ohm for aw882xx speaker
protection algorithm.

NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.

Change-Id: Icc2b8cd24b2fd6547b8244a6c987122c1648d7c1
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1582361
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-05-27 06:09:23 -05:00
yangjq
f52bed53d0 aw8695: Support repeatedly waveform playing
Play those waveforms repeatedly with wave id higher than 200;
Stop the repeatedly playing after 2 minutes automatically to avoid
the problem when no stop command is received as expected;

As for the Code-Review-1 of missing propagation to branch(es):
bq-shm2018

NO_PROP_NEEDED: This propagation is only needed when the change of
framework for this new feature is integrated, being done by engineers
in charge of that product.

Change-Id: I1398e0017240b6ea70a7e05b73f65776172f2250
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1577403
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-05-25 20:18:18 -05:00
litong
be092e7e98 Set the default value of gs_distance is 0x1e
TP:
When upgrading from a firmware that does not support this function
to a new firmware, reading data will fail, so set the default value.



Change-Id: Ic15b5d227b2d90d86a3d96cd8c21ccb94d69294a
Reviewed-on: https://gerrit.mot.com/1572762
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-05-24 21:17:40 -05:00
litong
b223dd7e9e Syna: Modify the baseline update process
When the FPS is in the monitoring state, the baseline is not updated
when touchscrenn resume.

Change-Id: I115403a961504a7a73b625f32a8c1c64e90d99a5
Reviewed-on: https://gerrit.mot.com/1572727
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-05-24 21:17:31 -05:00
haojl2
9231fb4a23 touchscreen_mmi: do not lock in irq context
ts_mmi_touch_event_handler is running in irq context.
Do not wait mutex for long time.
If mutex can not get, just enable update baseline next time.

Change-Id: Ib943dfbebbd29e521c66360ff97d46ccc9dcb99f
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1572687
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-05-24 21:06:30 -05:00