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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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