Commit graph

2,829 commits

Author SHA1 Message Date
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
Wenge Zhu
31a13f0565 Support touch under water detection
TP:
Support touch under water detection.

Change-Id: If079e97c34100c54d07d25b9486f32b37d2fcefe
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2434461
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:01:44 -06:00
Andy White
9c43eb0176 haptic_hv: Prevent sysfs attrs from being destroyed
If the trigger is changed, there's a chance that the new trigger
will provide attributes that conflict with ones that already exist,
destroying them.

By removing the `trigger` attribute, any init script that attempts
to alter the trigger will fail to do so.

Change-Id: I19f58b08706f4592eeefae65f63d82f44373cb55
Reviewed-on: https://gerrit.mot.com/2451742
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2022-12-06 10:39:23 -06:00
Yonghua Yan
6ba7fd6522 Add lpd mitigate driver module
Add lpd mitigate driver module to support lpd policy from
AP side.
Support lpd mitigate mode configuration from AP side in devicetree.
Support lpd mitigation policy taking touch underwater detection
result into account.

Change-Id: I10516534a86d294620631c48127938c314c7659b
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2450334
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-06 05:21:07 -06:00
Yonghua Yan
c7dabf3b12 Add LPD device notify support in mmi_relay
Add LPD notify support in mmi_relay.
Add LPD notify event type definition.

Change-Id: Ib2cca69bacb3de8a9321b9df70331cf5471e793e
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2450302
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-06 05:20:26 -06:00
Yonghua Yan
582c3f412e Add glink oem command to support lpd mitigate mode
Add glink oem command to support lpd mitigate mode configuration
from AP side.

Change-Id: I505fb86a98f1d2d4e0078fe795d3e304086e8393
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2450314
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-06 05:20:14 -06:00
Jun Weng
4065100cc9 dlkm: bo: Change the logic of report fod up key
- Per the request of fingerprint team, remove the judgment condition of
touch_num<=0 when reporting the fod up key, this change can prevent
fod up key not being reported because touch_num>0 when fod up key
needs to be reported.

Change-Id: Iacbfc0592cc7944cfa5497560c3fc5e86531cf7d
Signed-off-by: Jun Weng <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2450918
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
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-05 04:21:26 -06:00
Sridhar Vashist
c304122037 Revert "(CR): haptic_hv: Prevent sysfs attrs from being destroyed"
Revert change as it breaks felix user builds.

This reverts commit b280c749286125393ff0b7d1961d04e6f4c71f49.

Change-Id: I03ec006d6451bd82c90a6f409fe897c362d95691
Reviewed-on: https://gerrit.mot.com/2448629
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Submit-Approved: Yinjun Chen <a7301c@motorola.com>
Tested-by: Yinjun Chen <a7301c@motorola.com>
2022-12-01 14:31:00 -06:00
litong20
a5eafafcdd Enable the charge IC after the detection compelte.
Disable charging if charger input is not ready in case the
charger input current limit does not match the target.

Change-Id: I8bc2a3b10e18c5dd7b034c760731bb04f3c0d4ca
Reviewed-on: https://gerrit.mot.com/2440276
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-12-01 04:36:41 -06:00
[A
a1d1c632e4 Optimize time sequence of usb_therm mos control
Details:
Optimize time sequence of usb_therm mos control

Change-Id: Ib55002ae5a968bd87675230436533d1a708d66e3
Reviewed-on: https://gerrit.mot.com/2447403
Reviewed-by: <hq114@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-12-01 03:17:22 -06:00
jixj
2393e1a657 utag: Enlarge buffer size to fill full workqueue name
The workqueue actual name is "config_load" and "config_store" and they
are over 10 characters hence name is truncated to 10 characters.

Change-Id: Ie9e4fea1b42df337710d00ee5af0dfa21453f50e
Reviewed-on: https://gerrit.mot.com/2446612
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2022-11-30 19:39:56 -06:00
litong20
77f7c23afb fix wired charging error online logic
Only when wireless charging is used, re-judgment whether it is online
or not. but wired charging maintains the previous online status.

Change-Id: I01b2074f496867237fc733645a088329e5432818
Reviewed-on: https://gerrit.mot.com/2442366
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-11-27 23:57:30 -06:00
Lei Chen
5b1ad1966c usb_therm: add usb_therm toggle mosfet
For penang japan, the charging should stop as the usb_therm is
too high. Thermal control the mosfet to disable charging.

Change-Id: I2855665e56c0edd26f0bc1150321bcf6da808948
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2414069
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
2022-11-25 00:15:44 -06:00
wangyq13
a57d3b2149 input: ili9882_mmi: remove unused netlink codes
ili9882_mmi:
Removed unused netlink codes, fix vts test fail.

Change-Id: I2b4734252a8dff2bf783201f96acf3d24c75c03a
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2438674
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-11-23 23:58:12 -06:00
litong20
295d99566c cancel the work befor scheduling.
sgm4154x:
cancel the work befor scheduling.

Change-Id: Ia27360757b1fd06cf2f15c23debd7c41b63951d9
Reviewed-on: https://gerrit.mot.com/2437359
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-11-23 21:26:52 -06:00
Xiaojun Lv
ccaf3c7f3c input: optimize nt36672c touch spi timing
input:
modify nt36672c CS Hold Time to meet spec requirement.

Change-Id: I9f24cee977f70fab7dec22e11cb6d71c4a1b61cc
Reviewed-on: https://gerrit.mot.com/2435678
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
2022-11-23 05:19:51 -06:00
miaoyi
8e73aacdfa qti_glink_charger: support cps4019
Add flag when using wls_cps 4019,
make sure program can be compiled

Change-Id: Ice6722555d09e6e186132401b386d5f2f8b292f0
Signed-off-by: miaoyi <miaoyi2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2430837
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
2022-11-23 05:09:27 -06:00
miaoyi
30383a2f6b qti_qlink_charger: support cps4019
Modify defination of dump_info,
and delete information of pen when using cps4019

Change-Id: I0c4859429c194aa07bfb5cc1ec960dba3ae48fa1
Signed-off-by: miaoyi <miaoyi2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2431797
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
2022-11-23 05:08:50 -06:00
Haijian Ma
79b2806d70 fg: don't get battery info when fg run into boot mode
We find one unit fuel gauge run into boot mode by itself. So can't
get battery info from FG. Now we want to reset FG when detect FG in
boot mode.

Change-Id: Id1ebb4fa3774c7de2da3e23a9c175f80e793e496
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2434720
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-11-23 00:25:58 -06:00
[A
8306c97959 optimize IR comp for 2nd chg ic
Details:
optimize IR comp for 2nd chg ic

Change-Id: I8a55c4bc7eb0e66bb857c51a353049700b7ecdb5
Reviewed-on: https://gerrit.mot.com/2435597
Reviewed-by: <hq114@motorola.com>
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
2022-11-22 04:10:54 -06:00
[A
077c1d050a optimize IR comp for 2nd chg ic
Details:
optimize IR comp for 2nd chg ic

Change-Id: I1d1fde7b7e10ac3ba5a8bab67cd827a8b36c961b
Reviewed-on: https://gerrit.mot.com/2433431
Reviewed-by: <hq114@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-11-18 04:30:31 -06:00
Xiaojun Lv
fc6ed50514 genevn: optimize the process of ili7807s touch sending stylus cmd
tp:
According to fae's advice, add 20ms delay to fix the probabilistic failure of sending the stylus cmd after the firmware upgrade

Change-Id: I1eaf25d91556534c0d3f6fa8825e2e498a5facfa
Reviewed-on: https://gerrit.mot.com/2428503
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-11-15 02:28:30 -06:00