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
Includes the following fixes:
* max coordinates values handling
* invalid preprocessor statements
* proper interrupt setup on FW update
And following features have been added:
* option to flip coordinates
* suspend/resume pin and power control
Change-Id: Id65bababf1daad807aa1b7a56bd457512bcd1b97
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1896934
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Get the battery profile id via looking up from a profile id
and battery serial number mapping table in device tree, so
each product can specify the supported battery profile id and
serial number mapping table by its own in device tree.
Change-Id: Ide3a5b73e5500c47e1afca2122d6ef082982875d
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1899502
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
1. Use common wakeup source APIs
2. Add combo_health and combo_temp as combo property of
mmi_battery power supply.
3. Correct the initial value of battery status when
calculate the battery combo status.
4. Change the driver name to be constant for compatibles.
5. Export the including path for header file in Kbuild
6. Update the README for more platform driver support.
Change-Id: I0f3403c1e622aa35ccbf753d6c30142b16655752
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1896694
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
On enable GKI products, there will use Qcom latest dlkm compile file
(device/qcom/common/dlkm/AndroidKernelModule.mk) to build kernel driver module,
and it requires all files of the current target driver module to be in the same
hierarchy path. Otherwise, when compile this module, a file will can not find
other local header files that under the different hierarchy path.
Change-Id: I09cfc7bd4539fb3ba8d654b240493d8a11066bee
Signed-off-by: linyx10 <linyx10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1884805
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Binsheng Que <quebs2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
The paths and interfaces for qcom scm call on kernel 4.x and kernel 5.x are
different, considering that different platform use different kernels, so
workaround here for compatibility.
Change-Id: I1a52e58be740799587a8ec924a5fd76d8f69a018
Signed-off-by: linyx10 <linyx10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1885962
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jefferson Rodrigo Capovilla <jeffecap@motorola.com>
Reviewed-by: Binsheng Que <quebs2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key