Commit graph

1,715 commits

Author SHA1 Message Date
yanyh2
6bdd0e5bb6 send charge rate uevent when power supply changes
Send charge rate uevent if power supply changes in case the
charge rate change uevent is missing by BatteryServices before
it starts up.

Change-Id: I4343454c54e30df1cbbc512d473b9061b10cbd84
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1964225
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-31 00:53:50 -05:00
xuwei9
784d268d31 bq25980:update charge VOUT parameter
Update Vout parameter to
chip default value

Change-Id: Id12a731f90debc141359aa4e3864b5e89b5bf3f1
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1964651
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-30 21:34:36 -05:00
Ryan Lattrel
55e2add665 bq27426: Fix kbuild to use ANDROID_BUILD_TOP
Use ANDROID_BUILD_TOP instead of TOP. TOP does not appear
to work anymore.

Change-Id: I9ca1f85ced505488c205078febf6d954aa7e9bc3
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1928666
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-28 14:54:15 -05:00
xizx
f198b62bae mmi_info: support build in kernel-5.10
build error:
     CC [M]  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_info/mmi_info_main.o
   /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_info/mmi_unit_info.c:185:15: error: incompatible pointer types passing 'const struct file_operations *' to paramet
                   0444, NULL, &unitinfo_operations);

Change-Id: I0dc40ac30cf8b37161d55ffc0a993f6c51979e98
Reviewed-on: https://gerrit.mot.com/1949925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:11 -05:00
xizx
f9b4963d4d mmi_annotate: support build in kernel-5.10
build error:
make[2]: Entering directory '/home/xizx/work/moto/8450/pine_20210507_08_userdebug/out/msm-waipio-waipio-gki/common'
  CC [M]  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.o
/home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.c:229:15: error: incompatible pointer types passing 'const struct file_operations *' to parameter of type 'const struct proc_ops *' [-Werror,-Wincompatible-pointer-types]
                0444, NULL, &mmi_annotate_operations);
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/include/linux/proc_fs.h:109:122: note: passing argument to parameter 'proc_ops' here
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
                                                                                                                         ^
1 error generated.

Change-Id: I6bc25e9e74cae7582862b83b29796538271e9406
Reviewed-on: https://gerrit.mot.com/1949924
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:06 -05:00
xizx
3bc16eaf4a utags: support build in kernel-5.10
fix build error:
  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/include/linux/fs.h:699:10: note: forward declaration of 'struct block_device'
                  struct block_device     *i_bdev;
                         ^
  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/../la/motorola/kernel/modules/drivers/misc/utag/utags_x.c:606:16: error: incompatible pointer types passing 'const struct f
                          dnode->dir, fops, node);
                                                                        ^
  6 errors generated.
  make[3]: *** [/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/scripts/Makefile.build:277: ../la/motorola/kernel/modules/drivers/misc/utag/utags_x.o] Error 1
  make[2]: *** [/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/Makefile:1898: ../la/motorola/kernel/modules/drivers/misc/utag] Error 2
  make[2]: Leaving directory '/home/xizx/work/moto/8450/pine_20210507_08_userdebug/out/msm-waipio-waipio-gki/common'

Change-Id: I5f0beae3b2bb9892ee38213f7cbf51b8d2d2561c
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1949923
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:00 -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
litong20
60840057ae Enable PANEL_NOTIFICATIONS for berlna touchscreen
When using drm panel notifications, there is a problem with
the display and touch loading sequence, which may cause TP to fail to 
find the active panel and thus fail to receive the display notification
So use panel notificaitons to avoid the issue.

Change-Id: I7269436bd8117db74467050d4cb839353efdf1a0
Reviewed-on: https://gerrit.mot.com/1962331
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-27 05:57:30 -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
9061c0b31d Add NVT_SET_TOUCH_STATE to avoid compilation errors
TP:
The touch_set_state function will only be used when the
NVT_SET_TOUCH_STATE configuration is enabled. So add the
configuration to avoid compilation errors.

Change-Id: I832362899339c3465f475c13bb654a73216d8e9c
Reviewed-on: https://gerrit.mot.com/1960799
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:29:25 -05:00
litong20
8899397ed7 Deleate fts_system_reset in wait_for_ready
TP:
There may be a problem of function recursive calling.

[ 72.152265] Kernel panic - not syncing: kernel stack overflow
[ 72.152270] CPU: 2 PID: 515 Comm: modprobe Tainted: G S O 5.4.61-moto-00155-gb5a835fac66e #1
[ 72.152273] Hardware name: Berlin (DT)
[ 72.152277] Call trace:
[ 72.152283] dump_backtrace.cfi_jt+0x0/0x4
[ 72.152289] show_stack+0x18/0x24
[ 72.152296] dump_stack+0xb8/0x114
[ 72.152302] panic+0x188/0x3f0
[ 72.152306] nmi_panic+0x98/0xb8
[ 72.152311] handle_bad_stack+0x11c/0x130
[ 72.152317] __bad_stack+0xc8/0xcc
[ 72.152322] update_group_capacity+0x4/0x290
[ 72.152326] find_busiest_group+0xe0/0x834
[ 72.152331] load_balance+0x2b0/0xe7c
[ 72.152336] newidle_balance+0x2f4/0x5d4
[ 72.152341] pick_next_task_fair+0x40/0x664
[ 72.152347] __schedule+0x290/0x8ac
[ 72.152351] schedule+0x8c/0xc0
[ 72.152356] schedule_timeout+0x90/0x120
[ 72.152361] wait_for_common+0xd0/0x16c
[ 72.152366] wait_for_completion_timeout+0x14/0x20
[ 72.152372] geni_i2c_xfer+0x3d8/0x12fc
[ 72.152379] __i2c_transfer+0x2a4/0x8d8
[ 72.152383] i2c_transfer+0xd4/0x1a4
[ 72.152412] fts_writeReadU8UX+0x1ac/0x290 [stmicro_mmi]
[ 72.152433] pollForEvent+0xc0/0x378 [stmicro_mmi]
[ 72.152454] fts_system_reset+0x104/0x268 [stmicro_mmi]
[ 72.152475] fts_system_reset+0x11c/0x268 [stmicro_mmi]

Change-Id: I0f09ef7edd856b21afe71866fc260208184807c0
Reviewed-on: https://gerrit.mot.com/1960709
Reviewed-by: Jichao Zou <zoujc@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-05-26 04:34:35 -05:00
yanyh2
5015d763e9 Add 30W turbo charger type
Add 30W turbo charger type support to identify
the charger type with power more than 25W.

Change-Id: I4365fa695b859c8d6916336fc34c832ca1c1aa82
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1960683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-26 03:39:01 -05:00
zoujc
6ddaa92a82 touch mmi:declare dependency.
touch mmi driver depend the display driver,
in gki build, display is a module, so declare
the dependency.

Change-Id: Ie18e87fb06a16f467de8cefa9fd28af7bb8c47a1
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1958702
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-24 20:48:54 -05:00
wangyq13
0213be45da dlkm: leds_aw99703: free gpio if init failed
dlkm/leds_aw99703:
Free gpio if init failed, otherwise other modules can't request
this gpio again.

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

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

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

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

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

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

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

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

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

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

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

Includes some code cleanup as well

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: I89bb24f3aa6b28669bf548f67ac51a804ed8b5c9
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1944027
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2021-05-10 04:34:04 -05:00
litong20
829e751780 Do not set scan mode when setting charge mode
1. There is no need to set scan mode when setting the charge_mode.
2. Setting the scan mode will refresh the baseline and possibly
calibrate the fingers to th baseline.

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

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

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

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

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

Change-Id: I32df3ad88c1917ed33f6264c3afe672693339bdb
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1942571
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-07 14:22:36 -05:00