Commit Graph
147 Commits
Author SHA1 Message Date
tinno18 7f4f72e425 Hawaii+oled: chipone fingerprint disable power control
disable power control
modified:   Kbuild
modified:   fpsensor_spi_tee.c

Change-Id: I36b00a5921edd61484c94b4a50b449664ed2e71e
Reviewed-on: https://gerrit.mot.com/2180508
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-01-27 07:40:54 -06:00
chenlj2 fde09f4c60 DLKM/fps:optimise focal driver
focal
modify event interface to send screen status

Change-Id: I85243ca523276e1bd53ca89807078aae3d1aaf8b
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2173256
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-01-19 00:19:19 -06:00
tinno18 ea0570ad0a HAWAO+OLED: chipone fingerprint modify the power-on sequence
Used to fix the failure of the probabilistic startup identification module

Change-Id: Id37309cd0e2e448e4989cea8ae098cd36d47e889
modified:   fpsensor_spi_tee.c
Reviewed-on: https://gerrit.mot.com/2172960
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-01-18 03:56:51 -06:00
liujian24 6fadca094d ibiza:disable power control for chipone FPS
WHY:Makefile is wrong and enables power control for all products
WHAT:Modify makefile to enable power control only on Hawao

Change-Id: If50e4154c0baf80be6bc30744d98a4bc7270ecce
Reviewed-on: https://gerrit.mot.com/2171657
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-01-17 02:21:06 -06:00
Yan Zhang a67332ded1 : Support screen callback thru panel notification
focal fingerprint module:
Support screen callback thru panel notification for qcom sm2020
platform.



Change-Id: Ic5fe044351468da2ff528da009d18d4dcacd4e8a
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2169268
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-13 22:31:39 -06:00
Yan Zhang 597372804c use correct macro for FOD
use correct macro for Egis FOD

Change-Id: Idd6b2a2ae05cdf99025bbfe2aa19f56fa26c43e3
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2169272
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-13 04:03:06 -06:00
wingte50 42d008cccb FPS: Modify the power-on sequence for focaltech
After the VDD is powered on for more than 1ms ,
The RST is powered on

Change-Id: I7c49dc6cbaab0a9dee0ae8642a9de13db971f51b
Reviewed-on: https://gerrit.mot.com/2167042
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <leiyun@wingtech.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-01-11 21:27:22 -06:00
liujian24 65c4f350b2 Hawao:Enable power gpio for Chipone FPS
WHY:FPS sensor will be overheating due to impact damage to FPS
WHAT:Enable power gpio in Chipone FPS driver so that it can disable power
     when overheating.

Change-Id: Ie32e69870cbcc53f6fafd97ac0068f79b66afbaf
Reviewed-on: https://gerrit.mot.com/2166844
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-01-10 21:28:34 -06:00
chenlj2 842041e75d DLKM/fps:add build control for focal
add build control for focal
support DRM screen status interface

Change-Id: I9a5ead1b52a2a287785cf0db38cceeb08c206623
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2163372
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-01-09 20:26:12 -06:00
chenlj2 c97446a89b DLKM/fps:optimise screen status interface for focal
kernel version >= 4.19&DRM panel used
screen notify interface change

Change-Id: I8a5785931902e2378beab32961999cc880a1c1af
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2162012
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-01-05 22:51:09 -06:00
Yan Zhang b6a130bde1 dlkm:Update rbs driver for FOD
Move delay to hal for better performance.


Change-Id: I0e208047b9d0be8c016929d67d1486ecf5e9d9d5
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2161172
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-04 20:37:55 -06:00
Yan Zhang 3d1cecc323 Change to mdelay for power up delay
FOD will turn on/off frequently, msleep will take longer delay than
 expected, use mdelay to optimize the power up time.

Change-Id: I9c4d23f0c3b98713eeee7bb1393106ebac507af4
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2157879
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-29 23:49:12 -06:00
chenlj2 3775caaa65 DLKM/fps:optimise power ctl for focal
optimise log process
Enable ff_device_control_reset

Change-Id: Ibb899cd1bfa22acd42066ec9368b9312afe4d273
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2156913
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-12-29 04:18:30 -06:00
chenlj2 9ee6062664 DLKM/fps:add power ctrl for ets kernel driver
Control gpio switch and regulator of fingerprint according to
the configuration of device node.

Change-Id: I2c581df3a88cf02089f0e8edd9f45ea09715c2e5
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2132820
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-12-14 00:40:17 -06:00
wuwl10 3849eeccd0 dlkm: silead_fps: remapping the keycode
Remapping the keycode report to HAL  per moto spec.
Remove the HOMEPAGE key to avoid factory test issue.

Change-Id: I8b4c5ee1d10fe43f466906d70a58fd007d89b6cb
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2117197
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Zhong <zhongl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-11-16 03:21:27 -06:00
Yan Zhang da19276c28 dlkm: Add focaltech fps module
Add focaltech fps module to bring up side fps
FT9391.

Change-Id: I52a4b1a328a7e7135ab8743cdad76c513a4ff9eb
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2085146
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-10-18 03:56:00 -05:00
Yan Zhang d85f57f55f Upgrade egis driver for supporting ET721
Dubai will use ET721 Fod sensor, need to upgrade
egis rbs driver to support FOD.

Change-Id: I5974aafe1cc3d85caae3260fdfa4095beda6a4c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2071992
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-10-12 01:58:29 -05:00
wuwl10 0411fbfbcd dlkm: add new silead fps driver
Silead fingerprint sensor is a new chipset and vendor
Add new driver to support it.

Change-Id: Ibbad53b820b527e4d4e42af9c6f7ec5718d1d6dd
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2062795
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Zhong <zhongl1@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-09-09 04:22:44 -05:00
Yan Zhang b03369e4a4 set screen default state to on
rbs driver:
set screen default state to on

Change-Id: I965fa0b2cdc0e3e15b584de2c73e78c1401cf86b
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059942
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-09-06 01:09:54 -05:00
Yan Zhang 14e37d1dc7 Update the poll mask when polling is aborted by hal
Egis:
Update the poll mask when polling is aborted by hal to support polling
wait forever. do not impact previous 30ms polling mechanism.

Change-Id: I1f6a2adb38f0282e944dde60539cd51179f5c733
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053956
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-30 02:09:58 -05:00
Yan Zhang 9dd045ad16 : Add panel notification for egis rbs driver
Egis rbs:
Add panel notification for egis rbs driver to reduce nav mode
power consumption.

Change-Id: I9a6b4c5eb14d7b55eb72714521e3a821ddd6304a
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2042170
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-18 03:02:58 -05:00
chengql2 61f8bb0bb7 goodix_fod_mmi.ko: Update Makefile to compat kernel 5.10
motorola/kernel/modules/drivers/input/misc/goodix_fod_mmi/Makefile:
updated to compat kernel 5.10

For Rogue, on SM8450, with kernel 5.10 based, kernel modules should use
the new version of Makefile.

Change-Id: I5094768f8d86179b981c07a1a15710555d3bad83
Signed-off-by: chengql2 <chengql2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2021379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Shunde Jiang <jiangsd2@motorola.com>
Submit-Approved: Jira Key
2021-07-22 06:31:58 -05:00
daiss1 986fcec74a FPS: Support multi-fingerprint function.
Support multi-fingerprint function.
Compatible with android S compilation method.

Change-Id: I051838c9bbfadf2de488816169425ea11bb56d68
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2019759
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiuliang Cheng <chengql2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-07-21 22:21:55 -05:00
daiss1 557ad02ce3 fpc_fps_mmi: Modify Makefile for Android S build ko
Modify:
Modify Makefile for Android S build ko

Change-Id: I5f9014ed4be793ab5226aad0dffadc2207bf5b1d
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1992052
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-25 09:50:03 -05:00
Yan Zhang b1f8698429 add power ctrl for fpc driver
Control gpio switch and regulator of fingerprint according to
the configuration of device node.
1. Use gpio switch if fp-gpio-ven is defined and valid.
2 .Use regulator control if rgltr-ctrl-support is defined and relevant
    vdd, voltage range is valid.

Change-Id: Ia5e71c08306835e4d93552dbc037beb78fca39db
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971796
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-15 02:06:11 -05:00
Yan Zhang a38b3424f3 add power ctrl for goodix kernel driver
Control gpio switch and regulator of fingerprint according to
the configuration of device node.
1. Use gpio switch if fp-gpio-ven is defined and valid.
2 .Use regulator control if "rgltr-ctrl-support" is defined and relevant
    "fp,vdd" and voltage range is valid.


Change-Id: I40acd3abdba285a41f258d51b62f92a59c6796c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971397
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-15 02:05:55 -05:00
Konstantin Makariev 7a6de0ddde bos0614_mmi: fix alignment issue
Structure alignment and missing data initialization allowed for
improperly populated value.

Change-Id: Iab8c395452db159415cf3052e7a7590770d8ae5f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1962683
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-27 14:37:47 -05:00
litong 8243242481 Revert "(CR): fix user version build error"
Not defined CONFGI_PANEL_NOTIFICATIONS, so the module does not depend on
the msm_drm.ko, so there is no need to add the kernel symvers.

This reverts commit 976d0428b82bdf3b44b2affdc67a0e18f40a72e3.

Change-Id: If84d0e09157d13c6731df33ac032e7bee53d0e0b
Reviewed-on: https://gerrit.mot.com/1960482
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-27 01:45:23 -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
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
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
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
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
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
Konstantin Makariev dc86c37e42 bos0614_mmi: added features
Added the following features:

  1) BOS0614 registers dump sysfs
  2) reading device tree and applying default config
     in case of power cut

Change-Id: I53f1b7069ea4d74aa8b02ac525765951fe29bcce
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1889879
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-03-30 09:11:11 -05:00
Konstantin Makariev 58d96a29a3 bos0614_mmi: build kernel code
Bunch of changes required to build DLKM in MMI environment

Change-Id: Id906a1153eef64111f220f70aca1f48da0132276
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1876599
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-26 12:42:43 -06:00
Konstantin Makariev 7dc7b88b7c bos0614_mmi: initial reference driver
Initial reference kernel driver code for BOS0614 piezo haptic IC

Change-Id: Ia7d7abca9eca2f077c830a7edada0f7450a8cebc
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1870423
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-26 12:42:39 -06:00
chengql2 39d494b928 driver/GoodixFP Add the soft dependency of gpio-pcal6408
motorola/kernel/modules/drivers/input/misc/goodix_fod_mmi/gf_spi.c:
Add the soft dependency of gpio-pcal6408:
MODULE_SOFTDEP("pre: gpio-pcal6408");

Pioneer (alias: banks) wires a GPIO PIN from expander IC TCA6418 for
the reset PIN FP_RST_N of fingerprint sensor GF3626.
So, the fingerprint sensor driver has a dependency on the driver of
GPIO expander.

Change-Id: I3bae36c1b87bc0c3f50fd5a1b57511b90cc5771f
Signed-off-by: chengql2 <chengql2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1855475
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-02-01 09:03:10 -06:00
wuwl10 9b7affca1d fpc1020: fix null pointer panic issue
For multi fps sensor, if there was some unexprect
INT signal comming during sensor being remove,
IRQ handle will panic becase the sysfs kobj had
ben free. Disable the irq to avoid this.

Change-Id: I2144c6f803547c281830058b29438b9d71cd5933
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1853153
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-01-20 00:16:03 -06:00
Lei Chen 0e9ba4e1fb dlkm: fix free irq warning for chipone sensor
__free_irq warning triggered after running command rmmod
fpsensor_tee_spi. Use the matched function devm_free_irq().

Change-Id: I07dc06ea0afbd69827977c76a709ddfc5b39b843
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1837444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-12-29 20:07:56 -06:00
zhuwg1 4cc7e3bbb4 vl53l5: Support 32bit compatible Kernel driver for vl53l5
Make the vl53l5 Kernel driver compatible for both 32bit and 64bit
applications from userspace, including L5 test program, factory TCMD
and camera app through L5 Sensor HAL.

Change-Id: Ia0ce2db08de83f7ab6ff487660ccd2bd21b48a14
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1831972
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-12-21 00:00:00 -06:00
wuwl10 d1f375b0ea dlkm: fpc1020: free gpio when remove
Improve the remove logic to make sure all
gpio be free when remove

Change-Id: Ica6d730b64202e2cdc49b99484682c19e18a4c81
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1831921
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-12-20 21:10:19 -06:00
Yan Zhang 06f5b5afc1 add mmi_relay notify interface by conditional
goodix fps driver is used by capacitive fps sensor as well, however 
mmi_relay is required by FOD module only,  so add the mmi_relay module
under conditional.

Change-Id: Ib93a2a7f9f8c8254cd67b7882336e9b7751e9863
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1808891
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-24 00:58:08 -06:00
jixj 669ca8d8d6 qpnp-power-on-mmi: fix build error on user build
"kernel_halt" is not in Google's GKI whitelist, add modules.symvers of
QGKI to fix build error on GKI build.
This module is no must in GKI, it doesn't matter that fails to load

Change-Id: I77c89c1236bcd2352b85b69e180687744e1f59b4
Reviewed-on: https://gerrit.mot.com/1807425
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-20 04:09:37 -06:00
weiweij f20500f540 dlkm/qpnp-power-on-mmi: change vfs_write to kernel_write
For linux 5.4, vfs_write will not be used, and it is changed to kernel_write,
so, we add the version judgment for this.

Change-Id: Iec34f046e608ec42436a741784aeeb9a1f46f479
Signed-off-by: weiweij <weiweij@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1806106
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-19 03:49:23 -06:00
chengql2 efda4a150a ets_fps_mmi: Register panel notifier for display on/off
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi/ets_fps.*:
Add panel notifier and ioctl command GET_DISP_PANEL_STATUS

To get the display panel status, register panel notifier to monitor the
events of PANEL_EVENT_DISPLAY_ON and PANEL_EVENT_DISPLAY_OFF.
And, add an ioctl command GET_DISP_PANEL_STATUS to support HAL service
querying for the panel status.

Change-Id: Ife5b6bc48517234b12c780af44dffaf4a1ad96e5
Signed-off-by: chengql2 <chengql2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1794293
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2020-11-17 23:58:45 -06:00
litong 63266f55f0 Register mmi_relay notification for FOD
Register the mmi_relay notify to send the FOD state change
events to touchscreen class.

Change-Id: I2c14322ce21ff69e3a921f38ee2784e8d23a7c65
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1802937
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-14 19:55:04 -06:00
Tito Ricardo Bianchin Oliveira 13c7ce2de0 Revert "(CR): Register mmi_relay notification for FOD"
Cause: This commit makes Racer5G touch doesn't work at all

This reverts commit 488e073dc33db9ba86fdfb47d1e010d7fa65f9fb.

Change-Id: I3c4f25b2290cd39267ecee3a1061ee5775f2a844
Reviewed-on: https://gerrit.mot.com/1802576
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-13 12:17:16 -06:00
litong 4e40cec475 Register mmi_relay notification for FOD
Register the mmi_relay notify to send the FOD state change
events to touchscreen class.

Change-Id: I532196304deac0788807652a0c636d41397c5802
Reviewed-on: https://gerrit.mot.com/1798309
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-11-12 01:39:00 -06:00