Commit graph

1,355 commits

Author SHA1 Message Date
Ryan Lattrel
0d96780b08 p938x_charger: return chip values with 0x
Return chip values with an 0x prefix so that the bash
init script can compare hex values with > and <.

Change-Id: If3c1ef37acf550433d114718a66b248d7b1e5e32
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442938
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-10-28 13:23:39 -05:00
Curtis Porter
6218ed77dc power: fix wrong charger presence detection
L(CR) (CR) we need to make sure to set intval
to 0 at the end of chrager presence detection because
it can report incorrectly while in sink mode(aka otg cable)

Change-Id: Ib7b93ec77929d4c738498fe3fee2e78d556661ce
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1438655
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 0a86b47264b81c699ac20613b3dbbd7a643708a2)
Reviewed-on: https://gerrit.mot.com/1444680
2019-10-28 09:36:35 -05:00
cuijy2
9e562a85c2 factory:add sx9331 interrupt line test for doha
add sx9331 interrupt line check node int_state
tcmd_send 009b03

Change-Id: I4187bfac87e829d2e3e2b9f19e84cbb8cd6dac65
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1445145
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-10-27 22:20:36 -05:00
haojl2
b30cf6743b goodix_gtx8_v1430_mmi: support DRM notification chain
TP:
In new qcom platform, LCD send notification though DRM chain, not fb.
Register DRM notification chain for TP suspend/resume.

Change-Id: Ib34bc796553cc3aa3411788de88049296f0a9bd7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442728
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-24 20:42:19 -05:00
yangjq
fb9df75ed8 aw8695: Use vzalloc instead of kzalloc
Sometimes memory is scarce, especially those continuous memory,
so use vzalloc to have more chance to allocate memory successfully.

Change-Id: I374d9009092701ba1c3d609ad05271af0739fd35
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1436053
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit c3499d1140811a8c1e8edfc3ef715170f8f98a1d)
Reviewed-on: https://gerrit.mot.com/1442611
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2019-10-24 02:16:26 -05:00
wengjun1
909586fb5f Sofiap: touch: Pen status notification to touch
- Because now we are using stylus on sofiap and this will keep
touch always on high sensitive mode which will easy to lead to
the problem such as ghost touch , residue points etc. So we add
a pen notifier to touch and then the firmware of the touch can adjust
the mode according to the status of the pen.

Change-Id: Idb333c38a2af08d8d9a7038b9a8c87f80bdefed7
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1441556
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-24 00:38:07 -05:00
huangjq9
5379d3d0f3 sensor: fix incorrect event report for stylus_pen
For the EV_SW type event, only the event value of 0/1 will be reported,
and other values are reported as value 1 reported.
If the status is unstable, the status of the report will be inconsistent
with the actual status.
Remove unnecessary events that reported value 2.

Change-Id: I304dc9632f026a8417d2ac87cf19be6e31f05ca4
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442158
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-23 20:27:50 -05:00
Ryan Lattrel
7626f5344e p938x_charger: fix todos and clean up
-Fix registers for the mode and the interrupt handler
-Add extra fields to assist in firmware flashing
-Update power_supply fields to the correct values
-Clean up debug messages
-Add initial BPP/EPP mode voltages and currents
-Add wakeup source to keep awake when charging
-Add sysfs hook to enable/disable tx_mode
-Remove unused code leftover from p922x driver

Change-Id: Ieaf95cf8a93440761e236c75443e730c9c89da0f
Reviewed-on: https://gerrit.mot.com/1436652
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Submit-Approved: Jira Key
2019-10-23 10:28:41 -05:00
Konstantin Makariev
5942749eed sec_mmi: use stubs for unavailable functions
For bringup purpose adding stubs for the functions from other DLKM
not available at the moment.

Change-Id: I91c42f0c4472db606b871b10a1c64217fd3fd635
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1441361
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-22 15:32:40 -05:00
Donghua Yan
64ef700824 input: misc: add dvdd flag for non-kungpow device
For device without kungpow, KPDPWR bark irq is recommended to
halt the kernel. But since this is a hard reset, a dvdd flag
(reuse the kungpow bit flag) is needed to indicate this is
an intended HW reset by s1 timer, even if s2 is not fired. In this
way, bootloader is able to detect correct power up reason (0x100000).

Dependency: BL need to detect this bit flag for power up reason
amendment.

Change-Id: If4f2cffc87bd75fd03fcb5cbf87cd90664eb71bf
Signed-off-by: Donghua Yan <a18317@motorola.com>
Reviewed-on: https://gerrit.mot.com/1439390
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2019-10-21 08:59:28 -05:00
wengjun1
8bf9ed035b Sofiap: Pen status notification to touch
- Because now we are using stylus on sofiap and this will keep
touch always on high sensitive mode which will easy to lead to
the problem such as ghost touch , residue points etc. So we add
a pen notifier to touch and then the firmware of the touch can adjust
the mode according to the status of the pen.

Change-Id: I328fbe973d960e0decc60b86e4d16140e66e2cb9
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1438179
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-20 21:07:29 -05:00
Weilong Wu
4c12252a36 dlkm: optional vibrator feature
Optional the feature of vibrator amplitude reduce
feature, use an dts configuration to decide whether
enable this feature on factory mode.

Change-Id: I12d5ad326ce2b666563eb0a5aadc6e0145445918
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1437337
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-16 02:34:58 -05:00
chenlj2
4b22a080af DLKM/sarsensor:sometimes avc error after reboot
sync sx933x patch to abov sar sensor code:
(CR) sensor:sometimes avc error after reboot

Issue:
Sometimes avc error after reboot:
avc: denied { write } for comm="capsense_reset" name="reset" dev="sysfs"
ino=54780 scontext=u:r:capsense_reset:s0 tcontext =u:object_r:sysfs:s0
tclass=file permissive=0 pkg=""

Rootcause:
class_register logic: -create sysfs dir 'capsense'
-send uevent 'add' to hal
-create sysfs file 'reset'
Most of times sysfs file haven't create while ueventd monitor 'ADD' to
fresh sys/class/capsense label as 'sysfs_capsense',
file under capsense will inherit /sys label ,which is 'sysfs'.

Fix:
Send uevent 'CHANGE' again to HAL,
so that relabeling '/sys/class/capsense/*'.

Change-Id: Iea5270830160e1edef2429ae11829eccbb388838
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1436924
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Submit-Approved: Jira Key
2019-10-16 02:07:32 -05:00
wangyq13
74a3cf4185 input: focaltech_0flash_mmi: Disable FTS_TEST_EN
This macro is used to enable factory test in driver.
But moto use jar for test, so it's useless.

Change-Id: Id612aae662d54a36b922169d397a0834426055d4
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1436897
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
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
2019-10-16 01:02:40 -05:00
wangyq13
4d441c012a input: himax_v2_mmi: Add single tap feature
himax_v2_mmi:
Add single tap feature.

Change-Id: Ie7b761d848aad027dcae67307c0f281f168168d8
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1436894
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
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
2019-10-16 01:02:35 -05:00
wangdw10
4882718779 vl53l0: update uevent after laser input entries created
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
permissions. But ueventd thread have ran before sys entries
created. In this case, sys entries owner and permissions will
not be set correctly. So After sys entries created, send an
update uevent to user space.

Change-Id: I268c61af7ca39abc4d8a71e573c91d3f0a96762c
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1436717
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jingjing Xiao <xiaojj1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-15 21:58:29 -05:00
wangdw10
2b2b920b5d vl53l0: update distabnce timing to 33ms
improve distance performance as we use 30fps preview

Change-Id: I257343153a2461808c2a62f17e3f0138fae19d6e
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1437255
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Jingjing Xiao <xiaojj1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-15 21:58:28 -05:00
Weilong Wu
499088dfa7 dlkm: aw8624: fixed abnormal vibrator issue
In some scenario, vibrator may can not stop immediately
because stop command was returned. use 5ms delay
to replace it and make sure short vibrator can work well.

Change-Id: I82720f0d031c7306e1b5f806aa5a380ccccb8eec
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1436810
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-10-15 21:46:37 -05:00
Wen Xie
4d7ceac3fc sensor:sometimes avc error after reboot
sync sx933x patch to sx9310 and sx9325:
(CR) sensor:sometimes avc error after reboot

    Issue:
    Sometimes avc error after reboot:
    avc: denied { write  } for comm="capsense_reset" name="reset"
    dev="sysfs" ino=54780 scontext=u:r:capsense_reset:s0 tcontext
    =u:object_r:sysfs:s0 tclass=file permissive=0 pkg=""

    Rootcause:
    class_register logic:
    -create sysfs dir 'capsense'
    -send uevent 'add' to hal
    -create sysfs file 'reset'
    Most of times sysfs file haven't create while ueventd monitor 'ADD'
    to fresh sys/class/capsense label as 'sysfs_capsense',file under
    capsense will inherit /sys label ,which is 'sysfs'.

    Fix:
    Send uevent 'CHANGE' again to HAL,so that relabeling
    '/sys/class/capsense/*'.

Change-Id: Ibe356ce4670bc33874f351b4371aec5e9d0c80fb
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1436726
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Lu Lu <lulu2@lenovo.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2019-10-15 02:31:38 -05:00
haojl2
efbe0ec3fa focaltech_0flash_mmi: Disable irq is gesture not enabled
TP:
If tp gesture is not enabled, disable touch irq when suspend, and enable
it in resume

Change-Id: I1a0973206e0bcd81c3dd020538c357b7913ad142
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1436140
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2019-10-13 23:01:30 -05:00
cuijy2
5ddcba53a1 sensor:change sx9331 enable logic
when enable channel
need enable all 5 channels

Change-Id: I64f5dd8d1eb172673185f4a0ee8233295bc67d41
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1425450
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-10-13 22:20:42 -05:00
Jiacheng Ou
b384a10446 sensor: modify sx933x kbuild
Some project no 'msm-*' under kernel dir,
modify kbuild to compatible.

Change-Id: Ie1c7697f004a746dbfe80a1557723e289427d421
Signed-off-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1436074
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-13 20:20:46 -05:00
haojl2
f5e7ca72cb nova_0flash_mmi: Change sensor flag into on-change
TP:
Change sensor flag into on-change sensor.
one shot sensor can not work normal for TDDI panel

Change-Id: Ia1a99650e0885187fea6bbcfdc36d4e484c4e17a
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1435388
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-10-12 02:22:15 -05:00
Jiacheng Ou
01ea848b31 sensor:sometimes avc error after reboot
Issue:
Sometimes avc error after reboot:
avc: denied { write  } for comm="capsense_reset" name="reset"
dev="sysfs" ino=54780 scontext=u:r:capsense_reset:s0 tcontext
=u:object_r:sysfs:s0 tclass=file permissive=0 pkg=""

Rootcause:
class_register logic:
-create sysfs dir 'capsense'
-send uevent 'add' to hal
-create sysfs file 'reset'
Most of times sysfs file haven't create while ueventd monitor 'ADD'
to fresh sys/class/capsense label as 'sysfs_capsense',file under
capsense will inherit /sys label ,which is 'sysfs'.

Fix:
Send uevent 'CHANGE' again to HAL,so that relabeling
'/sys/class/capsense/*'.

Change-Id: If6ddf3205a9f299e0617814d341827357ecb126f
Signed-off-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1434771
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key

Conflicts:
	drivers/misc/sx933x/Kbuild
Change-Id: I95404ee83cee74369af2c5b1a8e8152d3699300d
Reviewed-on: https://gerrit.mot.com/1435914
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-11 22:33:20 -05:00
haojl2
80dc7b44f2 focaltech_0flash_mmi: Change sensor flag into on-change
TP:
Change sensor flag into on-change sensor.
one shot sensor can not work normal for TDDI panel

Change-Id: I0a33ad017b2a11e86f3f437009904678509a9f22
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1435389
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-10-11 04:52:22 -05:00
Ryan Lattrel
1de11879a5 drivers: sx933x: add recal usb to Racer_turbo
Add config option to recalibrate upon usb insertion
for Racer_turbo target.

Change-Id: I6df5e56c5f8dca0982ef30b36b71e7b5b39aa7ee
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1433550
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-10-10 10:21:31 -05:00
haojl2
9964788faa goodix_gtx8_v1430_mmi: Add touchscreen class
moto touchscreen deiver need create some sys entries under
/sys/class/touchscreen to show touch vendor info.

Change-Id: I02bf3ce8a4067d86a734edcb5a536a16ffc339c4
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1434797
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-10-10 02:19:14 -05:00
Ryan Lattrel
9800f5c561 drivers: aw8695: add chip id 0x97
Add an additional chip id 0x97 to match evt
part change.

Change-Id: I2660c0f2694a8f4d5c1e3933ba44e02fe9542d86
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1432851
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-10-08 13:52:41 -05:00
Haijian Ma
2d9a9207f6 charging: add stop charging in STEP FLOAT
when in STEP FLOAT, charging will don't stop when current less than
charging iterm, so we add stop charging in STEP FLOAT.

Change-Id: I2c710dfd2b8026c57ca88a17b7d85cae7a241bbf
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1430072
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-08 02:46:51 -05:00
Liyun Zhang
0dcc5135db Revert "(CR): power: qpnp-smbcharger-mmi: Allow force higher temp limits"
This reverts commit 961bfb3740bf72bd9769158b2750229bf17515e5.

Change-Id: I74c10175f7803d25ecf7957a51d5b14e6c1312fb
Reviewed-on: https://gerrit.mot.com/1433039
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Qiang Nie <nieqiang@motorola.com>
Submit-Approved: Jira Key
2019-10-07 21:00:30 -05:00
Cesar Santos
4bd9556c01 power: qpnp-smbcharger-mmi: Allow force higher temp limits
For testing purposes and due to continuous hardware modifications,
some temperature values may provide incorrect values due to
thermistor positioning or calibration. Hence, performing runtime
temperature limitation sets for internal testing can avoid
unexpected behaviors, l(CR) charging speed limitations.

Change-Id: I5016cd2ddeb7c8c3afbeb1277a208dbc80853709
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1432920
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-10-07 15:42:56 -05:00
Ravi Vembu
a4d4dd47bb regulator: slg: Add a delay after toggling reset
Add a delay after toggling reset. Otherwise the i2c i/o
timesout and probe fails.

Change-Id: Idf5c485cc8a77e0e849fe2b5e0b55d8b91e5a7ab
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1432708
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-04 16:44:29 -05:00
Konstantin Makariev
023cf626b1 sec_mmi: fixing compiler warnings
Change-Id: Ie4a4ef9e159bec8ffd7cab86b3d6ecd34e5c4d61
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1431578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-02 13:21:33 -05:00
Ryan Lattrel
9321be4de3 power: p938x_charger: wireless charger driver bringup
Commit initial p9382 wireless charger driver. Firmware
programming and basic charging function.

Ported from: https://gerrit.mot.com/#/c/1141329/

Change-Id: Iee7913d57221cc13fd0bea902ce84671710d9a9a
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1418386
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-02 13:20:56 -05:00
liaohj
1929a78679 tas25xx_algo:add protection for tas25xx_set_profile
- fix StsHostTestCases - android.security.sts.Poc17_06#testPocCVE_2017_7369
- when sts test,  the profile_id is negative value.
  as <3>[   61.218757]  tas25xx_set_profile profile_id=-2147479279,param_id=0
   need to add protection.

Change-Id: Ia8eb4dc7a1a7ae869e3a254ed3cd0fa6b329c04b
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1431155
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-10-02 02:31:06 -05:00
Fernando Hortellani
8ad2f33e11 Fix cci_intf kernel module for 8250
CONFIG_SPECTRA_CAMERA has to be defined so that the
correct cci subdev is returned by cam_cci_get_subdev.

Change-Id: I98e4c8653fe50d88db58026509122261ce78fa9c
Reviewed-on: https://gerrit.mot.com/1428309
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2019-09-30 10:32:14 -05:00
Yan Zhang
92e5e859ae dlkm: add goodix fod driver
cherry-pick from (CR)
Goodix FOD driver is used for Goodix G5-GW9608
Fingerprint Over Display (FOD) sensor.

Change-Id: I31a45ec4239d63bcc520013e63ba7da1c900fb85
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1402926
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-09-26 22:46:49 -05:00
Konstantin Makariev
80f24245c7 goodix_gtx8_v1430_mmi: proper avdd/iovdd handling
Touch power supplies AVDD and IOVDD might not be always on and then
kernel driver needs to vote for them. Adding optional handling for
avdd and iovdd. Both power supplies can be configured in device tree

Change-Id: I9e22a4e1fe18c9d1e36defe7c98ce6c3852b722b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1428943
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-09-26 18:57:17 -05:00
wengjun1
ce77347141 DLKM: Sync focaltech_0flash_mmi code with bq-sh2019
- (CR): focaltech_0flash_mmi: set deep sleep when predict failed
- (CR): focaltech_0flash_mmi: set reset pin to 0 if vio is close
- Release all fingers when resume

Change-Id: Ia6b8169d560951c3407a8c2b28b2d21d071bf710
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1427799
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-09-26 02:09:07 -05:00
haojl2
d2b208e3c5 nova_0flash_mmi: return specific value when gesture on
TP:
When gesture is on, LCD need use different suspend command.
Return specific value to LCD to tell current gesture state.

Change-Id: I79e57f448d38d1077f86748d2cacf88e3a74b4e0
Signed-off-by: haojl2 <haojl2@motorola.com>

(cherry picked from commit aa605c8d93b9c8258ad3e2133894330aa7f99713)

Change-Id: I79e57f448d38d1077f86748d2cacf88e3a74b4e0
Reviewed-on: https://gerrit.mot.com/1426753
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2019-09-25 21:56:04 -05:00
Eric Jeong
017ea66e94 regulator: slg51000: add slg51000 regulator driver
Adding regulator driver for the device Dialog SLG51000.

The SLG51000 device contains seven compact and customizable low
dropout regulators and is designed for high performance camera modules
and other small multi-rail applications.

Change-Id: I871afe5c6b2f9e32e73696519983db33b04feeb6
Signed-off-by: Eric Jeong <eric.jeong.opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Ravi Vembu <raviv@motorola.com>

Mot-CRs-Fixed: (CR)
Change-Id: I871afe5c6b2f9e32e73696519983db33b04feeb6
Reviewed-on: https://gerrit.mot.com/1412454
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2019-09-25 18:39:43 -05:00
huangjq9
4efcb687cd sarsensor: fix usb_cal issue for a96t device
When the power state is changing, which causes the USB plug to be mistaken,
and the sar sensor is calibrated.

Change-Id: Ia844dd891bc1301c7fa2f73617db92ccbdb6a435
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1426418
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-25 01:27:50 -05:00
Konstantin Makariev
1b6602c55c sec_mmi: option to reset on resume
Enforcing SW reset on resume. Type of reset can be configured via device
tree option sec,reset-on-resume, which now accepts an argument. Type 1
correspods to HW and 2 to SW reset.

Change-Id: I751cfbe1d19a9e583def7e7889ee914a999bd542
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1425966
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-09-24 15:12:01 -05:00
Ravi Vembu
42ae217f7d stmvl53l1: Fix Compiler warning
Remove unused variable to remove compiler warning for laser driver

Change-Id: Ic45344db08ae125c00cb71621f8c63ee89293132
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1427326
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-09-24 14:50:02 -05:00
haojl2
97b44ebfa2 goodix_gtx8_v1430_mmi: Set FW name in dtsi
TP:
Moto TP FW upload script is not bringuped for this driver.
So set firmware name in dtsi for racer lite.

Change-Id: Ia65ddf142e01c08448e23e88ae8116e623c18ac1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1426485
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-09-23 10:36:24 -05:00
haojl2
ef333d8cde goodix_gtx8_v1430_mmi: Add ts_tools code
TP:
Add ts_tools code. Which helps to tuning TP FW.

Change-Id: I5262226b7e17a141cafc1d9ccd7a944e463b48f6
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1426464
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-09-23 10:36:19 -05:00
haojl2
5d423641e6 goodix_gtx8_v1430_mmi: enlarge config mas size
TP:
enlarge config mas size

Change-Id: Ia86024c08eeddb91540a94f2d694de4ae615ec60
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1426463
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-09-23 10:36:14 -05:00
haojl2
aee37f56c2 goodix_gtx8_v1430_mmi: update FW automatically
TP:
Moto TP FW upload script is not bringuped for this driver.
So update FW automatically when bootup.

Change-Id: Iabc14f37f0207bd535f25e02574ef9eefae8b358
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1426462
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-09-23 10:36:07 -05:00
haojl2
0ab2ef53fd goodix_gtx8_v1430_mmi: Add update firmware code
TP:
Add update firmware code

Change-Id: I2837a2b80dfaf11d265756eb07872fb9e9ce7721
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1426318
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-09-23 10:33:31 -05:00
xuwt2
5d98b519fb power: correct the registers address for pm660
Two function registers address form PM660 are different
with other PMICs:
PM660:
1341: USB_CMD_ICL_OVERRIDE
160B: POWER_PATH_STATUS_REGS

Other PMICs:
1342: USB_CMD_ICL_OVERRIDE
110B: POWER_PATH_STATUS_REGS

Change-Id: If1c2bcacf498281bf1b4156b65021e9b83c44041
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1426165
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-09-23 05:51:31 -05:00