Commit graph

1,283 commits

Author SHA1 Message Date
dengwei1
b1e649dc13 guam: input update init drm callback timer
input update init drm callback
timer
NO_PROP_NEEDED

Change-Id: I6cee13786e425e6b7181a4afe9d1e40896974bee
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1702270
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-23 00:31:39 -05:00
dengwei1
69aa47a468 guam: input add touch ilitek support
input add touch ilitek
support
NO_PROP_NEEDED:only for guam/guamp/guamna

Change-Id: I7cd9be63ad90f6c67d8df810799308b5a9fa7b26
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1702165
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-22 20:59:51 -05:00
Konstantin Makariev
f0353502be synaptics_mmi_class: postpone loading functions
Postpone loading functions while firmware upgrade in progress. Otherwise
loading F54 fails and following function remove causes kernel to panic


Change-Id: I6f5f7ddf523fc33ccd2403f0963eba2a001df6c4
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1696371
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-22 09:52:49 -05:00
hujing3
f0d788752f focaltech_0flash_mmi: ft fw file not found
Cebu focaltech touch invalid, tp fw name match fail
Recover fwname logic which is deleted by (CR):1687856
NO_PROP_NEEDED: 1687856 not merged to shm2018

Change-Id: I13500d1a4caa57882d10320332d2c0e6b164ece4
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1700585
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-22 03:48:36 -05:00
hujing3
ebeda72879 focaltech_0flash_mmi:8006s_aa update irq config
Cebu: FT8006s_aa TP
Enable FOCALTECH_SUSPEND_IRQ_ENABLE for factory build only
NO_PROP_NEEDED: for sm2020 Cebu only

Change-Id: I6a15627a0ef720a96880f6877c8597b577718e67
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1700247
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-22 00:59:43 -05:00
Gilberto Gambugge
a8d6fe9a99 input: touchscreen: Check buffer size
Correct buffer size by adding sizeof() to avoid buffer
overflow.

Change-Id: Icc7e008a6849a456f46a36d2c5d69a5885e10f7c
Reviewed-on: https://gerrit.mot.com/1687856
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
2020-07-21 15:44:42 -05:00
Gilberto Gambugge
05174aafec input: touchscreen: focaltech: fix pointer comparison
Fix pointer to null char constant comparison

+++++++++++++++++++++++++++++++++++++++
Build error:

motorola/kernel/modules/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_test/focaltech_test_ini.c:136:21: warning: comparing a pointer to a null character constant; did you mean to compare to NULL? [-Wpointer-compare]
error, forbidden warning: focaltech_test_ini.c:136
+++++++++++++++++++++++++++++++++++++++

Change-Id: Ie1c9bcb4497ba8c0aeff74c2aa9ebaa111bb806d
Reviewed-on: https://gerrit.mot.com/1687857
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
2020-07-21 15:44:36 -05:00
litong
4e4042d824 Kiev: Add usb detection based on touchscreen class
TP:
Add support for USB detection based on touchscreen class in ft8756.

NO_PROP_NEEDED: <only needed for kiev in bo branch>

Change-Id: I94198558444620977ee90914347ffdb3c3360a01
Reviewed-on: https://gerrit.mot.com/1654275
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-07-21 02:34:28 -05:00
litong
40eb7e6dd7 Initialize usb state when registering the usb notification
If power supply supplier registered brfore touchscreen,
ps_notify_callback will not receive PSY_EVENT_PROP_ADDED
event, and will cause miss to set TP into charger state.
So check PS state in probe.

NO_PROP_NEEDED: <only needed for bo branch>

Change-Id: Ib2c190fe06bc9167a5e0108304e34389aa16ff5b
Reviewed-on: https://gerrit.mot.com/1685838
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-21 02:34:07 -05:00
Ryan Lattrel
e5ce10d03d sx933x: reinitialize via i2c watchdog
Re-initialize via a watchdog failure instead of a general
i2c failure.  This will allow us to recover from failures that
happen during init, and re-init.  The current solution does not
account of the fact that init could fail, and if init fails
there l(CR) won't be an interrupt that will drive the i2c
read/write failure to cause a recovery.

This should also reduce false postives, such as if we failed
to read i2c while suspending/resuming.

Change-Id: If7579a90c6490d5f9c4fec4c0d3e7b74cb8bdcaa
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1690483
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-20 17:08:19 -05:00
Drew Abbott
eb969bb20b Add SOH function
The state of health will provide a way to determine if a battery needs
to be replaced or not

NO_PROP_NEEDED: soh is only for TI FGs on Smith

Change-Id: I6281480033435d60b2e21ac81f093f1e09b51fca
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1690869
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-20 13:07:16 -05:00
xuwt2
1bf5c78fff qpnp-smbcharger-mmi: Offer hvdcp_power_max setting by sysfs
To proivde a sysfs node to reset hvdcp_power_max setting,
and rerun HVDCP process after that

Change-Id: I497a22d3e6974f27396595f894d868b55f4a80f0
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1686918
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-07-20 02:25:34 -05:00
Ryan Lattrel
420066548b sx933x: reset and re-init the device on i2c failures
If we get an unexpected i2c failure, toggle the ldo
and re-init the registers after it is back online.

Change-Id: Ie17a208fb612264a6ddc8cb5fff16e3123b5719e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1672836
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-17 14:31:52 -05:00
Bernie Moreno-BERNIEM
502eafd250 power: Remove FG reset for factory bootmode
Factory agrees to manually reset FG'es rather than automatically
in BL factory bootmode, in addition to factory_build. This will
allow CFC test to charge batteries in COM and reboot with minimal
charge capacity variation compared to re-init'ing FG at every boot.

NO_PROP_NEEDED: TI FG for smith product only

Change-Id: I6f0b2ceaeff5d4c20b01e154b48f9c54e22a9ef0
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1689972
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-17 13:11:10 -05:00
hujing3
70c1f7b543 focaltech_0flash_mmi:8006s_aa enable irq when supspend
Cebu: FT8006s_aa TP
TP need irq enabled to reload FW per LDA request
NO_PROP_NEEDED: for sm2020 Cebu only

Change-Id: I8fb0609b6d24f9798fda858e49fb496368d7e595
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1689716
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2020-07-17 10:20:51 -05:00
Bernie Moreno-BERNIEM
6520a77a6e power: Remove FG reset check for factory sw build
Factory s/w currently forces FG resets at every power up, as well
as from sysfs cmd. The s/w build applied reset causes unstable soc
when batteries are charged prior and esp with high rate chargers
in backend COM test.

NO_PROP_NEEDED: TI FG specific to Smith product.

Change-Id: I7b8bc56efa113db465e8f4cc965ca7b064543ebe
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1687439
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-16 23:48:37 -05:00
litong
c984540ea0 Add macro definition to control unused code in Kiev
1. kiev use panel notifications, so DRM and FB notifications are
not used.
2. Kiev use touchscreen class to control the resume and suspend
process, so conmment out unused notifications.

Change-Id: Ied0266b821d797ea38080c0f9a2027ce2be7ead6
Reviewed-on: https://gerrit.mot.com/1683922
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-07-16 03:26:35 -05:00
litong
8828c3c907 Kiev: ft8756:report touch events to touchscreen class
1. If there is a demand in the future, the touch screen class can add
some processing before reporting the touch events.
2. Output touch events for debugging

NO_PROP_NEEDED: <only for kiev in bo branch>

Change-Id: I1ad85bd86efc4799398530d30c6fe263e861e189
Reviewed-on: https://gerrit.mot.com/1683831
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-07-16 03:25:07 -05:00
wuwl10
05b981d8fa Double tap optimization
Set double click interval to 300ms  to
avoid false trigger.

NO_PROP_NEEDED: porting from bq-sh2019

Change-Id: Id4ab80b4c91c54fe37cb0af72bec267f1276e731
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1685735
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-07-16 01:58:50 -05:00
hujing3
522fa4233e focaltech_0flash_mmi: fix tp recovery issue for fts8006s_aa
Cebu: FT8006s_aa TP
TP recovery issue after ESD
NO_PROP_NEEDED: not sutiable for shm2018

Change-Id: I01bb84edea5416190f2f9bcef6dc0ab6e95fcf6b
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1685843
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-16 00:00:17 -05:00
Bernie Moreno-BERNIEM
ecd2ed388f power: TI FG dm_ver3
The golden profiles generated in TI tool does not account for Mot
custom chemistry setting. So we need to manually add dm element IDs
85, 84, 85, 108 to both FG gmfs files. Also increment dm ver to rev3.

NO_PROP_NEEDED: specific to only TI FG in smith.

Change-Id: Iba79bb27ddf7e3cd1007ca843d5a0092f275ca32
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1685703
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-15 23:04:54 -05:00
Gilberto Gambugge
1fa9b4b582 aw8695:Ensure wakeup_source API is compatible for all kernels
Updated wakeup_source API's need to be used for kernel_versions > 4.19.
Ensure to retain old wakeup_source API's for kernel_versions < 4.19.

ref.: https://gerrit.mot.com/#/c/1681553/

NO_PROP_NEEDED: applicable only to kernel_versions > 4.19

Change-Id: If7dc7924e584da29215b69027230856b0dc6e8c8
Reviewed-on: https://gerrit.mot.com/1685190
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
2020-07-15 17:00:10 -05:00
Konstantin Makariev
433cbc1bde aw8697: optimize sequencer registers write
Write all sequencer registers in one I2C transaction. Set WAVSEQ1
to 1 in vibrate function when it was not explicitly set

Change-Id: I24e13813bd97b6afb4436f91e79090ea6cb51a78
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1680232
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-15 16:07:53 -05:00
Konstantin Makariev
0eb28d01c1 aw8697: i2c transaction logging
Added I2C transaction logging facility. This feature controlled
by macro AW8697_I2C_DEBUG unset by default.

Change-Id: If5d5605ed094616a8dd866483ef40187e42bb3d4
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1680362
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-15 16:07:41 -05:00
Konstantin Makariev
8ea2836beb aw8697: treat 100ms haptics as short vibration
Gboard settings UI allows vibration strength to be 100ms. Make driver
considering 100ms vibration as short haptics instead of long one.

Change-Id: I3fe503b2718e6fa2349cc6fea2f76f4805b0374e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1667611
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-15 16:07:31 -05:00
Konstantin Makariev
366e3815d0 fts: initial STmicro touch driver code
Initial driver code v5.2.18

Change-Id: I1da8b0a36dbd147fee08e2ffba5d175113296c83
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1682343
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-14 15:37:49 -05:00
a7301c
fea6809413 fixup! (CR): touch:Ensure wakeup_source API is compatible for all kernels
Change-Id: Ie08261d271ac357615336d72b370eb219385a2b5
Reviewed-on: https://gerrit.mot.com/1682820
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
SME-Granted: Yinjun Chen <a7301c@motorola.com>
Submit-Approved: Yinjun Chen <a7301c@motorola.com>
Tested-by: Yinjun Chen <a7301c@motorola.com>
2020-07-14 15:32:00 -05:00
amarenr
7f7012991a awinic:Ensure wakeup_source API is compatible for all kernels
Updated wakeup_source API's need to be used for kernel_versions > 4.19.
Ensure to retain old wakeup_source API's for kernel_versions < 4.19.

Change-Id: If5d90025486c944b85674098a28bf9c989f276bc
Reviewed-on: https://gerrit.mot.com/1681965
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-14 14:01:58 -05:00
amarenr
e5ae26a0b1 touch:Ensure wakeup_source API is compatible for all kernels
Updated wakeup_source API's need to be used for kernel_versions > 4.19
Ensure to retain old wakeup_source API's for kernel_versions < 4.19

Change-Id: Ia96c57cc99f7e395de3e3d4896f5702cf5c4e1a4
Reviewed-on: https://gerrit.mot.com/1681964
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-14 14:01:58 -05:00
amarenr
d28dcc304c pmic: Ensure wakeup_source API is compatible for all kernels
Updated wakeup_source API's need to be used for kernel_versions > 4.19.
Ensure to retain old wakeup_source API's for kernel_versions < 4.19.

Change-Id: Idfbdadf5a63d3d87a7598df40d8bc47756c7a453
Reviewed-on: https://gerrit.mot.com/1681801
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-14 14:01:58 -05:00
kalathik
6a6c806f29 touch: Fix sec_ts build error due to wakeup_source API
On latest kernel wakeup_source_init API removed, instead
need to use wakeup_source_register.

This fix replaces:
wakeup_source_init with wakeup_source_register
wakeup_source_trash with wakeup_source_unregister

Change-Id: If252a430a40f695b9a2c4e4aa02d5905fb8d933c
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
2020-07-14 14:01:58 -05:00
amarenr
4fb6a297a0 Awinic: fix build error due to wakeup_source API's
Fix below build error
"aw8697.c:4182:48: error: too few arguments to function call, expected 2"

Change-Id: Ie5cf32d2ce27f661228f59352370793b79064100
2020-07-14 14:01:58 -05:00
kalathik
4ccacf9861 touch: synaptics: Fix wakeup_source event API change
On latest kernel wakeup_source_init API remove,
Need to use wakeup_source_register for the same.

This fix replaces wakeup_source_init to wakeup_source_register
wakeup_source_trash to wakeup_source_unregister

Change-Id: I684bb709000342165c74c2cf400edd54c0045f63
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
2020-07-14 14:01:58 -05:00
kumarv
ca6f40eab7 Power: fix implicit bld errs of wakeup_source API's
fix implicit bld errs of wakeup_source API's in Android R

On latest kernel rebase from QC:

we see couple of wakeup_source API's are removed,

errors as below:

motorola/kernel/modules/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c:4120:2: error: implicit declaration of function 'wakeup_source_init' [-Werror,-Wimplicit-function-declaration]
motorola/kernel/modules/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c:4443:2: error: implicit declaration of function 'wakeup_source_trash' [-Werror,-Wimplicit-function-declaration]

motorola/kernel/modules/drivers/power/p938x_charger/p938x_charger.c:2945:2: error: implicit declaration of function 'wakeup_source_init' [-Werror,-Wimplicit-function-declaration]
        wakeup_source_init(&chip->wls_wake_source, "p938x wireless charger");
motorola/kernel/modules/drivers/power/p938x_charger/p938x_charger.c:3015:2: error: implicit declaration of function 'wakeup_source_trash' [-Werror,-Wimplicit-function-declaration]
        wakeup_source_trash(&chip->wls_wake_source);

This fix replaces

1) wakeup_source_init(..) function with to wakeup_source_register(..)
2) wakeup_source_trash(..) function with to wakeup_source_unregister(..)

Change-Id: I9639f64ad8f9efeaf8f3d199f9a2af27341b145b
Signed-off-by: kumarv <kumarv@motorola.com>
2020-07-14 14:01:58 -05:00
hujing3
bad4e51512 focaltech_0flash_mmi: Add ESD log config
Cebu TP:
Add ESD log config, enable ESD log for Cebu ft8006s_aa.
NO_PROP_NEEDED: shm2018 Gin FT8006s_aa needn't this update.

Change-Id: If0da68cef0963d0846bcf82455cfc3d99d84c409
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1681206
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-14 00:28:58 -05:00
Bernie Moreno-BERNIEM
893c4d75aa power: smbcharger: Heartbeat Delay if FG reset incomplete
Factory SW boots charger driver quicker than user builds. So charger drv
may attempt a heartbeat update prior to completion of FG reset and re-init.
This can cause a negative bad read from FG.
Chrger drv checks will force the negative value to 0 soc instead. To
prevent this, delay to the next scheduled hearbeat capacity update.

NO_PROP_NEEDED: keep to smith & TI FG timing.

Change-Id: I71213fd0a33083fa3a885896e406b513279867ab
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1678268
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-13 17:33:27 -05:00
yanyh2
a0f5f44356 vl53l1: Make do_gettimeofday compatible to new Kernel version
do_gettimeofday is not supported in new Kernel version, redefine
it if it is not supported for compatible compilation of stmvl53l1
DLKM module.

Change-Id: I718eedf4d8cd8479f0d34fca8a78e7e1e39e49ec
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1679227
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-07-13 05:06:22 -05:00
yanyh2
33425953ea usbnet: Use KERNEL_DS to replace get_ds() for compilation
Legacy api get_ds is not used any more in new Kernel
version, and it can be replaced by KERNEL_DS directly
according to the explanation of the commit patch to
remove get_ds() from Kernel.

Change-Id: I9beffbeac23d5399fcf87f9bf832241f442654e0
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1679179
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-07-13 05:06:14 -05:00
litong
4642e2a1b6 Kiev: Add ft8756 single-tap wakeup gesture
TP:
Report the signle-tap wakeup gesture to doble-tap Sensor through
touchscreen class.

NO_PROP_NEEDED

Change-Id: I243b3d7263d7da17232637973882640caa279732
Reviewed-on: https://gerrit.mot.com/1673468
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-07-13 04:57:06 -05:00
litong20
9858787efb Revert "(CR): Send the touchscreen status to display"
CRs-fixed: (CR)

This reverts commit f365d6f2a3d5c2bbfe960c3fbaa06f9474217422.

Change-Id: Iaa0be2cc5a738483a61766bcfdee6cbccee0b28d
Reviewed-on: https://gerrit.mot.com/1678633
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-07-12 23:00:23 -05:00
litong
df91ea2299 Send the touchscreen status to display
When the display and touch IC share power, we need to send the TP status
in the gesture mode to notify the display to keep on powering.

NO_PROP_NEEDED: <only for kiev in bo branch>
Change-Id: I87b56d3d3712c956de88e09b2751f5c355fb7a9b
Reviewed-on: https://gerrit.mot.com/1666974
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-07-12 21:18:28 -05:00
Bernie Moreno-BERNIEM
4804c2ac9a ITERM80 mA
Set TI-FGes termination current to a lower level to prevent early
charge termination. The higher 200mA level caused lower capacity
Main batt to cycle continuously between chrg and dischrg while
Higher Cap Flip battery catches up.

NO_PROP_NEEDED: TI-FG is specific to SMITH product only

Change-Id: Ifa0504713ab420bb324dd20a73f1868146c9611c
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1672957
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-10 11:19:16 -05:00
hujing3
2e29cae7b7 DLKM: add ktd3136 backlight
ktd3136_bl:
suport ktd3136 backlight IC
NO_PROP_NEEDED: new backlight IC for new project

Change-Id: I0d67b497d7f8b09672b1279ae063a44265259885
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1673372
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-10 02:08:26 -05:00
shourieg
d303777d9e Add sys node ic_ver and name
Moto hardware revision need ic_ver.
Add sys node in focaltech_0flash_mmi touch driver.
name sys node provides the HW name.
ic_ver sys node provides touchscreen IC,Product ID
and Build ID information.

NO_PROP_NEEDED

Change-Id: I2a0a49f3d4a166ce1dc319900782b08a68c20214
Signed-off-by: shourieg <shourieg@motorola.com>
Reviewed-on: https://gerrit.mot.com/1668588
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Marcos Sassahara <msassaha@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-07-09 23:30:49 -05:00
wangyq13
92c6520ba5 DLKM: ilitek_0flash_mmi: add ilitek driver patch for dma
Patch from Vendor ILITEK:
To prevent the register of hardware DMA from getting the wrong value,
resulting in verification failure.
NO_PROP_NEEDED: New touch IC for NPI

Change-Id: Id81e539f3b3334d1c859d8794e730598be3469c9
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1667401
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-07-08 09:21:11 -05:00
wangyq13
d20b99e172 input: ilitek_0flash_mmi: pull down reset when shutdown
ilitek_0flash_mmi:
Pull down reset when shutdown to meet IC SPEC.
NO_PROP_NEEDED: ILITEK IC for NPI

Change-Id: I4d6a81068e16ff89b1028def9936b327040aa272
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1664373
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-07-08 09:21:05 -05:00
hujing3
9e463c960f focaltech_0flash_mmi: CONFIG_DRM_PANEL support
Cebu TP:
ft8006s_aa CONFIG_DRM_PANEL support
NO_PROP_NEEDED: shm2018 Gin FT8006s_aa needn't this update.

Change-Id: I3b3220f2af6955df5c75fc87f365e1ac6c0f8115
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1666841
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-07 05:29:21 -05:00
xizx
5e1c752975 mmi_info: fix undefined symbol error on kernel 5.4
Specific the depended module mmi_annotate symbol file.

The build error is:
FAILED: motorola_kernel_modules_drivers_mmi_info
/bin/bash -c "(mkdir -p out/target/product/jordan/obj/motorola/kernel/modules/drivers/mmi_info ) && (cp -f motorola/kernel/modules/drivers/mmi_info/Kbuild out/target/product/jordan/obj/motorol
make: Entering directory `/home/xizx/work/moto/8350/8350_mainline_0626_kernel/kernel/msm-5.4'
make[1]: Entering directory `/home/xizx/work/moto/8350/8350_mainline_0626_kernel/out/target/product/jordan/obj/kernel/msm-5.4'
  LTO [M] ../../motorola/kernel/modules/drivers/mmi_info/mmi_info.lto.o
  Building modules, stage 2.
  MODPOST 1 modules
ERROR: "mmi_annotate" [../../motorola/kernel/modules/drivers/mmi_info/mmi_info.ko] undefined!
ERROR: "mmi_annotate_persist" [../../motorola/kernel/modules/drivers/mmi_info/mmi_info.ko] undefined!
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
Change-Id: Ib9bbc5f89ffa881cb5deb7a4b4dd2400f4363da4
Reviewed-on: https://gerrit.mot.com/1651705
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-07-06 17:12:12 -05:00
xizx
1899713d9b mmi_info: remove unexported symbol in kernel5.4
The GKI kernel 5.4 will not export the arch_read_hardware_id()
symbol,so remove the function call.

build error is:
  CC [M]  ../../motorola/kernel/modules/drivers/mmi_info/mmi_boot_info.o
/home/xizx/work/moto/8350/8350_mainline_0626_kernel/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_info/mmi_unit_info.c:70:36: error: implicit declaration of function 'arch_read_hard
        seq_printf(f, "Hardware\t: %s\n", arch_read_hardware_id());
                                          ^
/home/xizx/work/moto/8350/8350_mainline_0626_kernel/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_info/mmi_unit_info.c:70:36: warning: format specifies type 'char *' but the argumen
error, forbidden warning: mmi_unit_info.c:70
make[2]: *** [../../motorola/kernel/modules/drivers/mmi_info/mmi_unit_info.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [../../motorola/kernel/modules/drivers/mmi_info] Error 2
make[1]: Leaving directory `/home/xizx/work/moto/8350/8350_mainline_0626_kernel/out/target/product/jordan/obj/kernel/msm-5.4'
make: *** [sub-make] Error 2
Change-Id: I602e8b904b0c1cf73910e808a8201a0e089e9e32
Reviewed-on: https://gerrit.mot.com/1651706
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-07-06 17:12:09 -05:00
litong
49097bf12e Kiev: Add touchscreen class for focaltech
Access to focaltech touch driver through touchscreen class
unified interface.

NO_PROP_NEEDED: <Touch driver code is unified in bo branch>
Change-Id: I32874ac2cc55b7e6df6c01470d767963e2b45122
Reviewed-on: https://gerrit.mot.com/1664276
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-07-06 05:40:17 -05:00