1. No need to set ABS_MT_TRACKING_ID, input_mt_init_slots() already set it.
2. Report BTN_TOUCH event when the fingers are lifted.
Change-Id: Ib22a50091745f7b4facea23104f3cdc3a33807c5
Reviewed-on: https://gerrit.mot.com/1940860
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Check for low current delivery usb2/3 SDP charge type and enable only
pm8350b source charging. Also enable flip path to allow both batteries
to be charged by pm.
Change-Id: I4441d23d4847af87f05f90b71f1e8ba740e9ea52
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1938246
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Update the charger_suspend config in charger configure function based
on demo_suspend status to make sure charger_suspend config will not be
cleared for charger configure reset.
Change-Id: Ib1f11c28003de60221886a4bb9dba0e4fcac7735
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1933674
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Since module name has changed, there is no more naming conflict between
touchscreen class based driver and older version not using class code.
Removing stale references that won't be used again and fixing broken
build on some branches.
Change-Id: Id8f9c2b0ce6e4adae31882b7d28d5c928ee71fd7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1932146
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
1. Some platforms do not support POWER_SUPPLY_PROP_PRESENT property.
2. When getting POWER_SUPPLY_PROP_PRESENT property fails, then
get POWER_SUPPLY_PROP_ONLINE property.
Change-Id: If46466ea5f79443310d1bc5aabb2be97e82d789c
Reviewed-on: https://gerrit.mot.com/1932041
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Jira Key
TP:
Berlin need to support 240Hz and 480Hz report rate switching.
Change-Id: I050da407a67e2976903d37900a7c05b938ad1190
Reviewed-on: https://gerrit.mot.com/1925619
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
when wl2866d regulator was not only used by camera, they may need
some of the ldos always on, so add dts property check to init the ldos.
Change-Id: I8b752f1d11548b12dfac2051bf7301b97703ae59
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1929489
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Peng Zhang <zhangp49@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
The following sysfs nodes used by vendor init are required to
be the same among all the Moto products.
So move those sysfs nodes to the parent of battery device.
init.mmi.tcmd.rc:
/sys/class/power_supply/battery/device/factory_image_mode
init.mmi.rc:
/sys/class/power_supply/battery/device/force_max_chrg_temp
/sys/class/power_supply/battery/device/force_demo_mode
charge_only_mode:
/sys/class/power_supply/battery/device/factory_charge_upper
Change-Id: I55454e831e40d9fb82f64afb182941c471617a65
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1929184
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
USB power_supply_prop_online is being updated for attach. Change from
power_supply_prop_present.
Change-Id: I9cce9f34285eb7795d69c55c7bb721ea097cd4a9
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1928559
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
Use supplier to distinguish between the limit files
of different panel for CQA test.
Change-Id: I0b822800820fd6804cd776bb7a74b7c9484151a9
Reviewed-on: https://gerrit.mot.com/1924844
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Add flip batt path fet switching control logic for discharge. Low-Z
battplus_en path is enabled when flip batt & main batt is closely
matched in charge (voltage). Otherwise enable R-balance flip path.
Also add logic for vbus charge current OCP in case of short condition
esp for IEC62368 cert test.
Change-Id: I94022c5491ed3c7776c868bdf77d34cfe3e98478
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1920346
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Add a mmi version of the qti_battery_charger that is built
into the kernel.
This version renames battery to main_battery and updates the
power supply type so it doesn't get recognized by Android.
Wireless charging is removed
A combo battery has been added that reads props from the
mmi_charger
Change-Id: Ib70dfbc3d07d0199e6d55fa8e2571abba8fa9bb0
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1916389
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Fix the power supply type to make it unknown, we don't
want Android to think we have a second USB charger.
Also restore the voltage prop which was removed by
accident.
Change-Id: I311c968bc237396b7e5f4525cd5112ef50acf5ac
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1916388
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Add combo voltage and current properties so they can be read
by a combo battery psy.
Change-Id: I20d81bde7a36f9b7c6a732b1f524aa3f6c391c60
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1916387
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Drew Abbott <drewa@motorola.com>
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Flip battery path will monitor both main and flip batt V & soc's
and will determin appropriate flip path to enable for disachrge
state. Path controls allow opening of flip path for independent
charging.
Change-Id: I799eb4ff31fff8d02675be266cf6a0cb00e315e1
Reviewed-on: https://gerrit.mot.com/1909146
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Add generic mmi_charger_driver module that can work with
any external fuel gauge and charger IC with the right
getters/setters
Change-Id: I16b06e433949f189ad5f00b5620c766be504362b
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1899162
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Add getters and setters to handle fcc and fv so we
can control them from another module.
Change-Id: Ib816845d6cb88292379cb13d120da1b73cdec124
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1899161
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Added the following features:
1) BOS0614 registers dump sysfs
2) reading device tree and applying default config
in case of power cut
Change-Id: I53f1b7069ea4d74aa8b02ac525765951fe29bcce
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1889879
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
1. Support init.mmi.touch.sh service to force flash TP FW.
2. Add power status sys node
Release Info format,take 21031801 as an example:
ext_release_byte0 [0x01]
ext_release_byte1 [0x18]
ext_release_byte2 [0x03]
ext_release_byte3 [0x21]
Change-Id: I8ffa0244dfc10257ce92cc8f2fbc9841e8ead4c9
Reviewed-on: https://gerrit.mot.com/1904886
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Synaptics DSX driver is still used in older products in its non-class
version. Version utilizing MMI touchscreen class has more dependencies
and it seems easier to maintain if it's kept separate.
This change combines the following:
1) added MMI status check into probe
2) added module dependencies
3) fixed up panel notifications
Change-Id: I0fcb165c39ef09e0fbd4d5b82ef8130df51ec627
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1887465
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Setup meaningful config and build IDs info to allow for automated
firmware update. Driver will be using release info field of ST
sysinfo as config ID while build ID will become a combination of
FW CFG and CFG version.
Change-Id: I53cec2619ed6afaa83994e7cd40a8254791437a8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1902864
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
If we support ABS_MT_PRESSURE event, when we keep touching the screen
during the boot process, it will cause the touch to be unresponsive
after booting, and all input events will be treated as HOVER events in
framwrok.
Change-Id: I75d33a691bba5729b066df3b80fb1681ce97b5c9
Reviewed-on: https://gerrit.mot.com/1908277
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key