Difference between ft8756 and ft8009 is only CHIP_TYPE_MAPPING,
so use ft8756 configs firstly.
Change-Id: I79f3e04bf0a31c4a94091bd8f8525b2dd87af1d7
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1399541
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Add option to build using clang via
USE_CLANG_FOR_MODULES. Add to the appropriate
board file for the product that needs clang.
Change-Id: I05578ac49de38887b3f359276a3350d0bb5a18db
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1399094
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
This commit includes the following enhancements:
1) debug interfaces moved from Samsung specific sysfs path to I2C
device path
2) write register interface added
3) write register and erase firmware interfaces only available
in factory mode
Change-Id: I12504e99506c1a1bc76b3c9622814dbeac249438
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1399692
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
QG uses the battery supply charge done property for
capacity learning, but qcom battery may not be in
charge done state when mmi charger terminates the
charging as battery is full charged.
In that case, QG will not trigger the capacity learning
when it completes a full charge cycle.
As the FULL charge state is mantained by mmi charger, so
set the charge done state once mmi charger complete charging.
Change-Id: I574e6f3349949882bb38a759835cf85a67386fb5
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1396976
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Originally it was planned to do HW reset on resume. However, HW
reset was taking way to long and S.SLI suggested first to switch
to SW reset and then to simply set Normal power mode. Thus this
commit combines 2 things:
* new parameter to reset function (hw or sw)
* setting normal mode on resume
Change-Id: Ic52737f09cc7848377f91b274b47ee6dacee5204
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1397255
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
When count =1 and charger also present, it will run count reset and
cancel charger check work, so add charger present condition.
Change-Id: I4a6b871cc23a18b8f9412d16f35949c610cc17e3
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1396760
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Adding sysfs entry to report panel supplier name retrieved from
mmi,panel_name property of chosen device tree node. That property
gets initialized in bootloader based of results of HW detection.
Change-Id: I1c0a4ac8dc008ab8a41ae3da77cdc7ec9b2d20e2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1396198
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
There is no need to assign synaptics name to input device for
primary touch.
Mot-CRs-fixed: (CR)
This reverts commit ca0acb312a01582663d3a485f85f7a67390cf088.
Change-Id: I4d787c44b343727c9917fe7eaf036ce63bd673ad
Reviewed-on: https://gerrit.mot.com/1396206
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
1. sdp will config icl 100ma firstly and then config 500ma after usb
status is configuration, so normal sdp also will rerun apsd. so error sdp
can't use "icl <= 100ma" condition to check.
2. make sure charger check work call only once.
3. factory mode don't do charger check.
Change-Id: I162ca7c1ca4849a24eea3da9c38b2345b8c5f810
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1395943
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Unset the High Current mode if usb type is SDP or the target
icl lower is than 500mA.
If the High Current mode is set for SDP, the settled ICL may
be over the target icl value.
Change-Id: I05bb76d418c74b910eeed358e59e4b0fb3f33600
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1394159
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
Samsung LSI touch driver creates input device with name
samsung_mmi.primary. Framework has primary touchscreen input
name hard coded as synaptics_mmi.primary and thus won't accept
touch events from new input. This is temporary hack to allow
functional touch until CR (CR) gets resolved.
MMI_STOPSHIP
Change-Id: Ia69683d25f5216c642d86bd62e6bd29839f5b9c8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1394708
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Probe was taking long time to fail when HW not detected due to
various delays in detection work and I2C transactions. This allowed
for resources allocation errors in another driver started
concurrently.
Change-Id: I1cb5e9c206197c8a4af3be2902a6f7f6c8249c8d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1395070
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Reset the main and flip fuel gauges if there is a difference
of more than 15 percent between the two. This could indicate
that there is an error with the capacity value, as it
should not be physically possible for this to happen.
Change-Id: I3b74d97c1892bf1dfe537f29818dbe735f0bfa01
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1390571
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Samsung LSI has tool accessing touch IC information via bunch
of function provided by sec device. This function was temporarily
unavailable to simplify bringup.
Change-Id: I9eb29f0ed8a52126df0a5dcfecf0d26dd5d7f5cc
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1393553
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Override USB ICL using the targer ICL value, so that
the ICL settled value will not be limited to a lower
value than target value.
For example, when connect device using a CC floated
typec cable, the settled icl will be set to 100mA,
which will block the charging.
Change-Id: Icd2ea3e020437297642d790f4e1fa8ab25231504
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1393334
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Since the firmware size of ft8756 will exceed 64K, so the CQA test
jar and ini need to be changed, at the same time have to change
touch driver to match this change.Now we need to increase size
when calling download firmware function.
Change-Id: Icea129ab53663006ebedce0af1ff0ba5b8a03f1d
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1391750
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yang Yang <yangy19@motorola.com>
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Driver code create laser class->create virtual device->
add sys entries to this virtual device.
After laser class or virtual device create, kernel will
send add uevent to userspace.
Ueventd will received this add event and change sys entries
owner and permisions.
But ueventd thread have ran before sys entries created.
In this case, sys entries owner and permisions will not be set
correctly.
So After sys entries created, send a update uevent to userspace.
Make sure ueventd can fix sys entries permision.
Change-Id: I7b206cd99428252a8c2138083ea954211e655e6f
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1392489
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The charger type based on BC1.2 detection may be wrong
at the first time when charger is attached.
Add a delay work to check the usb icl and apsd result,
and check if the usb icl is less than 100mA or apsd
is FLOAT/OCP after 10s when the apsd result changes.
This patch can fix the slow charging or no charging issue
due to slow plugin or wrong apsd result.
Change-Id: I8d02edfe4617b23c0a9f8af7251c80f733df0f71
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1390378
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Since we are using different modules with the same IC(ft8756) on
sofia & sofiap, so we need to use different firmware to match different
panel, add dts property focaltech,panel-supplier for this request.
Change-Id: Ie7f74ce4437f7ee2d7f277403b448d099e1fa4dd
Signed-off-by: houdz1 <houdz1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1390106
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit enables firmware update via MMI doreflash interface.
At this point code only covers the case when touch IC has
valid firmware at the time of power up.
Change-Id: I06c7ba1b7e1f6dd6f463bc6e961845555fb6da5b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1388759
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
On Factory Mode, PMIC module votes on having high charging current,
interpreting USB cable as a Turbo Charger. Setting vote to OFF(0) will reset
such behavior, and will display Toast message correctly only when a Turbo
Charger is plugged.
Based on https://gerrit.mot.com/#/c/1325224/
Change-Id: I3661e6f093d284ce244435b71340d0f7ec56b6ec
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1387920
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
TP:
Increase retry count in USB detection set function.
If retry times larger than max retry number, break set function.
Change-Id: Ifa97ac3f8f66b422bd21dc249acfce081a13b35d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1389717
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Configure the usbin voltage allowance range to 5V_TO_9V
according to product requirement.
Change-Id: I3fba391443a411eb54b58965196e6491b3efd9b3
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1389257
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Turn off STMVL53L1 ToF sensor force_device_on and
let the ToF power supllies (VDD) to disable during
power down, otherwise ToF VDD will always On.
Change-Id: I17363f88921868a05ef833ce63c94cff0c7b6ecb
Reviewed-on: https://gerrit.mot.com/1368523
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
Without wakelock, system would suspend when vibration is on going,
which may cause the STOP command failed to be sent and in turn leave
the phone vibrating for a long time.
Signed-off-by: yangjq <yangjq@lenovo.com>
Change-Id: Iee5d2691954f960f203f4be8c82c9198304f5977
Reviewed-on: https://gerrit.mot.com/1387741
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Stylus Detector is a hall sensor.
Input_Name: pen_detect
Event_type: EV_SW
Event: SW_PEN_INSERTED
When stylus is off, it will report 0(stylus off);
When stylus is on, it will report 1(stylus on);
Change-Id: I7836c19f1142e9112b42d7d12ad788d19163d497
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1385729
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Submit-Approved: Jira Key
Check the factory image in bootarg in dts so that it can make decision
the first time when the driver is loaded making charging limitation
policy take effect immediately.
Change-Id: I3eb32d3cd252ad9abffab70aa249b41925f325e2
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1385578
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Return effective FCC for constant current in battery property
in PMI632 chip platform as SMB5 QC driver does not support
this property.
Change-Id: I71e2c1559fad0ff3dd5dcd1eb75b6ccb0f5711a6
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1385623
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
Enable USB detection function.
Increase the anti-interference ability after plugging in the USB cable.
Change-Id: I64ecb13f58e87f9f687d4ad3a6725884c7304bc7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1385264
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
Enable USB detection function.
Increase the anti-interference ability after plugging in the USB cable.
Change-Id: I8b7d6138513b02ade09b096935abfc8bbdf56df1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1385252
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Kernel 4.9 is not able to lookup existing debugfs
directories. Create a charger_mmi dir instead of
adding to the charger dir instead.
Change-Id: Ice155bc2eb60dc27b98c2af0876b9f9ced4f6f34
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1384240
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Factory sw usually use AC adapter to do Runin test.
They think power not off when finished test is a bug.
Change-Id: I28ce0d32c4e2c75c7328ac5f1158ebac039919bb
Reviewed-on: https://gerrit.mot.com/1382878
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
RF team add one elna for signal losing issue in sofia/Sofia_plus,
we need to enable it before TCMD test, otherwise will get wrong RSSI.
Change-Id: I0ac4d1f13fe4da7cbde14c331c4cd57eafad5b97
Reviewed-on: https://gerrit.mot.com/1382284
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qiu Feng <fengqiu1@lenovo.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
GPIO_70 used for Prox and TOF, don't disable it to avoid Prox can
not work when camera open and exit
Change-Id: Id28677ab24f664dc7af6777459ed7f2ccdece703
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1383266
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Chuanxin Guo <guocx4@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi:
Kbuild: If current product is Doha, FPS pose is 0 degree of angle
ets_navi_input.c: Set different key events for different FPS pose
Defaultly, the product mounts FPS with pose of 270 degree of angle.
But, for Doha, FPS has a right pose, i.e. with 0 degree of angle.
Change-Id: I051cfc96696f2a0527b5b8e8ea27ca56685ddbcc
Reviewed-on: https://gerrit.mot.com/1381158
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi/
ets_navi_input.c: Add kobject_uevent( , KOBJ_CHANGE) at the end of
sysfs_egis_init
To set Egis sysfs file nodes via /vendor/ueventd.rc, uevent should be
sent by calling kobject_uevent().
Change-Id: I1973bca7d4088e0271c3e37b7572ce45831819d7
Reviewed-on: https://gerrit.mot.com/1380409
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key