Commit graph

1,259 commits

Author SHA1 Message Date
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
Yan Zhang
0ef1874f24 fir: update the power manage logic
change:
Disable fir work thread when display is off

Change-Id: I35df74fe89caed3d02f574bc22afb40ee43bdd3f
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1664163
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-06 03:52:46 -05:00
yangjq
207ef8d65a aw8624: Upgrade driver from 1.0.7 to 1.3.9
Upgrade driver of aw8624 from 1.0.7 to 1.3.9, which was suggested
by Awinic.

NO_PROP_NEEDED: Only for a new product Kiev JAPAN.

Change-Id: I31d665574d135836496fd14c0bc54428db9eaff7
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1659051
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-03 05:17:31 -05:00
hechuang1
73318b8fb7 Change double tap interval for Egis FPS
Change double tap interval from first finger up to second finger up
    to first finger up to second finger down

NO_PROP_NEEDED: only need for nairo

Change-Id: Id97ad5a62c22df358f037f4314f4abb992522bd6
Reviewed-on: https://gerrit.mot.com/1656842
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1659068
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2020-07-03 04:54:15 -05:00
wangyq13
7434f7fe43 input: ilitek_0flash_mmi: reset IC if esd recovery fail
ilitek_0flash_mmi:
Reset IC again and downlaod firmware if esd recovery fail.
Previous codes have logic error, can't reset IC correctly.
Patches from Vendor.
NO_PROP_NEEDED: New IC changes.

Change-Id: I9b043ab9a8611f62f82599ee6de86f4876e25691
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1658332
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-07-03 04:10:37 -05:00
Drew Abbott
655139da36 Increment dm_ver
The new battery profile was added, but the dm_ver was never incremented.
The driver will not update the configuration on the chips until it sees
a new dm_ver, so this is required to actually see the effects of the new
battery configuration files.

NO_PROP_NEEDED: this only affects smith and the new battery profiles for
smith

Change-Id: Ie5714c8b7a02227027aef994727417fbe2beac5d
Reviewed-on: https://gerrit.mot.com/1653126
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-02 19:54:20 -05:00
litong
28c6857203 Fixup the definition of unregister_panel_notifier
TP:
Fix the error definition of unregister_panel_notifier in (CR).
NO_PROP_NEEDED: <Touch driver code is is unified in bo branch>

Change-Id: Ibb5e0be256e78a31efd59b4f7a2e4329797c3e9c
Reviewed-on: https://gerrit.mot.com/1651390
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-02 04:52:30 -05:00
hujing3
a599b49f10 focaltech_0flash_mmi: enable ESD for ft8006s_aa
Cebu TP:
ft8006s_aa TP failed, enable ESD
NO_PROP_NEEDED: not suitable for shm2018

Change-Id: I10aa06f369be09ec80127b0475c6bb52ea6ff0e0
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1656129
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-02 01:15:11 -05:00
daiss1
ea2e8997d1 KeivJP: bringup chipone fps driver
bringup chipone fps driver
build fpsensor_spi_tee

NO_PROP_NEEDED:chipone fps only used kiev

Change-Id: If53eb500939061791959c31d5525d2f323736df2
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1649664
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-07-01 22:42:17 -05:00
Yan Zhang
f7aadbe62a Added dts901b1 thermopile kernel module
changelist:
	Added dts901b1 thermopile kernel module

Change-Id: IeMontana5d74842f373d3fdc8ec2a7689d21535396af
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1654384
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-01 21:43:55 -05:00
wangyq13
976597a1be input: ilitek_0flash_mmi: import some ili common changes
-SLEEP_IN change to DEEP_SLEEP_IN when suspend reduce power consumption
-Add 20ms delay when fw send cmd except the first
NO_PROP_NEEDED: New IC changes

Change-Id: I924d8c0af894c138d89496117579ab2b6b6f413e
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1652002
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
2020-07-01 21:30:17 -05:00
wangyq13
29cfda09a3 DLKM: leds_aw99703: change backlight type to Platform
leds_aw99703:
Change backlight type to 99703 to avoid conflict with panel0-backlight.
NO_PROP_NEEDED: WLED IC for new product

Change-Id: Ibb824c08774c5aa60b10a318896d07fa7ce872d3
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1653746
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-07-01 04:41:56 -05:00
a7301c
5d6c6412e0 Use kernel_definitions.mk if AndroidKernel.mk not existed
Since all the definitions of Qcom's kernel 5.4 are now in
device/qcom/kernelscripts/kernel_definitions.mk,
And AndroidKernelModule.mk is removed in kernel 5.4.
So include kernel_definitions.mk instead for baseline
that does not have AndroidKernelModule.mk.

Change-Id: I3b995554697d04f06658448eedd19f98e6196db2
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1650768
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
2020-06-30 06:44:26 -05:00
wangyq13
377a72515d input: ilitek_0flash_mmi: resume touch by ddi
- Trigger touch firmware download by display driver
  for quick touch response.
- Only use panel notify, avoid trigger drm and panel
  notification at the same time.
NO_PROP_NEEDED: New IC driver.

Change-Id: I01313efff3713d45362af18c277aa759e67dda23
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1649595
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-30 03:58:56 -05:00
Drew Abbott
db416079e5 Add Golden Profiles from testing
These are the golden profiles generated using the Battery Management
Studio software provided by TI. They should replace existing
configuration.

NO_PROP_NEEDED: battery profiles are specific to smith

Change-Id: Iaa7dd0631a6b2fc57fefea09ec09d094fb0e9458
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1622722
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-29 14:55:03 -05:00
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