Need to build DLKM using touchscreen_mmi class code as well as old
fashion way.
Change-Id: I2013c074b603ac1e048fc2c59dc19efc853808d5
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1486524
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Enforced calibration on firmware update might cause problems when
something is touching the screen while it runs.
Change-Id: I7296d3c00881ed482cfa5dadd16de2d09c935230
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1487884
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
The vast majority of RTP work was being done directly in
the irq handler. Occasionally, it would take eight or more
seconds to return from the irq.
Change-Id: I7332b9746efcfaac1d09b8c1cc8116da59138cd0
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1487522
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Remove the reset on init, it was initially used when the
interrupt did not function properly in early firmware.
Also remove the reset in disconnect, and instead just check
the status. And add a mutex to prevent the disconnect irq
from running concurrently with the status irq to prevent
races.
The VOUT and VRECT handlers in the IRQ were flipped in case they
are both true. We should make sure we handle it in the expected
order.
Change-Id: Ib835d1ba85127a69dfed3c08821aa928e9c0bf9e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1487334
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
The thermal subsystem will call this function on every
wake up or failed sleep attempt. Do not spam the log,
instead only report if the state changed.
Change-Id: I5c5f2b30333c754b334028444b93c8dcf5af32c7
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1486519
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
kernel module
add sar svdd regulator
sar sensor has tow power vdd and svdd regulator,now add svdd
Change-Id: Ia8d0c8a24f9d633e323d69da846ed1d19e0a7580
Reviewed-on: https://gerrit.mot.com/1484941
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
dt-gesture sensor was previously an ON_CHANGE sensor. This is
generally okay, but it can lead to the Sensor Service sending out
an old event to a new (second, third, etc..) client if there was
already a previous client registered for the sensor, and this is
not the behavior that is desired.
Change-Id: I3bc91c5271fedc83b11ee5028980cfea99dd6732
Reviewed-on: https://gerrit.mot.com/1484754
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add TX FOD write: write up to 6 bytes starting at register 0x00AC.
Configure tx parameters on mode change IRQ & bit 2 of mode reg set:
-write TX_FOD if configured
-write EPTRMPWRTGL to SYS_CMD (moved from p938x_set_tx_mode function)
Add handling for EPT modes. Reset after 3 POCP events, or 3 FOD
events. OTP will turn off on first event. All others will reset
the IC.
Additionally, if tx mode has recovered 10 times without being
turned off by the user, disable it.
Change-Id: I2e5d2b00e34d29225347964434f4a4dd0b898d6b
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1484737
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Most MOT batteries has 4.4V, but newer ones are 4.45V. Charging termination
current ("taper") is dependent on battery specification plus capacity testing
made by EE Team. So it can be something different than 97mA.
Change-Id: Idecf02dc8d7175ae803f093ca02164de8e6673d6
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1484667
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Get max finger siza major and minor value from dts.
If this is not set, use default value 255.
Change-Id: Ide50ca02521acdb02529764e061deb689956197f
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1484433
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Adding sysfs interface to control grip suppression in run time
into LSI DLKM.
Change-Id: Id7a9e8df73c815e56093acdbb1dd5602358f58eb
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1482861
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
With the new firmware we no longer get an interrupt on
rx connected changes. Instead poll for changes in the
output current to determine whether we are charging a
client device.
Also add an overheat state to rx connect to report to
the upper layers when we are disabled.
Change-Id: Ie643bd821f2266a7e2be615ca800c95d983db23f
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1482096
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
New kernel change some API and we need to make some
change on Ets fps driver to match it.
Change-Id: Ia16be9e8e02f99ebfee723644ed1d98abc6356e0
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1483695
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
-1, tx_mode_reg address is 0x69,
the value of enable is 3, and disable is 0
-2, add TX_RM_POWER_TOGGLE setting in tx_mode
the tx mode will shut itself down whenever OVP or OCP excetion occrs
-3, change SYS_CMD_REG to 0x4e
Change-Id: I15e94cc4f944ef94f60b87c3de1415b397e768ed
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1480220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
The tree modules(p938x, smbcharger-mmi, qpnp-smb5) work
togegher to handle the logic of wireless charging.
In smbcharger-mmi, MMI_HB_VOLTER will hold dc suspend until
heartbeat work detect DC present,
In qpnp-smb5, dcin-plugin irq handle DC present status.
they are all triggered asynchronously in parallel,
and the DC present is always active after p938x VOUT_ON has been set
for a while.
And yet, at this point, smbcharger-mmi's heartbeat work has been
triggered by wireless psy change when p938x is VOUT_ON.
This leads to MMI_HB_VOLTER hold dc suspend in a minute to wait
heartbeat schedule again by itself
Change-Id: Idc8b62fa47975daeba3f0875d7715771fa8141a8
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1479568
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
Charger driver has a lot of specifics that having a documentation would
heavily support understanding. This is a first version, describing
which DT properties are used by it, as well as explaining the
JEITA/IEEE Thermal Charging Limitation compliance algorithm.
Change-Id: I2418d84378c2430596b0eb6d8456a207860fc09f
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1481730
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Original heartbeat delay was 60s, which makes thermal mitigation while
charging too slow. Changing it to 5s makes it notice battery
temperature change and limit charging current and voltage much faster.
Change-Id: Ib43dba3db18f3509afe1ab448d5f35c9bd33a16e
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1483570
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Support new ioctl command and compatibale with old one
Add interrupt control to solve int can not wake up system issue
Change-Id: I3229f343c359ec6075739ea3e2d30554b07052a4
Signed-off-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1481162
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
For Kernel-4.19 add some new APIs, Exfat-nofuse need apply some patches,
or compile will fail.
patch list:
f93a47e641e95c8847b0
Change-Id: Ic1737e3ea09ece27fce7cb969b838e50d9569ffe
Reviewed-on: https://gerrit.mot.com/1478458
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
- Since we noticed that some projects need to report not only one type
of touch gesture and touch hal has been changed on bq branch, so if
we still report instance the single tap should not be work properly. So
add report function key to fit for the hal's change.
Change-Id: I14511e3cb95dfda2f188ad587ffedd300579384a
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1477339
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
- Since we noticed that some projects need to report not only one type
of touch gesture and touch hal has been changed on bq branch, so if
we still report instance the single tap should not be work properly. So
add report function key to fit for the hal's change.
Change-Id: I8cf83493db1d1ff20ee40bbd8414f0130d1bde1e
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1477814
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
input/himax_v2_mmi:
Add HX83102D driver. HX83102D is different from others, so need
to add CODE_OVERLAY and its own drivers.
The first TP is hx83102D without flash
Change-Id: I68df2f1cc365041367de75ef8b52cecf677c70d0
Reviewed-on: https://gerrit.mot.com/1478452
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add driver for wl2864c which will be used as camera/glance external
power supply.
Device tree please refer to:
https://gerrit.mot.com/#/c/1477679/4/qcom/lito-nairo-common-overlay-base.dtsi
Change-Id: Ic852a9cfd7c3fcae76d5449cd458363e336eaf20
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1477678
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shenhuai Huang <huangsh4@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Modify driver files and read properity channel number node
Distinguish two channel number or three channel number
Change-Id: I9a00992c9875e94fe00711e92d6f74121327fb6b
Reviewed-on: https://gerrit.mot.com/1478286
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <honglei.lin@ontim.cn>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This function can fix residual reporting points, if host fails to
read the tp reporting data instantly because the following two
reasons:
1) host lost interrupts
2) host interrupt function process slowly sometimes
Change-Id: Ie914f2b2463309f90ad05b611597e2b1bfe84ca1
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1475055
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
Solve the problem of system crash when
the synaptics touch is shut down.
Change-Id: I2e483d2a1ff27cb5a2607611843c414dddd87fa9
Reviewed-on: https://gerrit.mot.com/1476476
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Until now, logic only accepted "Turbo Power" as anything higher than
2500mA, and PD having 15W (9V/1670mA) or 18W (9V/2000mA) would not
trigger such condition, being interpreted as Normal Charger.
New logic adds to Turbo anything higher than 8.5V, so future 12V will
also match such changes.
Change-Id: I3a4ff8eae094869d798f9cb6e4e72f7290cbbbac
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1465382
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Racer use slg5bm43670 driver, it should be separated from others.
Racer_turbo/Smith use slg51000 folder, and Racer use slg5bm43670 folder.
slg5bm43670 driver is provided by FAE, it has interrupt issue,
it will be fixed by updated driver later.
Change-Id: Ibf87d63d02621bf6fb3dfbd6bc16fa437ef6935f
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1476364
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Default voltages on reset on slg51000 pmic are the expected voltages from
hardware so there is no need for the driver to set the voltage. Set via
device tree bool
Change-Id: I48ed538f0edf4c172a282c166b65fb3b00f3c383
Reviewed-on: https://gerrit.mot.com/1475733
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Jian Luan <jamesluan@motorola.com>
Submit-Approved: Jira Key
LSI came up with reporting MMI gestures via Gesture Event Type VENDOR
(0x8). Single tap has Gesture Event ID (0x1) and zero tap has Gesture
Event ID (0x2) followed by coordinates values.
Change-Id: I1c3b6e6e96dadd2c7f8281378f7f1257f743a4cd
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1475704
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add build config option to recalibrate cap sense upon
insertion of USB.
Change-Id: I13b9f9ae71e232d1dbd2cc3de9cb7a683184131c
Signed-off-by: liugy11 <liugy11@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1474494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
TP:
touchscreen_mmi need read device device-tree node.
So must use bus device to register ts_mmi.
Change-Id: I26edf7bb276e8d052bf228d11b2e57abcdb5e359
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1473718
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
using the touchscreen_class name to
set the samsung touch device name
Change-Id: I45a1e2832a9f9071b009a72e01f6279f214ae6bd
Reviewed-on: https://gerrit.mot.com/1473396
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
Add get_class_fname methods to get class name
the name is provided to vendor.
Change-Id: I1984af824bb1d59b8d736c59b327619b89bb010b
Reviewed-on: https://gerrit.mot.com/1471685
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Added USB detection to the class code to handle charging source
bit setting.
Change-Id: Ic947504509b454150b7067ceb31786c5d29296b2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471999
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add support for USB detection done in touchscren_mmi class code.
Change-Id: I61fbe22a6850baaf8ae5153fd1e283de13aea94f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1472006
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key