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
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
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>
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
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
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
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
Because thermal-hal thermal throttling processing deponds
on the thermal uevent. So we need to add uevent thermal
trigger for virtual sensor. To avoid event storm, the uevent
only generated when the temperature is higher than threshold
and the change of temperature is by 1C.
Need dts element definition:
"mmi,uevent-temp-threshold" - the uevent trigger threshold
"mmi,need-uevent-sensors" - the sensor list that need uevent
Change-Id: Ifc0e15a57716540d39e696d711e9016fd4a850db
Reviewed-on: https://gerrit.mot.com/2728837
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
add crow for a new mechansim for
building external modules
Change-Id: Ia85ebb1f553ae7ba7d2a170cc4c133a779b41316
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2730443
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Parse palm event on irq thread received from touch IC and then report it
to FWK.
Change-Id: I5d9fca8a258a568ada21b0824d3dc255fe9798d4
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2735977
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
charging state machine use battery voltage as condition to switch state
instead of battery soc.
1.Sometimes batt soc have some error in low temperature and less
then 100%, charging can't auto stop when battery FULL.
2.unit can't recharge after charge full.When unit charge full, it will get
the forced capacity 100%, so chrg_step can't be switch to STEP_NORM
from STEP_FULL.
refer to https://gerrit.mot.com/#/c/1926738/
Change-Id: I1f9a3926d1e39168b4df227e8172a43dc0af58bc
Signed-off-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2730249
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Do not clear get stow mode state after touch resume done,and get stow
state variable totally controled by FWK,in case when AOD wake up and
sleep touch could not enter stow mode in pocket.
Change-Id: I4d6617bc6757c1e7d7a646fe2cf5e21eea7b22a6
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2729447
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
As request from RF team, wifi connect wifi5G network, when a vowifi call,
pull up the gpio34, so that the wifi5G antenna switches to back antenna.
Change-Id: Idfb47161179db62d2e1a77a26be70d5b54d3bfe9
Signed-off-by: Zhiye Li <lizy90@motorola.com>
Reviewed-on: https://gerrit.mot.com/2728933
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianglong Liao <liaoxl@motorola.com>
Reviewed-by: Yue Sun <sunyue5@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Clear vbus present if wireless charger present, as there is no
wired usb charger connected.
Change-Id: I2020465813d65b4c359070de90ba70f63867b18c
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2728335
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Fix unlocking with a fingerprint when the screen is off,
ghost spots appear on the screen.
No call to tp_gesture_recovery in tp_resume_recovery.
Change-Id: I8f026cfb1faf35b11596dee7bd8ad561d5819cb1
Signed-off-by: LiZidong <tnlizd@motorola.com>
Reviewed-on: https://gerrit.mot.com/2720737
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Jira Key
first_check check was not reported,resulting in the default value of cc1
uppdata aw35616.c in kernel
Change-Id: I34704b5c08a38c2819327e9d0fb7b38901097140
Reviewed-on: https://gerrit.mot.com/2727374
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
The device auto reboot after shutdown command receive in factory.
The correct seq is sending shutdown command-->unplug the USB cable
-->device shutdown. Optimize the shutdown sequence for factory.
Change-Id: I7f66f932c782192776b36d96457548d49947bd18
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2717398
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Lei Chen <chenl18@motorola.com>
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key