Commit graph

2,900 commits

Author SHA1 Message Date
litong20
7b5ea4f9cf check the charger status again when devices shutdown.
When the device shutdown due to unplugging the charger in factory mode,
we need to check the status of the charger again.

Change-Id: I43160b0802a700be88542427bad8a75fcd4a4e13
Reviewed-on: https://gerrit.mot.com/2512562
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
2023-02-17 02:57:00 -06:00
cuijy1
6e1740fd14 sx937x: add flip near & far reg list
when flip state change, modify reg list which read from dts

Change-Id: I739c6fb5b1a531886b6fce527451633cb74af912
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2514472
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-02-17 00:38:41 -06:00
Wenge Zhu
db2f632be3 Optimize CLI FocalTech touch resume flow
Optimize CLI FocalTech touch resume flow,
decrease display on time.

Change-Id: Ibcfdb87f17d3b6db4c566b973bb438c628a4d74a
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2514553
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-02-16 23:52:06 -06:00
Wenge Zhu
15e45e6dfd Optimize touch resume flow
Power on sequence spend much time and
blocking display on.

Change-Id: Ib131c07dc85227ca761a22a510787202c08b77a7
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2511335
Reviewed-by: Jianqi Yang <yangj@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-02-16 03:01:42 -06:00
miaoyi
4036a3c99b Edit config and kbuild to support lyncko
Add identification of lyncko's product name,
and modify config file.

Change-Id: Ic3cf2ad22a7f452afed9688b0266bd5ff2ddd550
Signed-off-by: miaoyi <miaoyi2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2513293
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-02-16 00:29:26 -06:00
wangdp11
6f341dd3dc lynkco: Solve the compile error on user version
details:
Google don't support input_get_new_minor api, so modify to
alloc_chrdev_region.

Change-Id: I3dbc7ce102a32429cb336f17ecb88c5f6a1a0c51
Signed-off-by: wangdp11 <wangdp11@motorola.com>
Reviewed-on: https://gerrit.mot.com/2510100
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-02-13 19:46:20 -06:00
Yonghua Yan
a90e5819ea use discharging interval for FULL battery status
Keep the same delay work interval as discharging status for
FULL battery status to reduce battery status updating and log
printing for power save.

Change-Id: Iedca4ad8706dbeee9d7de9258e21c3e0ed4f3234
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2508996
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-02-10 20:54:13 -06:00
Yonghua Yan
e6405e163e Optimize the battery data updating to save power
1. Align the battery data time to 8s
2. Update each battery property separately
3. Don't cycle repeat battery data update

Change-Id: I443e6106e664ed20d4930cb3a34cd382f60446b3
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2508399
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-02-10 18:55:17 -06:00
Wenge Zhu
9e9a8d0beb Add timestamp node for CLI FTS touch
Add timestamp node for CLI FTS touch,back tap function will read out
last touch event time to support back tap.

Change-Id: I084e6df4cfdb744ccca941de3f238f0fb4300d3f
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2504214
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-02-07 03:19:48 -06:00
wangdp11
7dce7615b7 lynkco: Add TOF kernel driver
1.Modify the Kbuild and Makefile to solve compile error
2.Add VL53L3 kernel driver

Change-Id: Id1170fef31016c1657c98bb49452afd40892cf71
Signed-off-by: wangdp11 <wangdp11@motorola.com>
Reviewed-on: https://gerrit.mot.com/2495537
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-02-06 06:26:53 -06:00
Konstantin Makariev
cc24dca5a6 drv8424_mmi: motor fault handling
Run sensor data analysis within store callback to remove detection
thread.

Updated motor fault handling. Reset procedure initiated in case of
motor failure followed by restart of the previously set transition

Change-Id: I42349c91d41e6eb50d9ec0567ecfedfbd1d21e72
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2501142
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-02-03 13:24:54 -06:00
Bruno Oliveira
b3c1b374b9 for hiphi, skip charger confirmation
WHAT: skip charger confirmation for hiphi
WHY: this feature was never supported before the upgrade. After the upgrade
         moto qti_glink driver was modified to implement charger confirmation.
         If device has the flag SKIP_QTI_CHARGER_CONFIRMAION, use the old
         implementation

Change-Id: I041c615506d9df4ced0f4add6ca05967e5d94be7
Reviewed-on: https://gerrit.mot.com/2497685
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Douglas do Vale <dtvale@motorola.com>
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-02-03 04:40:25 -06:00
qiurp1
79cc991419 zeekr:modify capsensor driver
add lable to distinguish whether to calibration
when flpi state change

Change-Id: I00d386ee6c5dd70ba22b1fba3e22fb6cd5704b79
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2498055
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-01-31 03:30:07 -06:00
Xiaojun Lv
3af870153b input: fix the disappearance of ili7807s stylus handwriting
Fingers touch the screen when stylus writing, resulting in the disappearance of handwriting.
In DDA mode, app reads the absolute value of pressure. Modify the reporting of pressure value to fix the problem.

Change-Id: I4b4c6d45f5099a5b895fb49dc1ac70f8950b7152
Reviewed-on: https://gerrit.mot.com/2497928
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-01-31 01:02:20 -06:00
Wenge Zhu
8b7134c9ff Change CLI touch input device name
TP:
Change CLI touch input device name to zinitix_mt.

Change-Id: Idf6f0ff9e44d9eff7213b3f6aa3446093ca02304
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2497251
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-01-30 03:57:50 -06:00
Yonghua Yan
fd3c66b1b0 Initialize the delay work before IRQ init
Initialize the delay work before IRQ init in case the irq
occurs to schedule the delay work before it initialized
and cause Kernel panic.

Change-Id: I9497e4ca66193d9f9170b666dd15a9fed9fd890b
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2497207
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-01-30 03:29:49 -06:00
liujian
d44cfbed7c Revert "(CR) Pnangn:Enable FPS overheat protection"
This reverts commit a0504b143342e95d8c5ea5965b2cb16af935f618.
Vendor report there is issue in v0.1.9

Change-Id: I52feeac8f483412f1a4dde012a7ff2c444be442e
Reviewed-on: https://gerrit.mot.com/2490868
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
2023-01-18 21:09:45 -06:00
Lei Chen
3f876117c5 usb_therm:optimize the usb cooler function
Charging enable in hot usb temp when thermal policy switch.
Optimize the usb cooler function.

Change-Id: I15779e756e3aa362b08377690820236d20ff2406
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2489283
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-01-16 20:59:27 -06:00
liujian24
632bd4f7f5 Pnangn:Enable FPS overheat protection
Enable Egistec feature
Support overheat protection

Change-Id: Ice0e80ff55d3141f489996acb2c3b1504c4f165f
Reviewed-on: https://gerrit.mot.com/2488250
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
2023-01-16 00:30:16 -06:00
Wenge Zhu
3a69eb0e1a Support factory test for zinitix touch IC
TP:
Support factory test for zinitix touch IC.

Change-Id: Ia62c6c158c8ea709a5c91af41172036b4ff0d5db
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2480865
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-01-15 02:29:08 -06:00
Lei Chen
e5f26584b6 usb_therm: SDP/CDP should't toggle mosfet
optzimize the usb protection code. SDP and CDP shouldn't toggle
the mosfet.For SDP/CDP type, only suspend and disable the charger.

Change-Id: I1e1acd68cb059ac4086e60ce80c4b3b9ad9f8acf
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2487019
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-01-13 01:44:57 -06:00
Konstantin Makariev
4791c8f304 fixup! (CR) drv8424_mmi: update motor sequences
Update SLOWMO sequence. Set threshold to 3.5 degrees at power up

Mot-CRs-Fixed: (CR)

Change-Id: I2ea47aa214bc1ac8f28b649348c0800b3275602e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2484723
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-01-12 14:33:23 -06:00
Sridhar Vashist
a55a5b62a9 drv8424_mmi: update motor sequences
This change is a combination of motor sequences updates for both
2.3 and 2.8 pitches devices

Change-Id: I07c30b51182eeb3fd85fa7c57bf94bd8b70e1af4
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2479642
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-01-11 10:54:03 -06:00
Konstantin Makariev
9e267639fe drv8424_mmi: optimize stop motor startegy
Optimized strategy allows for quicker motor stop to avoid overshoots
and provide more accurate position tracking

Change-Id: Icfe26831e13c0ec1d17b32602e95d3f4e937d6a2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2465699
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-01-11 10:53:57 -06:00
Yonghua Yan
d93f2d210f align battery current and charger power update rate
Align battery current reading request of power supply
property reading to avoid too frequent mmi charger
status updating and uevent change to user space on dual batteries
support products..

Update charger power only when power change more than 1W.

Change-Id: I154ad951d79db36ed06eaaeca32785b8a68051a3
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2482188
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-01-11 06:42:51 -06:00
xuwt2
0edc1aa411 sc760x: sleep 2s after pull up sc760x_en
sc760x:
pull up sc760x_en to active chips.
sleep 2s to wait chip ready

Change-Id: Ic50e4c12196e6d749d64182a84ca0081e2892d7a
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2480695
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-01-09 03:20:11 -06:00
qiurp1
48099b4113 hiphi:moto stylus service show up in battery statistics
the pen power value too large cause moto stylus service
show up in battery statistics

Change-Id: I39e9fc578924b263ac0c8dc28139f2b0b711a567
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2476188
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-01-09 02:31:01 -06:00
xuwt2
4be9a6359f SC760x: Bringup sc760x charger balance
SC760x is an integrated battery management IC for
multiple battery packs in parallel applications.
1, support external USB power supply charger input detection.
2, support battery fuel gauge power supply to query battery status.
3, register the charger to mmi charger driver architecture.

Change-Id: Ic31d8d97c093de55b34019bb92b702d73f176300
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2479376
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-01-08 03:17:42 -06:00
Wenge Zhu
7214ac2f68 Add mmi touch class support for zinitix
TP:
Add mmi touch class support for zinitix touch IC.

Change-Id: I76651b6318f1948f6fcd4b400ad27bdee9757a5d
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2475180
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-01-07 04:39:31 -06:00
chailu1
f5e6c6a436 charge: add tmo sku max charge temp for no temp zones products
ADSP products not define battery temp zones at AP generally.
so add maxmax_chrg_temp controller,this is useful for TMO
SKU.

Change-Id: I27c81668fd6bcb1dc3bea9084535f7c225010766
Reviewed-on: https://gerrit.mot.com/2475569
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-01-04 02:26:48 -06:00
Wenge Zhu
abdc1edd49 Change the way of loading touch firmware
Use request_firmware interface to load touch firmware from file system
on mannul touch FW upgrade.

Change-Id: I416f686c5222df4ec1755ef4a8e90c80748d2beb
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2463631
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-01-03 05:40:09 -06:00
Wenge Zhu
6d612f6d5d Add a sysfs node to control TUD
Add a sysfs node to control if support touch under water detection in
case affecting power consumption test.
echo 2 > /sys/class/touchscreen/primary/liquid_detection_ctl //not support
echo 3 > /sys/class/touchscreen/primary/liquid_detection_ctl //support

Change-Id: Iab8173ccae34749b0ac749461953df086e9fd0f9
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2473282
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ping Xiao <xiaoping@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-12-29 01:57:53 -06:00
Wenge Zhu
7438af0320 Add power control for zinitix touch
1.Support GPIO enable pin and power supply name to control power
2.Change pinctrl state name to diff with main touch.

Change-Id: I2bcfbd1a40876a5b8f61949fc25be682017e93df
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2460988
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-12-28 03:33:27 -06:00
xizx
1f6f69f056 watchdogtest: set error printk level for critical warning log
1. change the error level for the warning log so that kernel_log.txt in ramdump
can see theese test log.
2. add the mmi keyword for the special warning info log.

Change-Id: I6fd169d0c6320e31764f7995b8a7410be3b8d3be
Reviewed-on: https://gerrit.mot.com/2469988
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-12-26 19:24:44 -06:00
kalathik
d6257bb7ac sr100: Add NULL pointer checks
D35 handles NULL check on device release scenarios
to avoid leak...

Propagate_From (CR)

Change-Id: I3a0ba408dafdcf6d34692b45612055f107c6be44
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-on: https://gerrit.mot.com/2468580
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-12-23 00:37:38 -06:00
kalathik
ab156b6336 sr100: Confirm the read timeout only for read operations
The read timeout calculation is added in common transaction
where its not required for write operation, So on V35 it moved
to read specific areas...

Propagate_From (CR)

Change-Id: I295d41b15ef7830f4967ee99bc86081c0a1923e8
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-on: https://gerrit.mot.com/2468573
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-12-23 00:37:25 -06:00
kalathik
b877d2ba97 sr100: Increase the packet size to 4200
D35 increases the packet size to 4200 seems header data
size added along with 4096.

Propagate_From (CR)

Change-Id: Ia099cce9154dfd92662b79f823e3d91131ef4cca
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-on: https://gerrit.mot.com/2468572
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-12-23 00:37:12 -06:00
kalathik
acefd93782 sr100: Decide the normal read or ext
UCI_MT_MASK is add in D35 to read the normal mode data or extended
mode data calculation.

Propagate_From (CR)

Change-Id: Ica2701d26cc780d46587bfd08b0265626c6ff2cf
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-on: https://gerrit.mot.com/2468566
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-12-23 00:36:54 -06:00
Srihari Sathyanarayana
7b65d3eff5 Fix build error unused-but-set-variable in sr100
motorola/kernel/modules/drivers/uwb/sr100/sr100.c:656:7: error: variable
'retry_count' set but not used [-Werror,-Wunused-but-set-variable]
  int retry_count = 0;

Change-Id: Ied2b704e11f5ded4ca8125ad0176573f3aefc6d0
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-on: https://gerrit.mot.com/2465217
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Qing Chang <qing@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-12-20 22:47:05 -06:00
yh
481f8e6325 focaltech_0flash_v2_mmi:improve charger detection
focaltech_0flash_v2_mmi:
improve charger notification callback to set usb state to TP FW ontime

Change-Id: I1921e3d8e8ed6cdaf338980993f0ab81f399e970
Reviewed-on: https://gerrit.mot.com/2463579
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-12-19 23:28:04 -06:00
weimh1@motorola.com
c3949d41a0 sx937x: reset chipset instead of cali
1.porting from sx937x about re-initialize machanism
  2.reset chipset instead of cali for bronco only,
   use dts to control it and will not impact other projects

Change-Id: Ifd616a57863cdd96641440a5b2926ec9286f60ee
Signed-off-by: weimh1@motorola.com <weimh1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2463575
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-12-16 03:51:44 -06:00
lbh
809c507901 pnangn:2nd main charger sc8989 disable adc conversion
2nd main charger sc8989 disable adc conversion by reading dtsi config value

to prevent current leak

Change-Id: Ic647a9c2dd3bbc60ef5b82b758716e35c8fe6c75
Reviewed-on: https://gerrit.mot.com/2447457
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-12-15 04:12:51 -06:00
chenlj2
d3b6014d08 dlkm/fps:optimise ets_bix_mmi for pnangn
optimise ets_bix_mmi to solve build error issue
motorola/kernel/modules/drivers/input/misc/ets_bix_mmi/etxxx_fp.c
1063 error: implicit declaration of function 'of_drm_find_panel

Change-Id: I34beae498d2dd5444f8460cd4e5b16fe6646409b
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2462331
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-12-15 01:58:20 -06:00
Andy White
1b047e88bc haptic_hv: Select waveform based on duration
If seq <= 2 and duration <= 100, select a waveform based on ranges
defined in the devicetree. There are three ranges, from smallest
duration to largest, corresponding to waveforms 3, 5, and 1,
respectively.

Change-Id: Iaa83fb9d54c02ef9d13fd0ecb8dbfbd6753390df
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2462031
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2022-12-14 14:46:12 -06:00
Andy White
c890634342 Reset to default waveform after vibration
After any vibration, reset the waveform to the default index
of 1. This ensures that the vibe state is always consistent.

Change-Id: I7821d7cb0abd57a4b0d0cf1d7315c6b67de58a92
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2452957
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2022-12-14 14:42:58 -06:00
chenlj2
82f4ce1c50 dlkm/fps:optimise screen status interface control
the modification is for egis fps
old screen status interface didn't work in kernel 5.10
poweroff when fps was borken

Change-Id: I67656f803513e2cce44bb516b19b36380b7abb7f
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2459719
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2022-12-14 00:16:37 -06:00
Wenge Zhu
c0c897536b Build ztw622 as a DLKM module
TP:
Build ztw622 as a DLKM module.

Change-Id: Iaf73ee8b6d45882d6c122f4bc5164b320e420acb
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2455380
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-12-13 20:39:48 -06:00
Wenge Zhu
ea864c6693 Add initial source code of ztw622 touch driver
TP:
Add Initial source code of zinitix ztw622 touch driver.

Change-Id: Iefc1d2dd6b8e375b470cbbb55e82b94dfa26008a
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2453796
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-12-13 20:39:40 -06:00
Konstantin Makariev
b70af6472a drv8424_mmi: motor overshoot handling
Transition to COMPACT position in sensors driver scenaRiveright cause
the slider going beyond 3.5 degrees threshold failing position
detection and causing motor faulty state enforced. In this case, it
seems better approach to allow the slider to move all the way to
either EXTENDED or PEEK positions to keep internal state machine
intact

Change-Id: I38425d2ab35e67eb49bb059e6fcee3dee07c394f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2453110
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-12-12 20:00:55 -06:00
Wenge Zhu
59ccefeb4b Support goodix touch under water detection
TP:
Support goodix touch under water detection.

Change-Id: I8552676ca8b270595c8a99a94efe939ddb8e4802
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2451133
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-12-06 20:02:23 -06:00