Commit graph

2,867 commits

Author SHA1 Message Date
Wenge Zhu
aacfd4eda7 Fix multi-finger touch error logic
Fix multi-finger touch error logic,previous change will cause
not released down event.

Change-Id: I69509221ef9fa15119bbb072ce3a4a493d7bc8c0
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2526281
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-03-02 06:15:37 -06:00
xuwt2
495fcf0d67 sc760x: fixed build err
sc760x_charger_mmi:
fixed build error

Change-Id: I78d66d43a75780612ed9a338f3c70c669bcd364b
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2526086
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-02 03:31:56 -06:00
xuwt2
ebbca485d2 sc760x: Dynamic check sc760x power on
Checking dual battery voltage.
Then decide whether to turn on sc760x.

(Discharge && main_vbatt - flip_vbatt > 200mv)
Does not turn on sc760x

Change-Id: I31180f6404f901e618751fc18e7713bf1351a865
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2523788
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-02 01:10:52 -06:00
Wenge Zhu
e1c9b20d74 Add gesture support for zinitix touch IC
Add single and double tap gesture support for
zinitix touch IC.

Change-Id: I23530196d21c8800845f2b5b81096006a7da2421
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2521947
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-28 03:57:39 -06:00
maheshmk
5a1c5d012f Oberon : SOL LED: Added module_params
Added module_param support to led-trig.ko module to set during 
init. This can be set to enable tri-led path in driver.

multi_led_enable = 0 : This is default setting only one led module will
be controlled.

multi_led_enable = 1 : Enable tri-led calls so individual brightness or
blink can be set for all (R,G,B) leds.

Change-Id: I552fa0cd707f0a9de45d9f3392cb3fb32ea33a17

Signed-off-by: maheshmk <maheshmk@motorola.com>
Change-Id: I552fa0cd707f0a9de45d9f3392cb3fb32ea33a17
Reviewed-on: https://gerrit.mot.com/2505770
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Perry White <awhite6@motorola.com>
Submit-Approved: Jira Key
2023-02-28 01:32:40 -06:00
Srihari Sathyanarayana
2d2ff4b594 Sol led: Handle power supply states
Handle power-supply states for Charging/Discharging
Set blink/solid Led settings as below

LED Brighness depend on Device Charging State
----------------------------------------------
-- Full while Device Charging
-- Half Brighness while not Charging

Led Functional Mode Depend on the Battery capacity
--------------------------------------------------
Battery Level < LOW_CAP_THRESHOLD_DEFAULT
-- Fast Blink "charging_low" led node(s)

LOW_CAP_THRESHOLD_DEFAULT < Battery Level < BATT_CAP_THRESHOLD_HIGH
-- Slow Blink "charging" led node(s) (If device charging)
-- Enable Solid 50% brightness for "charging" led node(s) (If device not charging)

BATT_CAP_THRESHOLD_HIGH < Battery Level < BATT_CAP_THRESHOLD_FULL
-- Slow Blink "charging_full" led node(s) (If device charging)
-- Enable Solid 50% brightness for "charging_full" led node(s) (If device not charging)

Battery Level ==  BATT_CAP_THRESHOLD_FULL
-- Enable Solid 100% brightness for "charging_full" led node(s)

Change-Id: I0abf35ea5ee51ade808ac196d8e56d7dcac33d9c
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Signed-off-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-on: https://gerrit.mot.com/2516362
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Perry White <awhite6@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-02-28 01:30:57 -06:00
litong20
d18cb2d891 support transfer the flip target fcc to main battery.
Transfer the target fcc value of the flip battery to the main battery
through glink for power dynamic configuration.

Change-Id: I3b8b2029e5f5cdf1b7ccc49fd7ce32a63b94c957
Reviewed-on: https://gerrit.mot.com/2520452
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-02-27 23:44:54 -06:00
hujing3
e6e27dc858 focaltech_0flash_v2_mmi: update log level for input report log
focaltech_0flash_v2_mmi:
there were plenty of input report logs in normal userdebug version.
add debug log level config node for input report logs,
also enable debug log level when common log_level > 1.

Change-Id: I2881db93974a426395b5af7563b2fae5067e6f96
Reviewed-on: https://gerrit.mot.com/2519358
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-02-23 19:11:46 -06:00
liuzy55
4a38966a6c lynkco: add 32-bit ioctl for tcmd
details:
add 32-bit ioctl for tcmd

Change-Id: If5c5df1432a44916989a1b2e93aa774a8f36a66b
Signed-off-by: liuzy55 <liuzy55@motorola.com>
Reviewed-on: https://gerrit.mot.com/2517655
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Pengfei Qiao <qiaopf1@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: <wangdp11@motorola.com>
Reviewed-by: LiuZhuo <liuzhuo3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-02-22 01:56:31 -06:00
wangdp11
d4d13c7043 lynkco: update TOF kernel version
Details:
Update kernel version to 14.1.2 bare 6.6.11

Change-Id: Ic65d6e8b6848feaf1cf2b0449442ae99386b6b04
Signed-off-by: wangdp11 <wangdp11@motorola.com>
Reviewed-on: https://gerrit.mot.com/2514456
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2023-02-22 01:53:04 -06:00
hq_caoqunhui_tmp
740dcf283c discharge with software pd pps charger
Details:
discharge with software pd pps charger
because of pd hardreset

Change-Id: I0f2aa3ed68171fc6d1fa40c921a204bb8741f863
Reviewed-on: https://gerrit.mot.com/2505494
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-02-22 01:07:14 -06:00
xuxj12
f1cd82577b fg: optimization fg batt status
current between -10~10mA read from fg when charger present is invalid,
change batt status to not chargering

Change-Id: Idc1f1e5ed148ea49aa9a539e4014ff4146519460
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2516321
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-02-21 21:21:44 -06:00
xuxj12
7720276df2 flip_batt: optimization flip batt charger status
flip battery charge not disabled in factory mode

Change-Id: Iab876cae0d36ac38f9a524cb3f8c22325307867b
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2515025
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2023-02-21 21:21:10 -06:00
Yonghua Yan
555d409161 Support input voltage limit for wireless charger
Support input voltage limit for wireless charger separately so
as to load different input voltage limit for wired and wireless
charger input.

Change-Id: Ifab8e2ee36c0f549be4fb348396e4fadb6e650d6
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2516665
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
2023-02-21 06:37:07 -06:00
miaoyi
2d74d85400 Modify Zinitix firmware version name
Modify Zinitix firmware version name,
and modify firmware update process.

Change-Id: I24aac107a73d8151d5ee20c90f2ce9b55cb44cd2
Signed-off-by: miaoyi <miaoyi2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2513766
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-02-19 23:55:11 -06:00
miaoyi
cf4cb96215 CLI screen support 3points
Change finger numbers
from 2 to 3.

Change-Id: I958af55ff48fc157f2d7b83384b8aacc64dafdd6
Signed-off-by: miaoyi <miaoyi2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2513673
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-02-19 23:53:10 -06:00
Xiaojun Lv
e4066563c5 input: fix ili7807s touch dislocation when aging test
Problem: aging test, touch dislocation.

Cause: during the boot process, when the rst pin is pulled, the int pin will also be pulled down, and the system respond
to the interrupt in advance, but at this time there is no firmware in the IC, which will trigger esd recovery to reload
the firmware. The resolution information is stored in the firmware, but the firmware path has not been assigned at this time,
and the firmware cannot be applied, resulting in the upgrade failure. If the resolution cannot be obtained, the default
resolution will be used, which will lead to incorrect resolution setting.

Solution: during the boot process, only after the firmware upgrade successfully, system can response to interrupts.

Change-Id: I0ad032de0b96ed86177a9aa4a16f9aa87613042d
Reviewed-on: https://gerrit.mot.com/2514709
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-02-17 03:25:38 -06:00
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