Commit graph

989 commits

Author SHA1 Message Date
Weilong Wu
c78eab44a5 dlkm: ets_fps: fix build issue on kernel 4.19
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
2020-01-16 00:07:23 -06:00
xuwt2
34ee4922f1 p938x_charger: change tm mode address
-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
2020-01-15 15:15:37 -06:00
xuwt2
0329269ee2 p938x_charger: change the length of memcpy in fod_store
change the length of memcpy in fod_store

Change-Id: Ibdcedf3ae2afd1e12548a1916e69a49f67de9977
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1479581
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-01-15 15:15:32 -06:00
xuwt2
6b6a1d0b9c MMI: Add DC psy notifier
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
2020-01-15 15:15:27 -06:00
Cesar Santos
e3f32778f7 modules: power: Adding documentation to SMBMMI driver
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
2020-01-15 06:52:50 -06:00
Cesar Santos
dad532f85a modules: power: Change Heartbeat delay for fast mitigation
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
2020-01-14 15:46:36 -06:00
wengjun1
2f9acaba4b DLKM: Nairobi NT36672c touch bringup
- Add BOARD_USES_PANEL_NOTIFICATIONS for enable panel
notifications feature to fit for new display notifier callchain.

Change-Id: I16c7fef774d0b76d4a4d23ad39673f85bfff582b
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1481808
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-01-10 01:09:18 -06:00
Ningkai Zhuang
a25f827835 Update driver version to 2.0.4
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
2020-01-09 01:19:30 -06:00
haojl2
86d76624d7 syna_tcm_mmi_v2: Fix build ID and config ID
TP:
Fix build ID and config ID format.

Change-Id: I6577d3ce6e5c8b2471898bb1da74e6f6fd197dd7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1480187
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-01-07 22:12:44 -06:00
zhucc2
e50168cc66 Exfat:fix compile fail on kernel-4.19
For Kernel-4.19 add some new APIs, Exfat-nofuse need apply some patches,
or compile will fail.
patch list:
f93a47e641
e95c8847b0
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
2020-01-07 00:43:11 -06:00
Konstantin Makariev
7f7f562b77 aw8697: boost ram loop mode playback
Awinic suggested to boost RAM loop mode haptics playback.

Change-Id: I7b9ac1368809360ed6c38d3a624aeee9d24c1846
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1479394
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-03 16:38:31 -06:00
wangyq13
ebbb8b02c3 input: himax_v2_mmi: change factory self test codes
- Check himax criteria csv file first, if check error, then don't load
  factory firmware, exit self test process.
- Don't output massive logs, reduce factory test time.

Change-Id: I861b56433381cfb5c5c0c929203eb04f187808f1
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1478907
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-01-03 02:21:29 -06:00
liuwang2
43f6332b18 regulator: modify slg5bm43670 to support interrupt
modify slg5bm43670 driver to support interrupt process.
config its gpio1 as interrupt pin.

Change-Id: I13f658953865f0c65b49543d164bfbfa5f38f3c4
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1478954
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-01-03 00:43:50 -06:00
haojl2
f62becd435 sec_mmi: Fix zero tap gesture coordinate.
TP:
LSI firmware changed zero tap gesture coordinate. Update drive code to
meet firmware..

Change-Id: Id2df36b58f8efeeb2c4f58228542c705ca3f7644
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1478947
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-01-03 00:15:15 -06:00
wengjun1
d7da292cbb ft8756: Compatible with the way of gesture to report 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
2020-01-02 00:14:43 -06:00
wengjun1
4254e14398 novatek: Compatible with the way of gesture to report 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
2020-01-02 00:14:35 -06:00
ontim5
99014c1e2b input: himax_v2_mmi: add hx83102d driver
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
2020-01-01 08:45:06 -06:00
zhouwl
aa3a6cf3d8 ASoC: add Awinic aw882xx driver
Astro uses aw882xx chip for driving loudspeaker,
add its driver.

Change-Id: I28273397535050ce50a62ea14d14bb71749fb696
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1476953
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-01-01 05:53:41 -06:00
chenglong1
32c8429b8d regulator: Add wl2864c driver.
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
2019-12-31 03:10:38 -06:00
linhonglei
1ac4f19994 kernel/sar: update a96t driver to support two channel
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
2019-12-31 02:48:08 -06:00
litong
7a67d2b18b Register touchscreen class of synaptics
TP:
Access to synaptics touch through touchscreen unified interface

Change-Id: I353932ea46510a9f1d7357872238d073d1740ecc
Reviewed-on: https://gerrit.mot.com/1475154
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
2019-12-31 00:30:02 -06:00
wangyq13
47b0d7bd34 input: focaltech_0flash: enable FTS_POINT_REPORT_CHECK_EN
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
2019-12-25 20:13:06 -06:00
liuwang2
f67102c9bd racer: fix cci tools can not access cci-device-1
16A/OV8856 use cci-2, it use cci-device-1 and cci-master-0,
modify cci driver to support access cci-2.

Change-Id: I64192fe24c62d6e6791e68bab02476f2645ee63d
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1476655
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2019-12-25 19:56:32 -06:00
litong
51ea7ea97c Racer5G: system crash when Synaptics shut dowm
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
2019-12-24 21:50:25 -06:00
Cesar Santos
62b1018459 motorola: drivers: Add logic to PD charger detection
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
2019-12-24 03:12:43 -06:00
liuwang2
acf273cda1 regulator: separated slg51000 driver
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
2019-12-24 02:49:36 -06:00
timwang
4745d227ce drivers: slg51000: Prevent Driver from touching voltages
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
2019-12-21 17:15:20 -06:00
Konstantin Makariev
ec8059b5ef sec_mmi: single/zero tap report format change
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
2019-12-20 20:24:16 -06:00
liugy11
2182038d41 [racer]sx933x: add usb recal for cap sense
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
2019-12-19 23:38:35 -06:00
liaohj
491723adf8 modules:audio:tas2562:Turn off debug macro
There are too many logs at tas25xx driver.
Turn off debug macro to reduce debug info.

Change-Id: Ifaa77c0849b61af1752ecd919a5891bc5511b215
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1474536
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-12-19 20:09:26 -06:00
haojl2
d0cf96d55b touchscreen_mmi: create more sys entries
TP:
Create power, pinctrl, refresh_rate, chager_mode sys entries for
touchscreen class.

Change-Id: Ib89ec8f11a552422f24bfe8eba55e6639b527dd0
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1474458
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-19 01:26:20 -06:00
haojl2
91b889d6a3 goodix_gtx8_v1430_mmi: Use i2c device to register ts_mmi
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
2019-12-18 02:15:41 -06:00
litong
606b54a110 Set samsung touch screen name
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
2019-12-17 21:07:40 -06:00
litong
6f0a6e79df Create the methods to get touchscreen class name
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
2019-12-17 21:07:32 -06:00
awhite6
3764a015a2 aw8697: Add moto ringtone array
Add array of moto ringtone waveform binary file
names needed for RTP mode

Change-Id: I87fd5e7db7c68e28ef7c80a7430e1ecfca233916
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1472918
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-17 11:47:30 -06:00
Konstantin Makariev
2a2a992fd4 touchscreen_mmi: use primary and secondary
Use generic names: primary and secondary for touch drivers
registering with touchscreen_mmi class.

Change-Id: Ic790c665a894a2176b4757c9ca2eaafe9ac871d2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1472001
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
2019-12-16 09:28:40 -06:00
Konstantin Makariev
04643c7759 touchscreen_mmi: usb detection
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
2019-12-16 09:28:31 -06:00
Konstantin Makariev
1bec971f9f sec_mmi: touchscreen class based usb detection
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
2019-12-16 09:28:15 -06:00
Konstantin Makariev
97c0828acb touchscreen_mmi: generic gesture handling
Adding generic gesture reporting mechnism to touchscreen_mmi class

Change-Id: I551d58dcda8231032221f0b8dd41c40ff96a33c6
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471846
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-16 09:28:03 -06:00
Konstantin Makariev
899302cf9e sec_mmi: enhance class support
This change adds the following features:
1) generic gesture report via sensors mechanism
2) forced powerup calibration duplicated in vendor code

Change-Id: I4595d880728defc223e8e4a36eba906058ad3944
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471837
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
2019-12-16 09:27:16 -06:00
Ryan Lattrel
5924ddfcf6 p938x_charger: add thermal cooling device
Add cooling device that will disable tx mode
when overheating is set.

Change-Id: I833604df285b31a2d29109ad1d0420b671e6bb2e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469942
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-12-13 16:25:26 -06:00
Ryan Lattrel
4a1adcaafa p938x_charger: add notify calls for hal
Add sysfs_notify calls to tx_mode changed so that the
hal can poll on the file and push updates to fw.

Add sysfs notify call to rx_connect so the hal can know
when a client has connected via power share

Add sysfs notify call to error count so the fw can notify
users if there is an aligment issue.

Also add some code to read the system mode buffer
instead of blindly overwriting it and due to a bug in the
firmware, tx mode will turn off randomly.  The user would
not be aware this happened. Check every 2 seconds if this
happened and re-enable automatically.

Change-Id: Ifadecf5b820fd0a5e6becff1a3a7805a5ec96f00
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1466131
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-12-13 16:25:15 -06:00
awhite6
b626f7e340 aw8697: Use RAM mode for long vibration
Configure long vibration to use RAM mode instead of
CONT mode.

Change-Id: Ife3c08ce775d12796e6435ce8a95d7d7a3448410
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471982
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-13 16:14:42 -06:00
awhite6
fd2ce9474b drivers: aw8697: fix kernel panic on RTP
There was mixing of memory allocation methods, i.e.
allocating with vzalloc() and trying to free with kfree()

Change-Id: I8ae2627c1bb6431b44311bca093c671df162e91d
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471259
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-13 10:00:00 -06:00
Ryan Lattrel
886f673769 fixup! (CR): fix unused function in user build
set dc now is only used if there is a user debug flag,
move the function into an ifdef block.

Mot-CRs-fixed: (CR)
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Change-Id: Ia84c24c55e775bea7024dc11974b63226d6c0069
Reviewed-on: https://gerrit.mot.com/1471811
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-12-13 09:33:46 -06:00
litong
4032b6e3d8 Sec_mmi firmware update
TP:
solve the error that the firmware file could not
be found while firmware updating.

Change-Id: I0934c6b564e3208f16113981a7bd9a28da326385
Reviewed-on: https://gerrit.mot.com/1471544
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
2019-12-13 01:34:43 -06:00
haojl2
ff06bd69eb goodix_gtx8_v1430_mmi: register tp_mmi notification.
TP:
Register touchscreen_mmi notification function.

Change-Id: Ic168b20c48dfcf90322aae00bb8921c56093548e
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471516
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-13 00:32:02 -06:00
haojl2
2e5cf322c9 sec_mmi: add notification function
TP:
registure notification function to touchscreen class.

Change-Id: Ia1bae3939e1e8e9c3cb470f8a9f56addc52717b8
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1470977
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-12 22:49:00 -06:00
haojl2
0940f3493b sec_mmi: Porting gesture handler to sec_mmi_class.
TP:
Porting gesture handler to sec_mmi_class.
Can read gesture info when lowpower gesture is send from firmware.

Change-Id: Ide5d32927e5ddf33a7368e5affbb29738a12ec38
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471110
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-12 22:48:56 -06:00
haojl2
b68ad30820 touchscreen_mmi: add notification function
TP:
Add LCD notification notification chain.
Add freq change notofication chain.

Change-Id: I6fb9005a0ea27d6339345db3b640a83898e47ea6
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1470315
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-12 22:48:20 -06:00