Commit graph

1,663 commits

Author SHA1 Message Date
Bernie Moreno-BERNIEM
724268d0df fet_control: banks: Enable only pm8350b chrg for usb2/3
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
2021-05-04 15:46:25 -05:00
zhangh12
34605de176 sx937x: reset sar on i2c failures
porting from x933x,
Re-initialize via a watchdog failure

Change-Id: I5df7d15c9bc62d77940e7da1f57425d245bf5c86
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1935976
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-04-30 03:45:19 -05:00
yanyh2
177379d9c1 update the charger_suspend config in charger configure
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
2021-04-27 21:53:39 -05:00
Konstantin Makariev
bcbc566eb4 synaptics_mmi_class: fix broken build
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
2021-04-26 09:53:29 -05:00
litong20
1cd7f94b4f berlNA: support usb detection of novatek TP.
TP:
Add USB detection based on touchscreen class.

Change-Id: I17228951a5974a21cabb9985caa7ec1c308f3016
Reviewed-on: https://gerrit.mot.com/1932115
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-04-25 22:18:55 -05:00
litong
ce629f8b01 Get usb status through POWER_SUPPLY_PROP_ONLINE property.
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
2021-04-25 21:10:01 -05:00
litong
b0a41920ef stmicro: Add USB detection based on touch class
TP:
Add USB detection based on touchscreen_mmi class.

Change-Id: I5f5ce631d462ea80f0190a4e6c49602c6d89327a
Reviewed-on: https://gerrit.mot.com/1932033
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
2021-04-25 21:09:53 -05:00
daiss1
0fa67c9868 ETS: Solve the compilation problem of androidR
Modify:
Solve the compilation problem of androidR

Change-Id: Ic24fa799ac614bc8c08d0656c7345d0efbef0f3b
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1931815
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-04-25 02:48:49 -05:00
litong
70b3e44810 Support TP report rate switching
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
2021-04-23 06:51:00 -05:00
wangdw10
a414b1b315 regulator: wl2866d: support to read init value from dts
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
2021-04-22 07:44:52 -05:00
litong
325993a42e Resolve compilation errors for nio
Change-Id: Id65c5321fcd99d56c3920546242e9f53e73c4a7c
TP:
error: use of undeclared identifier "TOUCH_DEEP_SLEEP_STATE".
Reviewed-on: https://gerrit.mot.com/1929849
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-04-22 04:26:43 -05:00
litong
4c23a76ad2 Support touchscreen class for novatek
TP:
Support touchscreen class for novatek.

Change-Id: I040d2124988660366cfd88cb9880fbddc9d500a3
Reviewed-on: https://gerrit.mot.com/1923438
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-04-22 01:28:46 -05:00
yanyh2
22fba6ffac Move sysfs node to the parent of battery device
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
2021-04-21 21:28:42 -05:00
Bernie Moreno-BERNIEM
c0b79a2411 power: fet_control: Update paths on usb psy prop online
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
2021-04-21 16:37:56 -05:00
Ryan Lattrel
d6d635667a qrng: Add qrng driver
Add the qrng random number generator
driver.

Change-Id: I2d3e767f495450240c6c4fc3b5cdcdb0fc803a24
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1894649
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-04-20 12:06:13 -05:00
zhuwg1
7b32d40c56 qti_glink_charger: Add sys node to pass TCMD to ADSP
Add TCMD sys node to deliver PMIC register address and register
value to ADSP by glink.

Change-Id: I475b55b67939704968dda09337a314df9c7a9a1b
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1925839
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
2021-04-20 02:10:23 -05:00
xuwt2
c0f3607d09 qti_glink_charger: Add sys node to set pmic_icl
Add force_pmic_icl sysnode to set pmic input current limitation
echo xxx > force_pmic_icl
cat force_pmic_icl

Change-Id: Ic368b04c499fc270ebd3cbf8ce041cbabb3939fe
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1927039
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-04-19 21:05:51 -05:00
litong
4fb1702a1f Resolve compilation errors with unused parameters "ret"
TP:
warning unused variable 'ret' error, forbidden warning:fts.c:4034.

Change-Id: I10a19d48f54e601c1e0f5ff230bd219c830d441f
Reviewed-on: https://gerrit.mot.com/1925688
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-04-16 02:22:21 -05:00
litong
5c9a72fc9c Resolve compilation errors with unused parameters
TP:
fts.c:4035:14: warning: unused variable 'supplier' [-Wunused-variable]

Change-Id: Idd9030aa7a51f9f9da142481436f1e4c3b95e200
Reviewed-on: https://gerrit.mot.com/1925632
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-04-16 01:57:53 -05:00
chailu1
bbf2e23fb0 charge: add sc8549 driver for corfuP product
Charge pump
Add sc8549 driver for corfuP product

Change-Id: I37b62132a54ff636c5d8d67b2137f7d7c9b98fc6
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1923396
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2021-04-15 21:49:27 -05:00
litong
dd553da38a Export panel supplier method for ST
TP:
Export panel supplier method to distinguish different
limit files for ST CQA test.

Change-Id: I482d1b5e86e7c73f91f8bb799165f05afaa9ce46
Reviewed-on: https://gerrit.mot.com/1924781
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
2021-04-15 21:11:24 -05:00
litong
fbcb5f661f Use supplier to distinguish limit files.
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
2021-04-15 21:11:06 -05:00
Bernie Moreno-BERNIEM
813d9bf09b power:fet_control: Batt flip dischg fet ctl, chg cur_en
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
2021-04-15 10:57:35 -05:00
xuwt2
5c5deaac86 qti_glink_charger: Add sys node to pass TCMD to ADSP
Add TCMD sys node to deliver message to ADSP by glink
For example:
echo 1 > tcmd /*force turn on master switchedcap*/
echo 2 > tcmd /*force turn off master switchedcap*/

Change-Id: I4a530148f234d8af7d5a4c9a9af21865602f9217
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1920513
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-04-14 22:02:38 -05:00
wangyq13
2b68f15142 input: goodix_mmi: add goodix i2c 1510 version driver
input/goodix_mmi:
Add goodix i2c version 1510 driver for gt9885.

Change-Id: I8a9ca6c3ba2528363548b1fa218b38b86bb65347
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1923417
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-04-14 21:18:49 -05:00
Ryan Lattrel
5a01001b24 qti_battery_charger_mmi: Initial add
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
2021-04-12 14:40:34 -05:00
Ryan Lattrel
917bf9841a bq25890_mmi: Fix power supply type
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
2021-04-12 14:40:27 -05:00
Ryan Lattrel
52500698bc mmi_charger: Add voltage and current combos
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
2021-04-12 14:40:22 -05:00
xuwei9
d0253480d8 driver:adjust bq25960 parameter
Adjust bq25960 ovp/ocp parameters
and driver

Change-Id: I04131b2941880bd1bd88b50c17b01ca436fae1fa
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1920655
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-04-09 02:50:03 -05:00
Konstantin Makariev
41374de0cd synaptics_mmi_class: gpio access func can sleep
Replace GPIO set/get functions with can sleep versions

Change-Id: I3d8ccdcc793d554298dbb5c226fbdb81a18c508f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1919281
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-04-08 11:12:59 -05:00
litong
25eeb3aba8 Add calibrate sysfs node for stmicro TP.
TP:
Add calibrate sysfs node in factory mode for TP tcmd calibration.

Change-Id: I8168b091617e33ae9d1ce2bc24dbc6b139ecaf90
Reviewed-on: https://gerrit.mot.com/1915302
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2021-04-07 21:14:56 -05:00
Konstantin Makariev
bb35cba6c1 synaptics_mmi_class: rename files
Renamed sorce code files to avoid build system ambiguity

Change-Id: Ibd86c6869880d340ded8548c92c2ce2cbad4ce7c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1914332
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-04-01 08:03:02 -05:00
xuwei9
c21b284055 bq25960:remove online property
Remove bq online property
for health compatible

Change-Id: I1d23ad0ac71aeecef3f68710809714bbb3a40885
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1915124
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-04-01 05:35:21 -05:00
Ryan Lattrel
90f228488c power:fet_control: banks flip batt fet-control driver
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
2021-03-31 19:29:46 -05:00
Ryan Lattrel
33907f55e9 mmi_charger: Add ext_charger
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
2021-03-31 19:27:12 -05:00
Ryan Lattrel
8db3589cc9 bq25890: Add get/set for fcc and fv
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
2021-03-31 19:27:04 -05:00
Marcelo Pincinato
e0ccdd100f Revert "(CR) synaptics_mmi_class: fix build issue"
This reverts commit 0b6bf1eff7be148a3a374f2897658ad683691d35.

  This change broke main line and Q2 builds for products cebu, guamp, guamna, borneo, astro, olson, denver
   
   Error: motorola/kernel/modules/drivers/input/touchscreen/synaptics_mmi_class: MODULE.TARGET.DLKM.synaptics_dsx_fw_update.ko already defined by motorola/kernel/modules/drivers/input/touchscreen/synaptics_mm

Change-Id: Ia9c9bab956a8a5fbb740e9890316620c55b9d635
Reviewed-on: https://gerrit.mot.com/1913587
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Marcelo Pincinato <mpcinato@motorola.com>
Submit-Approved: Marcelo Pincinato <mpcinato@motorola.com>
Tested-by: Marcelo Pincinato <mpcinato@motorola.com>
2021-03-30 18:18:32 -05:00
Konstantin Makariev
dc86c37e42 bos0614_mmi: added features
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
2021-03-30 09:11:11 -05:00
Konstantin Makariev
9d0fdf76ee synaptics_mmi_class: fix build issue
Reverse condition in makefile

Change-Id: I1493d459e35bf11473ee6b053a9bb347635d0f6e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1912717
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-03-30 09:05:34 -05:00
litong
3ea55429d0 Support fw update at device startup for berlin.
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
2021-03-29 05:43:27 -05:00
Konstantin Makariev
b8bca73bb7 fixup! (CR) synaptics_mmi_class: banks cli bringup
Update makefiles to avoid enabling mutually exclusive options

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I3a6f8df5e2296bdf3f1bee11f1c0733a1b6f72d0
Reviewed-on: https://gerrit.mot.com/1911535
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2021-03-29 01:40:38 -05:00
Konstantin Makariev
53726bd9f3 synaptics_mmi_class: banks cli bringup
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
2021-03-26 03:00:14 -05:00
xuwei9
2a3771065b smb:integrate charge pump ffc feature
Support battery ffc feature
at Qcom
Porting: (CR)

Change-Id: I8858601f3f6a003e303b330f42fe7167c2c0d801
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1908651
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-03-24 21:12:34 -05:00
Konstantin Makariev
ecf25732a9 stmicro_mmi: build and config ids
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
2021-03-24 08:31:48 -05:00
litong
9d8cfca056 Remove pressure events
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
2021-03-23 21:24:31 -05:00
xuwei9
932a79b381 charger:bq25960 30w charger support
bq25960 30w charger support
at driver

Change-Id: Ia1f4bd4004afb43c6f1d46c4b38d0818164b4d0e
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1903631
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-03-17 04:34:15 -05:00
xuwei9
78e1f50c8c charger:enable charger rate at 30w charger
enable charger rate at
30w charger

Change-Id: I6679c021a71ea44022c8fd948b8aca1e7cbdb415
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1903634
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-03-17 04:34:08 -05:00
litong
dcf0ed62b8 Enable irq during touch resume for berlin.
TP:
Enable interrupt during touchscreen resume for berlin.

Change-Id: Ie8c6bf171b64a2ae6b03bd69b5f94e3227147d7a
Reviewed-on: https://gerrit.mot.com/1903341
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-03-17 00:49:42 -05:00
dengwei1
9b0454f331 pstar: input touch stm fix issue
input touch stm
fix issue

Change-Id: I9a4a67acc176ea1a283c254f7569ee7b61ded6e2
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1902528
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-03-16 03:44:20 -05:00
Konstantin Makariev
4060c33bf0 fixup! (CR) stmicro_mmi: bug fixes and new features
Fixing up leftovers

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I559bd6ec3595eec0168af4efaa0743ef2160463a
Reviewed-on: https://gerrit.mot.com/1902234
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-03-15 21:27:38 -05:00