Commit graph

1,482 commits

Author SHA1 Message Date
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
wangyq13
9e6672d390 input: focaltech_v2_mmi: Configure power supply
input/focaltech_v2_mmi:
Request the proper valotage and load values for AVDD.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I0265da2f6a3e7f5eb19e807e3f5eddd2ad37212d
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1804490
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-17 19:55:23 -06:00
wengjun1
c149726ca2 dlkm: bo: Support multi panel-supplier for novatek
- kernel 5.4.0 will use active panel name by default.
- Optimize code flow related to new drm notifier.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I80216596d7619c21f2f80fa0dc45ed92734fef26
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1803218
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-16 19:42:29 -06:00
zhangly19
b16994d232 DLKM/Sar:add abov 7ch driver
-add abov 7ch driver
-add abov 7ch header file

Change-Id: I0a7e5214c25157ae4fff07d22fd301b2e395637e
Reviewed-on: https://gerrit.mot.com/1803336
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-11-16 03:01:02 -06:00
wangyq13
64bab96fd4 input: focaltech_v2_mmi: add V2 version of i2c focal driver
Add V2 version of focaltech i2c driver.
Because first version focaltech_mmi is too old for new focaltech
i2c chip. And this is common codebase, old products also use this
bo branch, it change old focaltech_mmi codes, will impact old
products stability.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I46368ebf7d4d87c79c4c7283f2e220f0295a1a51
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1802966
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-11-15 23:34:42 -06:00
litong
775e6ed9c0 Register mmi_relay notification for touchscreen
TP:
Register mmi_relay notify in  touchscreen class to receive
FOD status change events.

Change-Id: I8d5f346b329e9dc8a2585e62506260706a308188
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1802938
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-14 19:57:24 -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
litong
5d385bce9d An common module used for all of module communication.
The module encapsule a group of notification,
used for decoupling between modules, for example,
the touchscreen driver are coupling fingerprint
and display driver in the bring-up phase,
the dependencies between modules need to fixed
to avoid proceeding blocked,
This module is middle layer, it change a direct
dependece into an indirect dependence.

Change-Id: I4469dd70300fce2dc5d9af48e96d65755974ef9f
Reviewed-on: https://gerrit.mot.com/1802936
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:54:35 -06:00
Tito Ricardo Bianchin Oliveira
fd7cbea2c9 Revert "(CR): An common module used for all of module communication."
Cause: This commit makes Racer5G touch doesn't work at all

This reverts commit 941922034188b37f5bf30c2d5d5423c980f0b0d1.

Change-Id: Ida57d10b31cc5880a1f3bfdf949e397b61158d5b
Reviewed-on: https://gerrit.mot.com/1802577
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:21:57 -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
Tito Ricardo Bianchin Oliveira
92414d8c77 Revert "(CR): Register mmi_relay notification for touchscreen"
Cause: This commit makes Racer5G touch doesn't work at all

This reverts commit 3b191bcb6d43bea5f28ace9c54500a385816a27b.

Change-Id: Ibfcd64cbedc82ab773336423cab3fa53274ecd48
Reviewed-on: https://gerrit.mot.com/1802575
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:16:41 -06:00
kalathik
813f2b39b7 mmi_relay: Add gki flag to avoid module load failure
When importing the Modules.symvers in fix path, the GKI module will import an
incorrect one and cause module load fail in boot-gki kernel mode.

Change-Id: I58d33bd17a2419dee8efa335314535c25eb325d1
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1802317
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-11-13 09:42:16 -06:00
weimh1
4e93c431df driver/sar-sensor: sx937x bring up
1.update paramters
  2.adjust driver to match new params

Change-Id: I3affc71bce80ca8ce1558179df1f4305640df163
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1801960
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-13 02:36:31 -06:00
litong
b1ff78b885 Register mmi_relay notification for touchscreen
TP:
Register mmi_relay notify in  touchscreen class to receive
FOD status change events.

Change-Id: I540b012e12551b949800436a65b0b0a0d9676a38
Reviewed-on: https://gerrit.mot.com/1770280
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
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:12 -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
litong
a22d4e065e An common module used for all of module communication.
The module encapsule a group of notification,
used for decoupling between modules, for example,
the touchscreen driver are coupling fingerprint
and display driver in the bring-up phase,
the dependencies between modules need to fixed
to avoid proceeding blocked,
This module is middle layer, it change a direct
dependece into an indirect dependence.

Change-Id: I905ab2e3e4de32be9a2d2a9346d3153bb3690241
Reviewed-on: https://gerrit.mot.com/1756389
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-11-12 01:38:48 -06:00
hujing3
f155ee5a66 ili9882_mmi: deep sleep update with gesture config
ili9882_mmi: need enter deep sleep when suspend
if gesture disable
NO_PROP_NEEDED

Change-Id: I9e1806b481e8eb7a803427b725745905336577ec
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1799686
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-11 21:15:25 -06:00
hujing3
82d59a39a0 nova_0flash_mmi: improve panel-supplier
Capri plus: panel-supplier name is not matched with panel name completely
improve panel-supplier logic for this case
NO_PROP_NEEDED

Change-Id: Ia43fdff4cae8dd17c97940a05b03981e02a1280c
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1800288
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2020-11-11 21:10:18 -06:00
hujing3
71d26dcd2a ili9882_mmi: tp suspend improve
ili9882_mmi: update tp suspend
to avoid calling ili_spi_pll_clk_wakeup when resume
NO_PROP_NEEDED

Change-Id: I9a548eb50ff3492f094ce2c71c238ec21d9d3280
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798682
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-11 02:47:51 -06:00
wengjun1
a89263aeeb dlkm: bo: Support multi panel-supplier for novatek on 5.4.0
- Since kernel 5.4.0 with android R can't use chosen property of devicetree
to confirm which panel will be used, so get the right panel-supplier from
active panel name.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: Iaddcf244e5db6dbb77e2d825b18e9645fe1807e3
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1798496
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-11 00:38:28 -06:00
Ningkai Zhuang
d50ef8d192 UWB bring up for driver
Add UWB driver on kernel module
and UWB driver module support dlkm

Change-Id: I82302d83438afb104e818e31aa70091f5bb92a47
Reviewed-on: https://gerrit.mot.com/1774769
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-11-10 20:02:33 -06:00
hujing3
fcdea9385f ili9882_mmi: improve RESUME_BY_DDI support
ili9882_mmi: improve RESUME_BY_DDI support
for quick touch response.
NO_PROP_NEEDED

Change-Id: I1a54b94414b64de24d516acd51a5f49a1d3c566b
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798531
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-10 03:20:48 -06:00
hujing3
19dd36166f nova_0flash_mmi: add LCM_FAST_LIGHTUP support
nova_0flash_mmi:
add LCM_FAST_LIGHTUP support
NO_PROP_NEEDED

Change-Id: Ib449bc337ab7690e5fb0de57ca8cbe5714db18f3
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798386
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-10 03:20:34 -06:00
wengjun1
2d92c538ad Support tapTowake feature on android R for novatek
- Since moto display notifier has been changed to common
interface, for implement tap to wake need some changes to
match display.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I9642787a29e9326e9ac648138e2fe47800783ed0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1793188
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-10 01:14:10 -06:00
hujing3
6622b482a3 chipone_tddi_mmi: ICNL9911C and ESD improve
chipone_tddi_mmi:
ICNL9911C & ESD improve
NO_PROP_NEEDED

Change-Id: I5b40ceda928bf2f49bb4920d7134771d122cba76
Reviewed-on: https://gerrit.mot.com/1797147
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-09 00:02:33 -06:00
zhucc2
c920f5bf83 exfat: fix build err on user build.
After SM4350 ES FC rebase, find some API are delete by Google in GKI.
we have to workround as below:
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/
msm-$(MODULE_KERNEL_VERSION)/Module.symvers

ERROR: "truncate_setsize" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "setattr_prepare" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "clear_nlink" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "set_nlink" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "d_splice_alias" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "igrab" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!

Change-Id: I9399a691ee70485a157e33243c7095c38ab37290
Reviewed-on: https://gerrit.mot.com/1796098
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-06 04:43:04 -06:00
hujing3
4cc775bdc5 chipone_tddi_mmi: support ICNL9911C
Cebu 3rd panel bringup
Support Chipone new touch IC ICNL9911C
NO_PROP_NEEDED

Change-Id: I4f8bbed3aac151928bdce009bc3b8a787dacc72f
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1794746
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-05 03:28:55 -06:00
Ningkai Zhuang
e77bc813ae NFC driver mmi and DLKM support
1 NFC driver will mmi.nfc to decide if need to probe
2 Add NXP SN1xx driver to DLKM
3 Fix ST driver building error on v(CR)

Change-Id: If7f6b1439c7214c4eaaef4ed1368a89988802c67
Signed-off-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1788053
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-11-04 03:23:27 -06:00
weimh1
b61eb9bbf2 driver/sar-sensor: build error on user build
build error:
    ERROR: "sensors_classdev_unregister" [../../motorola/kernel/modules
    /drivers/misc/sx937x/sx937x_sar.ko] undefined!
    ERROR: "sensors_classdev_register" [../../motorola/kernel/modules
    /drivers/misc/sx937x/sx937x_sar.ko] undefined!

   sar-sensor based on sensors_class.ko,need add dependency to
   make sure sensors_calss build before sarsensor:
   LOCAL_ADDITIONAL_DEPENDENCIES := $(KERNEL_MODULES_OUT)/sensors_class.ko

Change-Id: Id4f7dbf73e67974fc40612327f473cdbdc9bc417
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1793323
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-04 03:12:59 -06:00
weimh1
5fa133d16c driver/sar-sensor: sx937x bring up
PH3 is used as IRQ,so we should not operate bit3
  or it will geneate too much irq.

Change-Id: I74b13cda139cc7ba8eeb87fe0bfab5d5f05debc3
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1791973
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-03 01:24:11 -06:00
litong
440ca970d5 Continue to probe touch even if no matching panel is found
TP:
1.Continue to probe touchscreen driver even if no matching panel is found
  to ensure the basic functions of the touchscreen.
2.There is no member "id" in drm_panel_notifier at present, so set id to 0
  to ensure touch driver can receive notifications from panel.

Change-Id: I2f8c946304be4511bc7ef3422937bfe8ea927a98
Reviewed-on: https://gerrit.mot.com/1745970
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-11-03 01:07:49 -06:00
mahj8
4fd95ed959 DLKM: build error on user build
build error:
ERROR: "power_supply_notifier" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "power_supply_class" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "class_for_each_device" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "kernel_power_off" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "alarm_try_to_cancel" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!

They are defined in boot.img, but they don't defined in google gki.
so we should fix it as below:
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/
msm-$(MODULE_KERNEL_VERSION)/Module.symvers

Change-Id: Iabb4297c3c2a01a2ff57d0e11b61a973eb058184
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1791885
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-03 00:32:36 -06:00
tnlizd
9f2d0a4994 [capsensor] add debug support for cap sensor
Capri: sx9338 sar sensor
load reference phase config from dts

Change-Id: I9aaeb587e87e74a9bb1bedbc31551ffd2c50c8bf
Signed-off-by: tnlizd <tnlizd@motorola.com>
Reviewed-on: https://gerrit.mot.com/1790916
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-02 21:29:17 -06:00
Yan Zhang
93e72f7758 Add 5ms delay for wl2864c ramp-up
TOF VDD uses wl2864c pmic, wl2864c needs more
ramp-up time, therefore add 5ms delay according to
hardware team.

Change-Id: I684a4bd434bc026c78ebc4fd80a1d8a274615c7f
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1790614
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
2020-11-02 01:47:38 -06:00
weimh1
58d20fda48 driver/sar-sensor: build error on user build
build error:
    ERROR: "sensors_classdev_unregister" [../../motorola/kernel/modules/
    drivers/misc/sx937x/sx937x_sar.ko] undefined!
    ERROR: "sensors_classdev_register" [../../motorola/kernel/modules/
    drivers/misc/sx937x/sx937x_sar.ko] undefined!

  These two symbols defined on sensors_class.ko.But it will create gki 
  for user build,so we should fix it as below:
  KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/
  ../../sensors/gki/Module.symvers

  MODPOST = scripts/mod/modpost					\
        $(if $(CONFIG_MODVERSIONS),-m)				\
	$(if $(CONFIG_MODULE_SRCVERSION_ALL),-a)		\
	$(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile)		\
	$(if $(KBUILD_EXTMOD),-I $(modulesymfile))		\
	$(if $(KBUILD_EXTMOD),$(addprefix -e ,$(KBUILD_EXTRA_SYMBOLS)))\
	$(if $(KBUILD_EXTMOD),-o $(modulesymfile))		\
	$(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E)		\
	$(if $(KBUILD_MODPOST_WARN),-w)				\
	$(if $(filter nsdeps,$(MAKECMDGOALS)),-d)

Change-Id: Ib402dcca29637ec77d805200cc768b1b2cd2d961
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1790594
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-01 21:28:34 -06:00
wengjun1
bee54e058c dlkm: bo: Fixed compile error on android R
- Fixed compile error on android R with kernel 5.4.0 when
tap to wake is enabled.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I1cba236475a89834545b2cae699f5cc0640ae192
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1789144
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-01 20:02:53 -06:00
zhangh12
e222b9be7f [capsensor] add debug info for read_rawdata
venor provide a new driver for adding some debug messages
on read_rawdata().
cmd: adb shell "logcat -b kernel | grep SMTC_D"

Change-Id: I0e0ebc09d48b1d34d40d581f9a3cdf43dcd7cf97
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1773854
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
2020-10-29 22:51:47 -05:00
wengjun1
650168f62c Ibiza: Touch ICNL9911C bringup
- Bringup for touch chipone icnl9911c.
- Add support for kernel 5.4.0 with android R.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I3e43dca0766637a0544f9e2c43913d752b359121
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1788257
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-29 20:39:01 -05:00
jixj
69539ee2e0 Revert "(CR): utags.ko: solve the unused remove_proc_subtree symbol definition"
This reverts commit ad7449af9ac7fd5418a6eb0462b74633b2f1dcca.

It is not needed anymore because remove_proc_subtree has been added to
GKI whitelist

Change-Id: Ic1cf38cfe215357b958de509f9bbf6e80116f564
Reviewed-on: https://gerrit.mot.com/1788234
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-10-29 03:09:09 -05:00
jixj
3396f59b2f Revert "(CR): utags.ko: force this module unloadable"
This reverts commit 298e2347dfc445415663afbfc2ff1e8e7053a905.

It is not needed anymore because remove_proc_subtree has been added to
GKI whitelist

Change-Id: Ieee190e012ab338b613c81358298a86443d6944b
Reviewed-on: https://gerrit.mot.com/1788233
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-10-29 03:09:04 -05:00
mahj8
8e755b43cf DLKM: disable update_now and usb_otg property
update_now and usb_otg is private property.
It's not GKI compliant. So disable them temporary.

Change-Id: Ief018cb8ac81b07df84f0db1dc101524a6fdb339
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1785508
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-28 21:49:10 -05:00
mahj8
461ffa0263 DLKM: bring up charging module
bring up charging module base on kernel 5.4
use iio instead of private power supply

Change-Id: I36fc162663179df7ee4f9f57b425ec4374dab64b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1785446
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-28 21:49:04 -05:00
mahj8
cfba3be408 DLKM: submit the charging base code
submit the charging base code
copy from qpnp-smbcharger-mmi.c

Change-Id: I6f49577c6f04b568e106dd41a4aac6c6dd9e9d34
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1785432
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-28 21:48:57 -05:00
jixj
c5ebfbf74d watchdogtest: add qcom_wdt_trigger_bite for trigger wdog
Qcom introduces new watchdog architecture on 4350/8350, so use
"qcom_wdt_trigger_bite" to trigger wdog when enable CONFIG_QCOM_WDT_CORE

Change-Id: Ide2ccb0e5a498454359fd6544e832f109251df5c
Reviewed-on: https://gerrit.mot.com/1782962
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-10-28 20:37:29 -05:00
zhucc2
1db3478963 exfat: workround end_buffer_async_write undefine issue in GKI 5.4
workround end_buffer_async_write undefine issue in GKI 5.4:
ERROR: "end_buffer_async_write" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
and moto code enable "end_buffer_write_sync" as defual.

Change-Id: I4851ca61e661cbe300b394ef4b7a01f8bc87fec5
Reviewed-on: https://gerrit.mot.com/1783223
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-25 20:17:25 -05:00
dengwei1
69d8ad4ae9 guamp: input touch fix esd lock issue
touch ilitek
fix esd lock issue
NO_PROP_NEEDED

Change-Id: Ic18b6839078f8a0efe2ad830f7ef8569ea9b8da6
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1783255
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2020-10-23 03:42:31 -05:00
wuwl10
6f7c8f5bda dlkm: chipone: fix build error on kernel 5.4
$TOP was not defined on Kernel msm-5.4.
Need to update Kbuild to fix the build error.

Change-Id: I6cb80d3e0eff819572b7eb82fad97fc6d3b7a36e
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1779665
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-22 20:55:55 -05:00
weimh1
d2c353851a driver/sar-sensor: add sx937x base driver
1.semtech sx937x support multi channels(6/7/8)
  2.add sx937x to bo common branch

Change-Id: If434ed22b6c92fe3612bda882bee8eb7405fe8f7
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1779278
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-19 22:57:17 -05:00
huangjq9
72bc40a410 hall: stylus bu520xx: Fix wakeup_source event API change
Refer to https://gerrit.mot.com/#/c/1721469/
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: I0ae76f3f942237fc89c943fbd65ed48eefd9b698
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1778411
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-10-19 04:21:27 -05:00
hujing3
2aadc564c3 touch:nt36xxx: add ESD config
Capri: NT36525b touch driver need enable ESD
Add ESD config support
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I964e4260c833655ce19b6c010b86Montana46d0e8246
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1778506
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-10-19 04:20:42 -05:00