Commit graph

3,115 commits

Author SHA1 Message Date
huangzq2
e1eb34b1fa optimize moto swap to not shrink in zram low state
Change-Id: I4d2173960482aced81045cb8c6e226bd96843502
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2775005
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-24 02:41:32 -05:00
zhongfeihong
b4b95d144b kernel/fogo:ilitek_v3_mmi Enable the log flag
fogo:
ilitek_v3_mmi Enable the log flag

Change-Id: I8e422c23c9399fb9dcc070c32176be9e276d4848
Signed-off-by: zhongfeihong <hq131@motorola.com>
Reviewed-on: https://gerrit.mot.com/2774287
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
2023-10-24 01:39:03 -05:00
149
c6cbfa0a08 fogona Usb connection to PC,plug in the phone to charge,the phone restarts
The second supply cc is not compatible with the dual pull-up Huawei line,resulting in rd_PD_Manager is unable to obatin the correct RP level

Change-Id: Ib0c0ebc7ccc89b620d97d41087ec66454adf6a7c
Reviewed-on: https://gerrit.mot.com/2769875
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-18 01:00:05 -05:00
huangzq2
d1ee1e9c95 reset reclaimin kbytes in setting quota
Change-Id: I4cee097b7bb6afa66a68b5cd87b9416f1cd10c43
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2770959
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-18 00:43:33 -05:00
Lei Chen
1904ea8aeb charger:fix sgm4154x ID detected incorrect issue
After qcom rebase qc/Divar.LA.2.1.1-00014-STD.PROD-1,
sgm4154x was always found even if there is no sgm4154x
hardware IC. Need return if read sgm4154x ID failed.

Change-Id: I08c39cb60de00addc32faee1ae945adb0cfc7053
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2768596
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-16 08:54:55 -05:00
zhaoxp3
7b4f1f5bce qpnp_power_on_mmi: support with 5.15
work with kernel 5.15 version

Change-Id: Iebe3ae748388b645e96923a9fce50b9821a9dc4f
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2766500
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-10-16 01:47:39 -05:00
Lei Chen
58cf1ea84a charger:register battery cooling device for thermal
Due to GKI upgrade, commit "qc/Divar.LA.2.1.1-00014-STD.PROD-1,
power: supply: remove faulty cooling logic,kemnade.info", it remove
the cooling device register function.
We should register the battery cooling device in the discrete driver.
This will ensure the thermal-engine can get the battery cooling device
id successfully.

Change-Id: I9f47afc6c1f49733d3066c4b5c0cbd85a2b810bc
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2766397
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-10-13 05:11:48 -05:00
lixuehan
3d7ebdbd71 kernel/fogo:Optimize the flow of stowed mode in resume by ddi
fogo:
Optimize the flow of stowed mode in resume by ddi

Change-Id: Ic2f17437b02d85ef36e6b3838a8dba9f4579a063
Signed-off-by: lixuehan <hq126@motorola.com>
Reviewed-on: https://gerrit.mot.com/2764171
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
2023-10-11 03:14:28 -05:00
wangyq13
7487159136 input/goodix_berlin: add pen detect to enter pen mode
goodix_berlin:
Add pen detect listener, touch enter pen mode when pen insert,
exit pen mode when pen pull out.

Change-Id: I0ada0b8e17f6f784402b4c5c2a1f0cfc4dd65f77
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2762651
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-10-11 01:22:11 -05:00
Wenge Zhu
4b9f41e6b5 Fix CHIPSEA driver source code license conflict
Confirmed with vendor, these codes could be published under the terms
of the GNU General Public License,so remove vendor's private and
confidential declarations.

Change-Id: I49f6ba6ffc7fdde3914f3b4d277a0879354cb654
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2762975
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuting Chen <chenyt17@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-10-10 21:00:46 -05:00
chenlj2
3aa813b435 DLKM/HALL:add passive pen function
add new input handle &handler to support
Passive pen
modify input report function to support
Passive pen
add passive pen process

Change-Id: I18e489ab90a977492cd4936442b128ef1271d2a0
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2763070
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-10-10 06:19:16 -05:00
qianlong
3a8b855a4a mmi_info: Fix build error on 8650
../../motorola/kernel/modules/drivers/mmi_info/mmi_boot_info.c:288:41:
error: call to undeclared function 'PDE_DATA';
        return single_open(file, get_bootinfo, PDE_DATA(inode));

Change-Id: I96bbb35dd9fea5bbb75b317ea890544028fa438b
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2762824
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
2023-10-10 04:01:48 -05:00
qianlong
668b7a9660 utag: Fix utag build error on 8650
For kernel 6.1.0
1 bio_alloc modify
2 PDE_DATA do not export

../../motorola/kernel/modules/drivers/misc/utag/utags.c:179:34:
error: too few arguments to function call, expected 4, have 2
                bio = bio_alloc(GFP_KERNEL, num);
                      ~~~~~~~~~                ^
kernel_platform/msm-kernel/include/linux/bio.h:420:27:
note: 'bio_alloc' declared here
static inline struct bio *bio_alloc(struct block_device *bdev,
                          ^
../../motorola/kernel/modules/drivers/misc/utag/utags.c:1404:27:
error: call to undeclared function 'PDE_DATA';
        struct proc_node *proc = PDE_DATA(inode);

Change-Id: I4e8879eb4a495029d4759905e0c3dc44eca5b025
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2761422
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-10-10 02:25:10 -05:00
wangyq13
7ded175358 hall_pen: add work queue for irq function
hall_pen:
Add work queue for irq, fix interrupt thread preempt issue.

Change-Id: I91d79adf52194cfae87ab1ff95e6aa224468c2d6
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2762532
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-10-10 01:29:04 -05:00
William Liu
9f76a173fc Increase vibration duration for CQA
CQA app tests vibration with short duration
Change to long duration

Change-Id: I893867bb315ba1157291c298de027acdc903593f
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2762451
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-10 00:27:53 -05:00
huangzq2
154a44f565 porting moto_swap to kernel 5.15
Change-Id: I62f299f77298fc2dfea2b4e8f9e70ee899770120
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2760974
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-09 04:56:29 -05:00
huangzq2
a51c305cb6 Skip apps with reclaimable anon < 1M
Change-Id: I626a7eef25a4051c5d5e2a5dad59c28240f1b95b
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2760314
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-09 04:56:27 -05:00
litong20
ab66978fb8 Add slave switchedcap info
qti_glink:
Add slave switchedcap dump info.

Change-Id: I2f92893bb02eee0c3d40daa25014f113ddc42ed9
Reviewed-on: https://gerrit.mot.com/2751992
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-10-09 04:24:20 -05:00
Lei Chen
a1ff1a2a9c charger: optimize the turbo power show for dcp
For default DCP charger type, it should show the normal charge rate.
Optimize the charge rate for default DCP.

Change-Id: I36aabc784e77dd44d88d65840d6f0ff67b3c33bc
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2760894
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-08 04:46:08 -05:00
dengwei1
64f05f30e7 fogona: input touch add pm wait for gesture
add pm wait
for gesture

Change-Id: I1133df327939e467bfba8d27692fd51518ebcf17
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2760649
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-10-07 22:10:06 -05:00
Jun Weng
d87f1944e8 fogos: dlkm: Skip load chipone touch modules when charger
- When bootmode is charger, skip insmod touch drivers because in this case
touch is not necessary and there is a conflict between firmware upgrade and
stopping device.

Change-Id: I8afc846361df5868d99d3b8f7a80f20c2da85db6
Signed-off-by: Jun Weng <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2755532
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-10-07 01:36:05 -05:00
Xiaofeng Wang
0a6a5398e1 arc: add wl2868c
details:
add wl2868c for camera bringup

Change-Id: I812f3a21e8bd3a47b325020974004d79c94d0033
Signed-off-by: Xiaofeng Wang <wangxf32@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2751623
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: <wangzl37@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-09-28 03:02:19 -05:00
xizx
a870060ae1 AndroidKernelModule.mk: bringup 8650 pineapple platform
build error:
In file included from motorola/kernel/modules/drivers/backlight/aw99703/Android.mk:14:
motorola/kernel/modules/AndroidKernelModule.mk:110: error: device/qcom/kernelscripts/kernel_definitions.mk: No such file or directory
13:59:12 ckati failed with: exit status 1

Change-Id: I589e476144c60a5c555f737b7143c4f5e9012f64
Reviewed-on: https://gerrit.mot.com/2753930
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Tao Sun <suntao2@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-09-28 01:53:11 -05:00
Haijian Ma
85c3ac5876 charge: fixed DCP FFC feature can't entry sometime
1. DCP FFC feature can't entry sometime because ffc_state set invalid
when charger inserted.
2. When battery re-charging, it also select FFC. It will effect battery
aging.

Change-Id: I27cd6f9838c65869a896cb4927efd30915a09321
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2750777
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-27 20:17:45 -05:00
huangzq2
add7f46e35 introduce moto mm and moto swap driver for RAM boost 2.0
Change-Id: I9c3f82c29337d2Montana56ba5ec5f3fd8c0ffbcebee
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2745763
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-26 03:31:48 -05:00
zhangshaohu
35935f6e8a fogos: tp: resolve 1st icnl9916c CQA-test occasion fail
1. update cts_test.c
2. resolve CQA-test occasion fail.

Change-Id: I6fbe3e97c6372cc4ee3a866cc87a566dd3a6351b
Signed-off-by: zhangshaohu <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2750225
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
2023-09-25 02:39:48 -05:00
William Liu
85f227ae36 aw862x_haptic_nv_v1:Rename the aw_vibrator to vibrator
Awinic default driver exported aw_vibrator name to user space
Rename it to vibrator to compatible with existing user space apps
Remove the trigger interface to avoid Android problems

Change-Id: Icbf0bf6c90f467898643394c880b01d61f8e8052
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2750040
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-24 21:23:56 -05:00
Guocheng Wang
521d0a8ec9 charge: Fix some charger can't boost VBUS
The charging power is too low after repeatedly inserting and removing
the moto 33W charger.
Because the charger can't boost VBUS by DP(D+) pulses when the DM(D-) 0V
time is too short.
So add a 100ms delay before we want send the DP pulse.

Change-Id: I36ba617b01a1115e9d7bca78773c715d5f73dcc3
Signed-off-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2747942
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2023-09-22 05:46:00 -05:00
149
496cb2c408 charge rt9426a add ffc mode
rt9426a set FC_VTH and FC_ITH
add ffc mode set FC_VTH and FC_ITH in kernel

Change-Id: I0822f8b8ba459cb1b61148024205116bd2755fa6
Reviewed-on: https://gerrit.mot.com/2748210
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-22 05:23:36 -05:00
William Liu
42c96a8ee5 Initial t(CR) driver bringup
Integrate the t(CR) driver from awinic
to support the new vibrator features

Change-Id: If32088e4b63c149e39555de8cde85de9acc5d137
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2723567
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2748055
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-09-21 09:53:51 -05:00
litong20
447fb2f212 Add switchap dump dev information
qti_glink:
Add switchap dump dev information

Change-Id: I51644203e47ecbfd56894a23bed90a92636864f8
Reviewed-on: https://gerrit.mot.com/2746055
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-09-20 05:13:37 -05:00
zhongfeihong
b1ae33e030 kernel/tp:fogo:Optimized stowed mode switching under gesture on
fogo:
Optimized stowed mode switching under gesture on

Change-Id: I65f33d078b5fe68b3307e3ce4aca2eae39f97823
Signed-off-by: zhongfeihong <hq131@motorola.com>
Reviewed-on: https://gerrit.mot.com/2745636
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
2023-09-20 03:23:02 -05:00
Lei Chen
df71531203 charger:fix the CDP icl is only 500mA
The charging current is only 500mA for CDP type. After Kernel-5.15,
the GKI usb core vote the icl to 500mA when plugin CDP interface.
Log snapshot,"msm-usb-hsphy 1613000.hsphy: Avail curr from USB = 500"
Doesn't allow vote the icl for CDP type.

Change-Id: Ice10937675d002ad3bc1a3632273efe9c1ec0e10
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2741339
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-19 22:08:26 -05:00
zhu chuanchun
60ad88861d mmi_info: support CXMT Ram info
CXMT mr5 is 0x13, which is CMTS special vendor ID.
we add it in mmi_info to display right vendor name.

Change-Id: Ia1cead1ea4ea178936116a941d374c034b8538d5
Reviewed-on: https://gerrit.mot.com/2743034
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Xiaofeng Wang <wangxf14@motorola.com>
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-19 20:40:28 -05:00
dengwei1
ce64f74a1b fogona: input touch stop esd check when suspend
and more flag
to make sure stop esd check

Change-Id: Ie3b26556eb100aa7404828e30ff3db9e0c7773c5
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2743511
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-18 20:58:06 -05:00
Wenge Zhu
a07db02840 dlkm: Support stowed detection when gesture mode for goodix
Support for touch stowed detection when gesture mode.
Under gesture mode, when entering Stowed, touch will enter deep
standby mode, and detection will resume when unstowed.

Change-Id: I3574cfe5ec895b8846aa329c5a12ca83e16f98e9
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2742918
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-09-18 04:15:31 -05:00
Yuchang Guo
8a75301d55 sx937x: add reg read write interface for tcmd
sx937x:
Add reg read write interface for tcmd.

Change-Id: I3e611e649027fa80aec48c04acec5718623441e5
Reviewed-on: https://gerrit.mot.com/2731562
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
(cherry picked from commit b4edab29f1e286d96216840e6593bb53f2232fc4)
Reviewed-on: https://gerrit.mot.com/2741058
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
2023-09-18 03:23:00 -05:00
xuwt2
76d7dd86ce qti_glink_charger: Add msb_dev_info dump
msb:
moto switcher buck charge
qti_msb_dev_info:
dump msb dev information

Change-Id: Icd8ba9666a19cae24f77269252d8a6644e0a7578
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2740053
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-09-18 01:26:11 -05:00
Zhibang Li
e89bd60d41 Hall sensor add passive pen code
Modify hall_pen.c file to add pen detection code
Modify Android.mk and Kbuild to add definition

Change-Id: Ica36be5f69eeb5205bc9d7573a6801602d4db7a0
Signed-off-by: Zhibang Li <lizb15@motorola.com>
Reviewed-on: https://gerrit.mot.com/2733379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-17 22:31:35 -05:00
Lei Chen
1c6c1799d5 charger:Add ffc enabled state check function
Add ffc enabled state check function to support specific ffc
policy controlling in low level charger driver

Change-Id: Ic208e452a843d9838f23f221c051cc3074365c05
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2733182
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-17 20:51:45 -05:00
Lei Chen
2fb7e17663 charger: add dcp ffc check function
Per hardware requirement, add dcp ffc check function
for 10w and 15w charger. It will benefit the charging time.

Change-Id: I7795a7d39e24ab7d5c6d8bb398f8b6292eafed9c
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2741102
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-09-17 20:51:35 -05:00
dengwei1
077da0aaf9 eqe: input touch init
goodix driver
init

Change-Id: Iab188e4aaad35f05ccdbeb0d9b5aa79f90ded83e
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2727801
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yue Sun <sunyue5@lenovo.com>
(cherry picked from commit 0b98ff219ded6ffc4fd19e5a673452bd0336860f)
Reviewed-on: https://gerrit.mot.com/2742397
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-09-15 19:47:08 -05:00
Wenge Zhu
c0f11fb588 Fix goodix touch driver build error
Fix goodix touch driver build error due to
compiler optimization level:
goodix_ts_log_capture.c:36:6: error: variable 'ret' set but not used

Change-Id: Iaec12d4ee42285ce04ca5a3685399855752ed36a
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2739578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-09-15 04:16:14 -05:00
Yuchang Guo
03c20eb252 awinic: setup build on kernel 5.15
awinic:
Setup build on kernel 5.15.

Change-Id: Ic093cc58324986b326294564dc1302a4181e373c
Reviewed-on: https://gerrit.mot.com/2730469
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
(cherry picked from commit 54ba4eb801f1d938b07e4982dddc60c03c6e9433)
Reviewed-on: https://gerrit.mot.com/2741051
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
2023-09-15 03:22:21 -05:00
Yuchang Guo
612e0d2f93 sx937x:fix build error
sx937x:
Fix build error.

Change-Id: Iaaeb4b66586c5c2598cba66a740df0cf53665646
Reviewed-on: https://gerrit.mot.com/2730178
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yue Sun <sunyue5@lenovo.com>
(cherry picked from commit 6f61352912e19ac3305c82b6e881a696faebb4a5)
Reviewed-on: https://gerrit.mot.com/2741046
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
2023-09-15 03:21:34 -05:00
weichunli
c1a19cbaa9 fogos: add 1st icnl9916c tp stowed mode at suspend
1. add tp stowed mode at suspend state.
2. turn on stowed mode, echo "0x01">stowed.
3. turn off stowed mode, echo "0x00">stowed.

Change-Id: I337b58e87a7d45abca6def5360f4c3c30afe6bdc
Signed-off-by: weichunli <ontim55@motorola.com>
Reviewed-on: https://gerrit.mot.com/2731969
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-09-15 02:53:22 -05:00
Renata Raffaine Villegas
d3184e8b05 [milanf] add i2c retry on sx937x
Add retry on i2c read and write to avoid fails on
sx937x probe.

Change-Id: I4d8a2479ae834cf2bf6e3cbea2e52388e4cf3fcf
Reviewed-on: https://gerrit.mot.com/2736769
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Joao Pedro Oneti Carvalho <oneti@motorola.com>
Reviewed-by: Daniel Finimundi <danielrf@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 51a64eaf5a8fc5125cc3ffc5b2462b3723c25d2f)
Signed-off-by: Minghui Wei <weimh1@motorola.com>
Signed-off-by: Daniel Finimundi <danielrf@motorola.com>
Signed-off-by: Renata Villegas <rvrenata@motorola.com>
Reviewed-on: https://gerrit.mot.com/2739484
2023-09-14 22:03:04 -05:00
Haijian Ma
d807998f44 charge: add DCP FFC feature
As HW require, add DCP FFC feature.
1. config mmi,enable-dcp-ffc to enable this feature.
2. don't effect original 30W ffc logic.

Change-Id: Iabd4064d2ea8e46cf5b77c75e3b57dabf8c697c4
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2738339
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-14 05:23:45 -05:00
lixuehan
5b4b2e708c drivers/TP: 2ed nt36528 support high resolution 4x v2 fix
Fogo 5G NA 2ed Touch.
support high resolution 4x.

Change-Id: I3a0b8490fb13fef9fc3c1972442a18ebd633e3b2
Signed-off-by: lixuehan <hq126@motorola.com>
Reviewed-on: https://gerrit.mot.com/2737280
Reviewed-by: Jun Weng <wengjun1@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-12 07:46:31 -05:00
weiweij
0fd5d8d4ec mmi_thermal_zone: fix compile error
For some verion of linux kernel, kzmalloc could not be used,
so we should use a common interface, as dev_zalloc.
Or it will meet compile errors on other linux kernel version.

Change-Id: I2c248b701ace03bc249db036a38739672eb29652
Reviewed-on: https://gerrit.mot.com/2737220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-09-12 04:40:01 -05:00