Commit graph

1,176 commits

Author SHA1 Message Date
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
liugy11
5c63004d22 [Kiev]To support USB calibration
Add USB calibration feature
for kiev

Change-Id: Ieb2482ac5eb1dc9c4e9234e82797d5ddcd62d861
Signed-off-by: liugy11 <liugy11@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1571791
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-05-21 21:07:24 -05:00
Ryan Lattrel
9d63dad77a sx933x: update flip registers after init
Update the flip registers after the reset has been performed
and the global dev has been set, otherwise they will not get
set until a flip is performed.

Change-Id: Iabb1290adcdc292fffe25fe427c1a5635958b09b
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1569226
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-21 15:02:29 -05:00
Ryan Lattrel
51c7c1a3eb sx933x: turn off sensing before flip updates
Turn off the sensing before updating for flip open/close.
It is possibly leading to random lockups.

Change-Id: I09b48a36adc7ca0d0514e9af4d8ef881c118d6b8
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1568380
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Perry White <awhite6@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-21 15:02:20 -05:00
Ryan Lattrel
19d3334032 Add qpnp_adaptive_charge module
Add a generic adaptive charging module to be used with qcom
chipsets.  This should function independently of any
charging module that might be used.

Change-Id: I556c672e9f1d68df2163749099d2ef2fb2e2d479
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1552136
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-05-21 14:13:30 -05:00
haojl2
91d4490a4e touchscreen_mmi: Properly handle the deletion process.
input_unregister_device and input_free_device should not call twice.
And after device be freed.
And devm_kfree is no need call after device freed.

Change-Id: I23fc92c196b33b029c6da0924cb468f2c63a3597
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1570151
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-21 05:06:00 -05:00
Drew Abbott
3b63984854 Add more configuration commands for FG
Add general configuration commands to the list of chemid commands that
are executed in order during fg_update_bqfs(). Add temporary function
for writing CC_Gain, as the i2c are not documented and require bqstudio
to generate.

NO_PROP_NEEDED

Change-Id: I0ff796ea263af664aadedc692946d20035c71dc5
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1564812
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-05-20 13:10:26 -05:00
dengwei1
0f1c349b6a guam: input update touch himax driver
update himax touch driver
as vendor
NO_PROP_NEEDED: only for guam

Change-Id: I4f4659988697e729adf9a77d578f2aed1d223df2
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1565255
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-19 20:40:59 -05:00
Konstantin Makariev
537b158992 sec_mmi: show firmware version info
Make driver reporting full firmware version info in the kernel log
on probe and upon firmware update.

Change-Id: Ide1ea8dabd2fbfc804cc3043e56fb2a56f9db5da
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1564546
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-19 10:46:35 -05:00
haojl2
04f414b1fa touchscreen_mmi: Control baseline update by FPS notifier
FOD sensor will depend on touch event to trigger fingerprint
authentication.
When device is waken up, and user put finger on FOD area just when touch
IC is resuming, IC will update baseline and set current finger on screen
as touch baseline. In this situation, no touch event will report.
To fix this issue, touchscreen class will disable touch IC baseline
update function by FPS working status.
If FPS is working, delay baseline update to FPS stop working or get
touch up event.

Change-Id: I16b964c71bf1adc71832a8d25c74b7734dd88d20
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1551682
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-18 21:18:55 -05:00
haojl2
31bac7f50d sec_mmi: Add update baseline method for lsi IC
Control IC baseline update by driver code.
This is useful to fix no response issue that finger is already
on screen before IC resume.

Change-Id: Ic23d169d0fb14472ab29d3bc93f1a4be827f18f9
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549505
Reviewed-by: <litong20@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-18 21:16:38 -05:00
haojl2
fe14f72d22 touchscreen_mmi: Add update baseline entry
Touch
Add baseline control sys entry in touchscreen class.

Change-Id: Iede6e212e731934a33fe18a45f50ac6abbb07f3d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549501
Reviewed-by: <litong20@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-18 21:16:14 -05:00
haojl2
4bd01a0a20 goodix_fod_mmi: Add device enable notifier chain
Add fingerprint notifier chain in kernel module.
When fingerprint sensor is in working mode, HAL will set dev enable
status, and driver will broadcast this info to FPS notifier chain.

Change-Id: I075cf59aaf031d491f6e7edbe11ed509786e73aa
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1551681
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qiuliang Cheng <chengql2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-18 21:14:55 -05:00
Andy White
991f9f0549 aw8697: Disable external triggers
External hardware triggering was being enabled, leading to
occasional errant vibrations

Change-Id: I227564de70e9e9a036b8cebca6129255591bc194
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1551942
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-15 12:56:23 -05:00
haojl2
814f0c227c touchscreen_mmi: selete on state when panel register.
If vendor dtsi add touchscreen mmi pinctrl on state, select this state
when panel registered to touchscreen class.

Change-Id: I01c989da2e2b66dd57c818c8322f0969e127dc25
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1557379
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: <litong20@motorola.com>
Submit-Approved: Jira Key
2020-05-15 03:19:37 -05:00
litong
2e439ca820 Synaptics: Add hold-distance function, command is 0xdc.
The command is used to set the sliding distance to determine whether
it is a sliding event, the default value is 0xff.

Change-Id: I38baa51e9812bc86613b26e34c36ae4f42934eed
Reviewed-on: https://gerrit.mot.com/1551675
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-14 21:11:13 -05:00
litong
107ad28332 synaptics: Add suppression control function
TP:
Add suppression control function, the command is 0xdb.
The value means:
    Right side grip suppression off: 0x03
    Left side grip suppression off: 0x02
    Both side grip suppression off: 0x01
    Both side grip suppression on : 0x00

Change-Id: I3e3249bf36685afc611523e80e9cd1054cccf413
Reviewed-on: https://gerrit.mot.com/1551576
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-14 21:08:04 -05:00
litong
f0597e7a29 Report finger lift events after touch suspend.
Solve the problem that the events between the release of the finger
and the completion of the suspend is not released.

Change-Id: I1ccaa71ecd48b91c99f33a9655408dbf8cd1ce09
Reviewed-on: https://gerrit.mot.com/1553366
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-14 03:51:20 -05:00
haojl2
e8506977db synaptics_tcm_v2: Add wait_for_ready methord
If IC resume from power off status. IC should wait a while for IC bootup
So add wait_for_ready methord.

Change-Id: Ia05d2ca650540d087c100a058c3832179c4bd07c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1553616
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-14 02:39:04 -05:00
haojl2
843da210a8 touchscreen_mmi: Add default pinctrl methord
If ts_mmi_on_state or ts_mmi_off_state pinctrl states is defined, and
vendor method not defined it's pinctrl callback function.
Add default pinctrl function for this situation.

Change-Id: I5873980ee6425b22af1af416228481af1abe360d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1553615
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-14 02:38:58 -05:00
Ningkai Zhuang
82c12d6329 Solve NFC wake lock issue
NFC hold wake lock too much time that phone
may not suspend during screen turned off for
8 seconds

Change-Id: I7dde533767716af28c806f87a7dd04a38d238e3a
Signed-off-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1552151
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xu Du <duxu1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-05-11 21:31:32 -05:00
litong
55d43ce7cd touchscreen_mmi: exports touch events handler
1. Exports touch events handler in order to obtain the touch events
reported by vendor.
2. Add debug options to control whether to print log.

Change-Id: I3bb89cfe5c7a5a55ca01b3a93488558db4358445
Reviewed-on: https://gerrit.mot.com/1550603
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Submit-Approved: Jira Key
2020-05-11 21:25:29 -05:00
litong
82fd318b82 Syna: Report down/up touch events to touchscreen class
Report down/up touch events generated by the synaptics touch driver to
touchscreen class, this is for unified processing in the touchclass.

Change-Id: If3a6a93b6047ad45def4d81c956e830e30ab238e
Reviewed-on: https://gerrit.mot.com/1550601
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-11 21:25:15 -05:00
Konstantin Makariev
2bed9f6ab4 touchscreen_mmi: qcom drm notifications support
Kernel 4.9 is still using MSM DRM notification mechanism to report
blank/unblank events. To support programs that still on kernel 4.9
adding MSM DRM notifications to touchscreen MMI class
suspend/resume.

Change-Id: I128b216c25ba3a70c2abbb37049cf4102135893c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549390
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-11 17:43:00 -05:00
Konstantin Makariev
421cc631f0 sec_mmi: fix compile error
Fix compilers error caused by unnecessry argument passed to printk

Change-Id: I9ca3226707ebdc5f994118cc798e4a5f2b7a52d2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549391
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-11 17:42:52 -05:00
Konstantin Makariev
0a6dbeff9f add panel_notifier.h to mmi kernel modules area
This include file is required by panel on/off notification mechanism
used in MMI products. It makes more sense to keep it locally to avoid
adding it to various kernels

Change-Id: Ib0bc5a7dfe08c3dbae5f7960d3298b0f65811396
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549392
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-11 17:42:48 -05:00
litong
658222e621 Syna: Modify the ratio of the major and minor values
Modify the ratio of the major and minor values for FOD
For racer: ratio = 1948/ 128

Change-Id: I09db7e5adf7998fc468b4258d76d6846f0eb908e
Reviewed-on: https://gerrit.mot.com/1549735
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-10 22:23:05 -05:00
dengwei1
171fc53147 guam: input update touch himax driver
base on himax vendor, update the driver
and add usb detect notify
NO_PROP_NEEDED: only for guam

Change-Id: I105e27a5bc548df7a4fcc18c64687553bec31eba
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1551148
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-05-10 21:32:55 -05:00
wangyq13
69228e6b7b input: himax_v2_mmi: Sync touch suspend and resume thread
himax_v2_mmi:
1: Because system use drm notify to call touch suspend before display
driver pull down vsn/vsp, rst pin. So touch suspend thread wait until
touch resume thread end, avoid touch resume thread is interrupted by
touch suspend thread.
Set flag for resume start and end.
Suspend tread will check this flag, if resume is not end, then
don't pull down the vsn/vsp and reset pin, to avoid affect touch resume
thread, especially touch firmware upgrade.
2: Sometimes the reverse thing happen, suspend thread is interrupted by
resume thread. Such as the following process:
touch suspend->lcd resume+touch resume->lcd suspend. So when lcd resume
again, the last state of touch is resume, so touch will skip current
resume process, don't download touch firmware.
To fix this issue, force touch driver to execute the resume process.

Change-Id: I0ed48ec2bf8f65e2db281bef0c7f6cc63051ea64
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1549942
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yiwen Liu <liuyw2@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-05-08 23:45:41 -05:00
wangyq13
d4ac293489 input: himax_v2_mmi: set hx83012d only if defined
himax_v2_mmi:
Set hx83102d only if defined by product makefile, to avoid
affect other ICs.

Change-Id: I422df9d8f4318f46990cf81c03a6aa576ee3a97a
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1549941
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-05-08 22:43:13 -05:00
zhongling1
f942a926ca : Set up common vendor id for fps
Since framework need vendor id to filter double tap
set up vendor for fpc

Change-Id: Ie8faf63b5dcc4d5f3dc5992c3f16a273d39095af
Signed-off-by: zhongling1 <zhongling1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1550566
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-05-08 20:43:09 -05:00
Andy White
a2793d5541 fg: Trigger POR through sysfs instead of factory mode
Change-Id: Ib623d4ddd9c021c8cfc8692237d02871f47268df
Reviewed-on: https://gerrit.mot.com/1550009
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ling Jin <lingjin@motorola.com>
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Submit-Approved: Jira Key
2020-05-08 16:25:06 -05:00
cuijy2
e51af2ddaa capsense sx933x recive headset state
when headset insert
use special reg config

NO_PROP_NEEDED: only racer need this change

Change-Id: Iaea4faf18b5fce845a05f7262b2e683e1e37c16b
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1539481
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Submit-Approved: Jira Key
2020-05-08 03:29:33 -05:00
zhouwl
bc6d75f62e ASoC: implement ICN control in TAS2562
implement ICN control in TAS2562 kernel driver.
ICN enable = Receiver Configuration

Change-Id: I1ea32675096d6da77ea57bdb2c178872bf1b8947
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1549428
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-05-06 22:36:17 -05:00
Drew Abbott
6c95d8d468 Fail out of probe gracefully
The probe will succeed if the fg is not actually attached. To prevent
probe from adding a failing heartbeat function, fail out of the probe
function if there are i2c errors when trying to get the fw version on
the chip.

NO_PROP_NEEDED: This only affects phones with a flip FG and does not
need to be cherry-picked into branches for phones without one

Change-Id: I86fda0a6dd0dff59d7159a1a77991052838db6f9
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1546571
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-05-05 16:25:17 -05:00
Ryan Lattrel
49346a25ab smbcharger-mmi: Report turbo charging for wireless
Report wireless turbo charging if wireless reports
that it is a fast charger

Change-Id: I0312700bb7cfb8a44b4486f272aa91e8ce298a75
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1548060
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-05-05 15:43:10 -05:00
Ryan Lattrel
47210f01e5 p938x_charger: report fast charging if >= 15W
Only report fast charging rate if the guaranteed power
is greater than or equal to 15W.

Change-Id: I6f8a5492d47bf7a81b5b17215b5c8aa0ca65e871
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1548059
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Drew Abbott <drewa@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-05-05 15:43:00 -05:00
Jialei Hao
8340f806e9 Revert "(CR): touchscreen_mmi: Do not write if value is same with cached"
CRs-fixed: (CR)

This reverts commit ae14e1e8e6b308b0d8e48310a3da5249a55e18ea.

Change-Id: If12f4a04f4a4467ac23c27e356163b647c7c37c0
Reviewed-on: https://gerrit.mot.com/1547048
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-05-04 10:27:49 -05:00
a7301c
02067ed44f Fix complilation error after removing -fno-builtin
The complication error i observed after remove -fno-builtin
in kernel with commit: 6af03f4 Makefile: Remove -fno-builtin cflag
++++
kernel/msm-4.19/../../motorola/kernel/modules/drivers/misc/utag/utags.c:1805:45:
warning: size argument in 'strlcpy' call appears to be size of the
source; expec     ted the size of the destination
[-Wstrlcpy-strlcat-size]
++++

Change-Id: I68144bce14af6944e1b4d8c225d1ad04203aefa5
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1545924
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
2020-05-03 11:11:56 -05:00
xizx
d1dce5465a qpnp-power-on-mmi: support hw_warmreset feature
When system is freezed or has no response, DFers often reset the phone
by long-press power btn. So there is no useful log for developpers and
the issue becomes very hard to analysis.

This hw_warmreset feature will trigger a warmreset reboot, so that next
cycle system can save the lastkmsg and re-trigger a clean hardware
cold reboot.

Only when the command line is configured with "hw_warmreset_enable=1",
the feature will take effect.

Change-Id: Icb694be4023ad1e47e5872fee2cd9a9697bbb48d
Reviewed-on: https://gerrit.mot.com/1545767
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-04-30 05:55:13 -05:00
huangzh3
b061b8d033 : fix 'rmmod ets_fps_mmi' error
input_free_device() should only be used if
input_register_device() was not called yet or if it failed. Once
device was unregistered use input_unregister_device() and memory
will be freed once last reference to the device is dropped.
NO_PROP_NEEDED:  only one branch 'bo'

Change-Id: I82a8402192daed8ac94eb9a4c360984c4b28487d
Reviewed-on: https://gerrit.mot.com/1543781
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Submit-Approved: Jira Key
2020-04-30 04:04:03 -05:00
litong
8a43f52f68 Use touch class unified interface to support edge gesture
TP:
Modify the edge gesture node, use the unified interface in the
touchscreen class.

Change-Id: I94c2c4da74ca1e653fb26a0683a33a8cd8504ca4
Reviewed-on: https://gerrit.mot.com/1544089
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-04-30 00:40:20 -05:00
haojl2
99b1c39611 touchscreen_mmi: Do not write if value is same with cached
For writeable sys entry, if value is same with cached value, do not
write again.

Change-Id: I75b3b1ca6aa190e9507ca922071ba23c745dba5e
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544483
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:38:59 -05:00
haojl2
beca016ae8 touchscreen_mmi: use try to call and try to read
To call touchscreen methods may cause concurrent competition.
So use uniform macro TRY_TO_CALL and TRY_TO_GET to call and get from
touch IC.
Add a mutex to lock all method invoke.

Change-Id: Ifca60891582e76c5d31fbdb31a386618665d7258
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544138
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:38:52 -05:00