Commit graph

1,702 commits

Author SHA1 Message Date
wangyq13
0213be45da dlkm: leds_aw99703: free gpio if init failed
dlkm/leds_aw99703:
Free gpio if init failed, otherwise other modules can't request
this gpio again.

Change-Id: I0cfcde5156651c298d24b6debde468593efe48d6
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1958088
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-24 04:28:55 -05:00
wangyq13
0a30569e82 dlkm: leds_lm3697: add initial version lm3697 driver
dlkm/leds_lm3697:
Add initial version lm3697 driver.

Change-Id: Ibc125e6980e46d8c1c2bbe8d93a06e236a64e456
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1954968
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-24 04:28:47 -05:00
litong20
0f6b37ff56 Fix berlna user version build error.
TP:
When link binary object, touch_set_state is undefined,
No kernel symbal table was imported.

Change-Id: Ibd1cde478b08308d14fdba210ae3a61cd9887ff5
Reviewed-on: https://gerrit.mot.com/1957708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-24 00:37:50 -05:00
litong20
39087fae46 Support novatek single tap in berlna
TP:
Support novatek single tap function in berlin NA.

Change-Id: I8f1d8d82b919b20fcba4812a74f247399a097ddf
Reviewed-on: https://gerrit.mot.com/1955575
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-24 00:37:06 -05:00
litong20
4cf1d3ef52 fix user version build error
When link binary object, panel_register_notifier is undefined,
No kernel symbal table was imported.

Change-Id: I539793e5aa2bd2d27d8ed9b959d9bef86739b26c
Reviewed-on: https://gerrit.mot.com/1957707
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2021-05-24 00:36:47 -05:00
cuijy1
25ad59d3e7 sx937x:change offset val bit mask
offset reg use D13~D0 bit
change the mask to 0x3fff

Change-Id: Ibc5b021d27c2bf52df1b579be8134f38c65c036d
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1956900
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-05-23 20:54:56 -05:00
zoujc
7877b0daa1 touch mmi:2nd patch, fix user version build error.
When link binary object, dsi_freq_head is undefined,
No kernel symbal table was imported.
Match kernel version for user build.

Change-Id: I73d4ea7c02c22c449ce7f266e54e1e0a17e16bd8
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1957477
Reviewed-by: Jianqi Yang <yangj@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2021-05-21 22:11:55 -05:00
zoujc
55e17181dd touch mmi:Fix user version build error.
When link binary object, dsi_freq_head is undefined,
No kernel symbal table was imported.

Change-Id: I3d099fd9ea91c6de2d08f5013645ae7a1318eb86
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1956689
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2021-05-21 03:57:55 -05:00
xuwei9
0814ebcd35 charger:mmi_hb_wake lock not released
mmi_hb_wakelock need acquire and release
at 70s duration,fix algoritm issue.

Change-Id: I069f395082fd21e170876d86fe3c91b24add7a43
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1956605
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-21 02:12:59 -05:00
cuijy1
f2b097bc8f SX937x: USE power online state
some platform not support power present state
use online instead

Change-Id: Ia234b8d4fc33c3f4e8e43a87e96fb9b34a12ffc1
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1951809
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-05-20 22:10:57 -05:00
Konstantin Makariev
2107f02e1c bos0614: access to sysfs for others
Need to allow group others to access driver interfaces in sysfs

Change-Id: Ic83b07674ee5396abc58aae3cf21ddf883c3196b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1934267
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-20 09:11:18 -05:00
Konstantin Makariev
2873bd469d bos0614_mmi: waveform shape feature
Haptics waveform has shape up and shape down settings that were not
availbale through sysfs set_waveform interface. This change adds an
extra parameter allowing for waveform shape to be specified.

Includes some code cleanup as well

Change-Id: I1901b69520515d79f1f6ccf4d701fc373aab74e9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1952944
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-20 09:11:08 -05:00
wangyq13
cb0f2ebc47 focaltech_v2_mmi: bringup ft3519 on kernel 5.4
- change some compile error for focaltech driver on kernel 5.4
- bringup up ft3519

Change-Id: Id3eac6bdb3047bc33befc86a87b809671367672f
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1954464
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-20 04:22:05 -05:00
xuwei9
dcbb936232 qc3p:config ibus max to 3A
Config ibus max to 3A
for 33w adapter verification.

Change-Id: Ie35291b1d5f8de88470f1f9956afd8f021cbbe67
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1955363
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-20 04:20:13 -05:00
xuwei9
1d385c3ac4 mmi_parallel_charger:reduce charge rate report
report charger rate only change
happened.

Change-Id: Id773d3fd84adaa9690b1137a86d1972ec0e46412
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1955184
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-20 02:03:38 -05:00
wengjun1
d30cb29b96 dlkm: Cyprus: touch: ili7807s bringup
- Support ili9882 driver for kernel 5.4.0
- Improve touch driver

Change-Id: I340bec19ac48f3fde166a17da8a060f5dee1eac5
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1950206
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-19 00:57:52 -05:00
Yan Zhang
24d2d0e60e Add Egis fps kernel module for rbs
Egis rbs:
Added Egis kernel module for new egis rbs architecture

Change-Id: I74e977b69684b9b447745edcf73f47761d6c5f53
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1941950
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-19 00:40:37 -05:00
litong20
2f8e7af032 Support report rate switch
TP:
Recieve dsi refresh rate notification to switch
touch report

Change-Id: Ibe7ab1910552dd2c6b2bc395306d9635356966fe
Reviewed-on: https://gerrit.mot.com/1950078
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-18 22:15:32 -05:00
litong20
815b312e37 Add game mode parameter adjustment function
1. firset frame filter { C0 17 byte2 byte3 }
byte2: 0x01 Enaable first frame filter of first finger; 0x00 Disable
byte3: 0x01 Enable first frame of second finger; 0x00 Disable

2. Linearity adjustment cmd { C0 19 byte2 }
byte2: 0x01 Enable linearity adjustment; 0x00 Disable

3. tap jitter and slide jitter cmd { C0 18 byte2 byte3 byte4 byte5 byte6 byte7 }
byte2: tap X jitter; byte3: tap Y jitter
byte4: slow slide X jitter; byte5:  slow slide Y jitter
byte6: fast slide X jitter; byte7: fast slide Y jitter

Change-Id: I8691b3410e5fe487bb6d2f6aac941506ec31f3a9
Reviewed-on: https://gerrit.mot.com/1950913
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-18 21:34:36 -05:00
wangyq13
e0f5d218cf input: goodix_v1510: change to api in chip vendor whitelist
goodix_v1510:
Change some APIs to these in chip vendor whitelist, otherwise
compile errors occures.

Change-Id: Id48062e9340f4839582681950302a15eabc1d71a
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1951734
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-17 23:18:21 -05:00
litong20
be8e8cbc99 Add pollForEvent check mechanism
1. When the panel enters the active state, the gesture_enable should be set to 0.
2. When resume, the charger mode is already set, so not to wirte.
3. When the CONTROLLER_READY event is not polled, perform a system reset.

Change-Id: I5281e9cb4e962f5f0a1c9460fecd541ae72fa3f4
Reviewed-on: https://gerrit.mot.com/1950039
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-16 21:24:14 -05:00
xuwei9
e30f0e1fd1 smbcharger:QC3P charging support
Add qc3p current max for charging
current setting.

Change-Id: I0db8d15df066b149407eecdc8d3d0425ce052ca2
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1949239
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-14 04:09:23 -05:00
xuwei9
b05fb69b80 module:QC3P charging support init
QC3P charging policy support
replace pd with qc3+.

Change-Id: Ibc6cfc3d49dc09e475f182502de339bee9fd8485
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1949238
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-14 04:09:16 -05:00
xuwei9
2942d8e68d module:mmi parallel charger qc3p repo init
QC3P charging support code
init based on mmi_parallel_charger

Change-Id: Ibd78091e6da640a8554f186bc4f1ac0a5e9baa91
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1949237
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-14 04:09:08 -05:00
Konstantin Makariev
fe99218085 bos0614_mmi: support rev C
Update kernel driver to support revision C of BOS0614

Change-Id: I025f5f9e8bf8d17eb92bcf0e1f7f940c4238e3d8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1938220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-13 20:26:50 -05:00
litong20
f8958185f0 : Delete the calibration process on probe
TP:
Cannot perform calibration on probe.

Change-Id: Id4a5310c307d99d70be9d0b3916f70f8e7f873f1
Reviewed-on: https://gerrit.mot.com/1948111
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Suting Xie <xiest1@motorola.com>
2021-05-13 05:21:08 -05:00
litong20
2f939c2081 Support single tap to wake the device
TP:
Support single tap gesture mode.

Change-Id: I7d4b0c32c99c1d7daf514cbcd3fb6b95357e922b
Reviewed-on: https://gerrit.mot.com/1946658
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-13 03:35:04 -05:00
Bernie Moreno-BERNIEM
4c2fe1dc2a power:fet_control: Charge path gpio too slow
Schedule chrg cable ps-notification to update work after 3secs, to
allow cable status update.  This will improve gpio timing to within
3secs, vs waiting for next reg schedulked work, which could be 30s

Change-Id: I5c9d252c9d23be6bad085fb7bd9b3b892f5ea2e8
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1947523
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-12 15:16:02 -05:00
litong20
f56562dd90 Fix the BTN_TOUCH report error
When the first finger is down, report BTN_TOUCH down event once,
and only when all fingers are up, BTN_TOUCH up event will be reported.

Change-Id: I23c1b0673157daa280a9a1c365cbcd7452a147fc
Reviewed-on: https://gerrit.mot.com/1946914
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-12 07:05:20 -05:00
litong20
d49bedadce Solve the issue that firmware can not be updated.
The value of u16_chip0Id is read from firmware, if the firmware is
lost, this value is fts0000, and the init.mmi.touch.sh service cannot
find the matching firmware to upgrade. So the productinfo should use
the value read from hardware.

Change-Id: Ic7f8ad98d574a4f7861a4a192aa10a87870788a5
Reviewed-on: https://gerrit.mot.com/1946543
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-12 07:00:37 -05:00
a7301c
dc892e9b1f Add support for Build_external_kernelmodule.mk
The Android build infrastructure is transitioning to a new
mechansim for building external modules.
Starting from Taro(8450), update moto drivers to use that
mechanism.

Change-Id: Ic3640feabd6bd77334861d3f73082907ed88648b
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1941175
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
2021-05-11 09:36:02 -05:00
litong20
b4b1963ffd touch:sleep in atomic context
disable_irq will sleep while atomic context,
switch mutex_lock to fix it.

<4>[  109.768530] Call trace:
<4>[  109.768533]  __schedule_bug+0x9c/0xac
<4>[  109.768537]  __schedule+0x94/0x884
<4>[  109.768540]  schedule+0x80/0xb0
<4>[  109.768544]  synchronize_irq+0x7c/0xb8
<4>[  109.768547]  disable_irq+0x70/0x9c
<4>[  109.768554]  fts_disableInterrupt+0x60/0xcc [stmicro_mmi]
<4>[  109.768560]  fts_mmi_drv_irq+0x94/0xf8 [stmicro_mmi]
<4>[  109.768567]  ts_mmi_panel_off+0x1cc/0x274 [touchscreen_mmi]
<4>[  109.768571]  ts_mmi_panel_cb+0x16c/0x4e0 [touchscreen_mmi]
<4>[  109.768575]  blocking_notifier_call_chain+0x70/0xe4
<4>[  109.768579]  drm_panel_notifier_call_chain+0x14/0x20
<4>[  109.768684]  _sde_kms_drm_check_dpms+0x214/0x264 [msm_drm]
<4>[  109.768780]  sde_kms_prepare_commit+0x250/0x3c4 [msm_drm]
<4>[  109.768866]  complete_commit+0x74/0x264 [msm_drm]
<4>[  109.768952]  _msm_drm_commit_work_cb+0x128/0x22c [msm_drm]
<4>[  109.768957]  kthread_worker_fn+0x110/0x1ac
<4>[  109.768960]  kthread+0x160/0x170
<4>[  109.768964]  ret_from_fork+0x10/0x18
<0>[  109.768968] Code: 9401195f 90013928 b9488d08 35000048 (d4210000) 
<4>[  109.768971] ---[ end trace 94703c960d9e3dae ]---
<0>[  109.770403] Kernel panic - not syncing: Fatal exception

Change-Id: Ib4f9fa13604f255b7a5432a48b66ef7707124017
Reviewed-on: https://gerrit.mot.com/1944265
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-10 20:17:49 -05:00
wangyq13
81d71754ba input: goodix_v1510: set regulator avdd load to 50mA
goodix_1510_mmi:
Set regulator avdd load to 50mA, make it to HPM mode when touch
is active.

Change-Id: I89bb24f3aa6b28669bf548f67ac51a804ed8b5c9
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1944027
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>
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2021-05-10 04:34:04 -05:00
litong20
829e751780 Do not set scan mode when setting charge mode
1. There is no need to set scan mode when setting the charge_mode.
2. Setting the scan mode will refresh the baseline and possibly
calibrate the fingers to th baseline.

Change-Id: Ia7e8a2aa538a52b9f0314b6591b09ebbc8d4c238
Reviewed-on: https://gerrit.mot.com/1944110
Reviewed-by: Jichao Zou <zoujc@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-05-10 04:27:25 -05:00
litong20
6ddecedc20 use request_threaded_irq to handle TP events.
TP:
1. When using the request_irq, the level trigger type caused an abnormal
interruption on the sm8350 platform, and even an interruption storm.
2. In the request_irq, the "fts_event_handler" function will be passed
to handler, and the handler is still called in hard interrupt context.
I think it is better to use request_threaded_irq function to handle events.

Change-Id: Ie1b7275306d0d498d5e550756f5be20f557107fb
Reviewed-on: https://gerrit.mot.com/1942457
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2021-05-08 00:51:55 -05:00
wangyq13
3e0c089633 focaltech_0flash: rm register_panel_notifier null define
focaltech_0flash_mmi:
Remove register_panel_notifier null definition, because this function
is only used when FOCALTECH_CONFIG_PANEL_NOTIFICATIONS defined.
Add this null definition causes redefinition warning.

Change-Id: I8d22e5f7fcecb3eae8dfb66c1341ab3f29bae070
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1942995
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-07 21:58:08 -05:00
Konstantin Makariev
168f1b5476 bos0614_mmi: fix few bugs
Includes the following fixes:

  1) waveform ID in autoplay
  2) signed and unsigned representation

Waveform ID cannot be limited to 0&1 only.
While it's not affecting values assigned to the corresponding
parameters, it's weird to see wrong value printed in kernel log

Change-Id: I32df3ad88c1917ed33f6264c3afe672693339bdb
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1942571
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-07 14:22:36 -05:00
wangyq13
0c784ef158 input: focaltech_0flash_mmi: add panel notifications
focaltech_0flash_mmi:
Add panel notifications. bq-sm2020 use panel notification and
touch_set_state for single tap.

Change-Id: I0eb7b0a307e2601b24376ac90dc5a35d002cb1e8
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1938270
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-07 05:00:46 -05:00
litong20
bfe0f70f8b Report BTN_TOUCH event when the fingers are lifted.
1. No need to set ABS_MT_TRACKING_ID, input_mt_init_slots() already set it.
2. Report BTN_TOUCH event when the fingers are lifted.

Change-Id: Ib22a50091745f7b4facea23104f3cdc3a33807c5
Reviewed-on: https://gerrit.mot.com/1940860
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-07 00:42:21 -05:00
Bernie Moreno-BERNIEM
724268d0df fet_control: banks: Enable only pm8350b chrg for usb2/3
Check for low current delivery usb2/3 SDP charge type and enable only
pm8350b source charging. Also enable flip path to allow both batteries
to be charged by pm.

Change-Id: I4441d23d4847af87f05f90b71f1e8ba740e9ea52
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1938246
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-04 15:46:25 -05:00
zhangh12
34605de176 sx937x: reset sar on i2c failures
porting from x933x,
Re-initialize via a watchdog failure

Change-Id: I5df7d15c9bc62d77940e7da1f57425d245bf5c86
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1935976
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-04-30 03:45:19 -05:00
yanyh2
177379d9c1 update the charger_suspend config in charger configure
Update the charger_suspend config in charger configure function based
on demo_suspend status to make sure charger_suspend config will not be
cleared for charger configure reset.

Change-Id: Ib1f11c28003de60221886a4bb9dba0e4fcac7735
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1933674
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-04-27 21:53:39 -05:00
Konstantin Makariev
bcbc566eb4 synaptics_mmi_class: fix broken build
Since module name has changed, there is no more naming conflict between
touchscreen class based driver and older version not using class code.
Removing stale references that won't be used again and fixing broken
build on some branches.

Change-Id: Id8f9c2b0ce6e4adae31882b7d28d5c928ee71fd7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1932146
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-04-26 09:53:29 -05:00
litong20
1cd7f94b4f berlNA: support usb detection of novatek TP.
TP:
Add USB detection based on touchscreen class.

Change-Id: I17228951a5974a21cabb9985caa7ec1c308f3016
Reviewed-on: https://gerrit.mot.com/1932115
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-04-25 22:18:55 -05:00
litong
ce629f8b01 Get usb status through POWER_SUPPLY_PROP_ONLINE property.
1. Some platforms do not support POWER_SUPPLY_PROP_PRESENT property.
2. When getting POWER_SUPPLY_PROP_PRESENT property fails, then
get POWER_SUPPLY_PROP_ONLINE property.

Change-Id: If46466ea5f79443310d1bc5aabb2be97e82d789c
Reviewed-on: https://gerrit.mot.com/1932041
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Jira Key
2021-04-25 21:10:01 -05:00
litong
b0a41920ef stmicro: Add USB detection based on touch class
TP:
Add USB detection based on touchscreen_mmi class.

Change-Id: I5f5ce631d462ea80f0190a4e6c49602c6d89327a
Reviewed-on: https://gerrit.mot.com/1932033
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Jira Key
2021-04-25 21:09:53 -05:00
daiss1
0fa67c9868 ETS: Solve the compilation problem of androidR
Modify:
Solve the compilation problem of androidR

Change-Id: Ic24fa799ac614bc8c08d0656c7345d0efbef0f3b
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1931815
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-04-25 02:48:49 -05:00
litong
70b3e44810 Support TP report rate switching
TP:
Berlin need to support 240Hz and 480Hz report rate switching.

Change-Id: I050da407a67e2976903d37900a7c05b938ad1190
Reviewed-on: https://gerrit.mot.com/1925619
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-04-23 06:51:00 -05:00
wangdw10
a414b1b315 regulator: wl2866d: support to read init value from dts
when wl2866d regulator was not only used by camera, they may need
some of the ldos always on, so add dts property check to init the ldos.

Change-Id: I8b752f1d11548b12dfac2051bf7301b97703ae59
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1929489
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Peng Zhang <zhangp49@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-04-22 07:44:52 -05:00
litong
325993a42e Resolve compilation errors for nio
Change-Id: Id65c5321fcd99d56c3920546242e9f53e73c4a7c
TP:
error: use of undeclared identifier "TOUCH_DEEP_SLEEP_STATE".
Reviewed-on: https://gerrit.mot.com/1929849
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-04-22 04:26:43 -05:00