Commit graph

535 commits

Author SHA1 Message Date
Ryan Lattrel
41d3bdfe30 muc_uart: reduce idle timer to 1 s
Reduce the idle timeout from 5 seconds to 1 second
in an attempt to limit the amount of time the uart
keeps the system awake.

Change-Id: I667922b8eafe91e434a68a40b92beeac8bd0467c
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1310926
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-02-19 18:09:32 -06:00
Konstantin Makariev
6d73ebc640 synaptics_mmi: enable erase_all in factory mode
Recent build issue with absent touch firmware prompted to add a new
test case. As erasing firmware is potentially dangerous, erase_all
will be only enabled in factory mode for TCMD to access.

Change-Id: Ia27593f85dd4d83cc327a81ded9ac7a4410e3220
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1307995
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-02-18 12:53:12 -06:00
Wen Xie
36cbda5bb6 haptic: update aw8624 vibrator driver
Bug2go turns on the vibrator,Kenel is in suspend process at this time.
After the vibration time is over,Kenel suspend the I2C bus.
Causes the driver to shut down the vibrator to fail.

Change-Id: If6a5c7ca42be7a55c17f45c47748f785dbc317b1
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1309316
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2019-02-18 03:33:56 -06:00
Balachandar Swami
aecce7a156 nfc: st21nfc: add suspend/resume support
Clock needs to be disabled/enabled in suspend/resume to avoid
current drain in device idle.

Change-Id: I1992447e0d0b53963762d71d17b675668d334252
Signed-off-by: Balachandar Swami <w60013@motorola.com>
Reviewed-on: https://gerrit.mot.com/1308561
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-02-15 15:22:01 -06:00
Wen Xie
7016c7d9cf haptic: revert update aw8624 vibrator driver
Kernel panic:
So revert "(CR): haptic: update aw8624 vibrator driver"

This reverts commit e9324b897bee9f301f91d46e95401342c9410142.

Change-Id: Ibc944b4a5a4427a13cc30384f94e376be75b0abd
Reviewed-on: https://gerrit.mot.com/1308803
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2019-02-14 05:07:30 -06:00
Wen Xie
5c5e843059 haptic: update aw8624 vibrator driver
Bug2go turns on the vibrator,Kenel is in suspend process at this time.
After the vibration time is over,Kenel suspend the I2C bus.
Causes the driver to shut down the vibrator to fail.

Change-Id: I881eb08efc0b7a1c9f934aa886f1eeab2da9d55d
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1307591
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2019-02-13 20:51:32 -06:00
Kaio Karam Galvao
9079f9067e Apply mot changes
Mot changes ported from SDM710 Android P:
(CR): Update VL53L1 ToF makefiles

Mot changes ported from 8998 Android O:
(CR): 8998: ToF sensor VL53L1 bring up
(CR): change netlink protocol ID
(CR): moto change for TOF_INT
(CR): update pinctl and regulator for power
(CR): 8998: To make laser sensor work on Nash DVT1B
(CR): moto changes on 7.2.1
(CR): implement sar function
(CR): turn off l22 when sensor is off
(CR): Apply moto changes based on new ST driver 8.0.0_b4.1.0_1268
(CR): adjust xtalk value per ST's request
(CR): fix laser autonomous mode issue
(CR): fix black target at 0mm range issue
(CR): [CTS] Nash ATT: 4 failures on Module CtsSensorTestCases
(CR): unlock ipp_mutex in ipp_in_process to avoid deadlock.
(CR): Set timing budget for SAR mode
(CR): Add default calibration

Change-Id: I52949c420cbb5c166b7b987f552d0e982e6398bb
Reviewed-on: https://gerrit.mot.com/1305297
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
2019-02-13 13:04:57 -06:00
Kalyan
4f6b53fba5 Upgrade M3 release for TOF
VL53L1 driver code from STM
Maintenance 3 release.

Modifications
1. Ambient level is now available in ranging data when no target is
   detected
2. When no target is detected the ranging data are set to fixed values
   and range status equals 255
3. New tuning parameter to choose number of measurement loops for the
   simple offset calibration
4. Support for new Xtalk calibration method(FullROI)
5. Code cleanup to comply with linux checkpatch(kernel version 4.14)
6. In Ranging/MultiZone mode, the input sub-system injecting data
   package format has to be compliant with requirements of QCOM Sensor
   Event data packing
7. In Lite/Autonomous mode, the input sub-system injecting is disabled
   temporarily
8. Support for Autonomous Low power mode in Linux driver
9. Deadlock fix (this was provided as a patch on Maint2 some time back)
10. Allow Tuning parameter update anytime

Fixes:
11. Code optimization in histogram functions saved about 4Kbytes of
    stack size
12. Improved accuracy in offset calibration functions
13. Improved accuracy in inter measurement period used for TIMED modes

Change-Id: I603d25d54a5f264eb415431ee3acecb74961a301
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Reviewed-on: https://gerrit.mot.com/1304907
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Submit-Approved: Jira Key
2019-02-13 13:00:31 -06:00
Konstantin Makariev
5ebb7fdebe fixup! (CR) synaptics_mmi: firmware upgrade with older bootloader
Original commit mistakenly took out a piece of interrupt handling
procedure. Getting this issue fixed

Mot-CRs-Fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: Icf41f2497b5b470d81713b5f9e1b25e68e7a7611
Reviewed-on: https://gerrit.mot.com/1307876
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-02-12 13:07:13 -06:00
Konstantin Makariev
e81d0de7c6 synaptics_mmi: firmware upgrade with older bootloader
Original change made to fwu_read_flash_status and fwu_wait_for_idle
functions unexpectedly created incompatibility with older BL
versions. This commit restores compatibility with BL version
6 and older.

Change-Id: I30d20fa6acd3352dd01ec3ac7b681297a046d699
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1306274
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-02-11 08:04:00 -06:00
Ryan Lattrel
2c0c776e55 drivers: qpnp-smbcharger-mmi: use orderly shutdown
User an orderly shutdown for factory kill instead of a
kernel power off.  The orderly shutdown will attempt to
call the reboot binary from userspace first, and then
fallback to kernel power off if it fails.

Change-Id: I38fc885547b31231fc30eb6bce7163f4e3dd0a24
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1306845
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-02-08 16:11:29 -06:00
Ryan Lattrel
4d52915d39 power: qpnp-smbcharger-mmi: remove ps unregister
Remove power_supply_unregister calls on shutdown. The power
supplies use devm register so it should not be needed.

This resolves warnings about reference counts on factory kill
and a potential race condition with power_supply_changed.

Change-Id: I86e78d9b685ba162fb5e5492c4f017227f287e3d
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1306182
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ling Jin <lingjin@motorola.com>
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-02-08 09:59:10 -06:00
Ling Jin
0d852b3738 Fix user build error
Fix the following user build error:

/motorola/kernel/modules/drivers/mmi_muc_uart/mmi_uart.c: In function
'mmi_uart_close':
/motorola/kernel/modules/drivers/mmi_muc_uart/mmi_uart.c:416:6: warning:
'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: mmi_uart.c:416
make[2]: *** [../../motorola/kernel/modules/drivers/mmi_muc_uart/
mmi_uart.o] Error 1
Change-Id: I156ea7cabddb21092c7dc024c28caa7066450d14
Reviewed-on: https://gerrit.mot.com/1306327
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-02-08 00:10:59 -06:00
Jarrett Simerson
6ae97ce49d ASoC: cs35l41: smart amplifier silicon errata fix
Fix for smart amplifier silicon errata that creates non-deterministic
PLL phase lock with relation to word clock resulting in erroneous
signal output timing. This is the root cause of high-rate AoU falsing.

PROPAGATED_From: (CR)

Change-Id: I292310ba06d90b0e927dd7c60c347078d9b04186
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1269866
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1302826
2019-02-04 12:12:01 -06:00
Li Xu
d21ad27df5 ASoC: cs35l41: Modify GPIO GLOBAL_EN control
Due to integrated circuit limitation,
use firmware to control GLOBAL_EN register bit
based on received GPI input.

If enabled, firmware, upon receiving GPI value,
will control GLOBAL_EN register bit accordingly.

Cirrus-JIRA-fixed: MMI-942, MMI-953
PROPAGATED_From: (CR)

Mot-CRs-fixed: (CR)
Change-Id: Ied87df36bf3f3914b419d472df7d095e8b1a2fbf
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1269398
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Patrick Gries <patgries@motorola.com>
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1302827
2019-02-04 12:11:55 -06:00
Ryan Lattrel
6595eeab48 muc_uart: add attr for muc fw vers
Record the muc fw vers when it is sent from the muc
and provide access to it from an attribute.

Change-Id: Ibbee1cf8c7c6ef7a6d936e8d08ff198d0d963d75
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1303136
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-01-30 14:02:46 -06:00
Kenny Kessler
8a1036ebec power: qpnp-smbcharger-mmi: Add Reverse Boost Range
The Reverse has been shown to also get stuck with VBUS above VBATT
The first check for the Reverse Boost fix was that VBATT > VBUS
so in this case it was not tripping.  Fix this by using a 100 mV
window to decide if VBUS and VBATT are close enough independent
of which one is greater.

Change-Id: I091e5aedd8a819fd7174d92907d252709a03b78f
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1302801
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-01-29 17:13:15 -06:00
Ryan Lattrel
12d1da775c muc_uart: add muc debug msg
Add message type for debug messages from the muc.
Print the payload to dmesg when it arrives.

Change-Id: I133609c9ff678ed385ab8ff773648a635a24c178
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1302761
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-01-29 14:36:36 -06:00
Ryan Lattrel
ca50551fda sx933x: add recal on flip
Recalibrate the capsensor when the extcon
flip device is changed.

Requires an extcon parameter in the device
tree node.

Change-Id: I7a7408a064620fdd67a55a7f2f877d4a3542bf00
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1290732
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-01-29 13:43:56 -06:00
Konstantin Makariev
d1231bf2d4 synaptics_mmi: f54 kobject and dynamic config regs alloc
Test reporting module creates subfolder that isn't associated with any
device. This commit defines kobject sysfs_ops to apply custom attribute
structure containing pointer to RMI4 data to all F54 show/store
methods. Config registers structures now dynamically allocated
individually for each driver's instance that allows full use of
config modifiers.

Change-Id: I103b64df418084dc8e713f643c0078256d9c79d4
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1297200
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-01-29 09:37:51 -06:00
Konstantin Makariev
9734079beb synaptics_mmi: re-enabling test report feature
MMI Synaptics driver now is capable of supporting test reports while
running multiple instances of the driver. Test reports used in factory
and an important part of Ghostbusters app.

Change-Id: I02a9d8b1151f810b90f83e02ec0d302755a15be5
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1295407
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-01-29 09:37:46 -06:00
haojl2
12c8c04b5c himax_mmi: release all events before suspend.
If there are some touch event not release before IC go to suspend.
Driver helps to report up events before suspend.

Change-Id: I02f43e42e65b93d555fedc6bead2c5959193f6ce
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1302438
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-01-29 01:09:01 -06:00
Ryan Lattrel
a18c80c759 muc_uart: clean up init errors and fix race
There is a race between the muc triggering a
wake event and uart init completion.

When the wake event wins errors such as "no tty"
will be seen.  Fix this by starting the uart
module before registering the wake interrupt
handler.

Also moves the ldisc (rx callback) for the uart
module to after the "set ready" so we don't
start processing rx messages before we can
send a response.

Change-Id: I83380eabfd7aa4dfb8b3fac7fb7c4d4718ef8034
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1297199
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-01-23 11:19:25 -06:00
Weilong Wu
525214583f haptic: update aw8624 vibrator driver
Update aw8624 driver to improve vibrator effect.
Add 1s vibrator when boot up.

Change-Id: Ida3efb4a8668960ef58bd69f77d0dc17f9d07d57
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1292975
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-01-23 01:12:42 -06:00
Konstantin Makariev
a16c8a9386 synaptics_mmi: packet registers access support
Access to packet registers was not supported in driver running
multiple instances. This commit provides a fix and allows
config modifiers to become re-enabled.

Change-Id: I20907f5d5c94fa724dbac7412bdfe31c0038a925
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1293968
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-01-15 18:09:06 -06:00
gongsc1
e8783cbd36 power:qpnp-smbcharger-mmi:Improve Factory Image Charging.
add dts param to make different power off behavior
by the new dts param.

Change-Id: Ida804b5fa445f08592a8972125a6326088a3ce06
Reviewed-on: https://gerrit.mot.com/1291485
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-01-13 19:31:52 -06:00
wunan3
12edbc9f14 capsensor:optimize suspend and resume process of sx9311 chip
-suspend,let capsensor enter sleep state
-resume,let capsensor enter active state

Change-Id: I34fa8a320def5e8a45c194f367ecd0ce5744a48b
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1289270
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2019-01-09 20:57:23 -06:00
Vlad.Karpovich
b777edbce7 ASoC: madera: Add slimbus TX channel.
Rearrange Madera codec slim bus map to use channel 131
as 4th channel for an audio capture.

Mot-CRs-fixed: (CR)
Change-Id: I6917ad47f3b33e655ff28304cb360e5ec2a17145
Signed-off-by: Vlad.Karpovich <Vlad.Karpovich@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1151551
Reviewed-on: https://gerrit.mot.com/1291626
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Reviewed-by: Vitor Queiroz Albuquerque <vitoralb@motorola.com>
Submit-Approved: Jira Key
2019-01-09 12:42:43 -06:00
Wen Xie
69b1495ecf dlkm: haptic: modify aw8624 haptic driver
Separate configurable constants in driver,
configure this constants in dts,
for compatibility with different projects.

Change-Id: I0989abccd49c67a2b3bb49f0f86e7356843f29b1
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1291303
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2019-01-09 04:15:15 -06:00
sunyue5
41cee75c18 exfat: avoid uniname accessing invalid address
In exfat_find_dir_entry, if there doesn't have a TYPE_STREAM(0xc0) entry
before TYPE_EXTEND(0xc1), it will cause kernel panic for the kernel poniter
uniname accessing invalid address

Propogated from OMR1.

Change-Id: Ic8063eafc1c458c96c18a96d58dacd8f33695bb2
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235768
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yue Sun <sunyue5@lenovo.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: yuedl1 <yuedl1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1290985
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
2019-01-08 20:40:12 -06:00
Weilong Wu
b5d7f01563 dlkm: haptic: add aw8624 haptic driver
Add new awinic haptic driver IC aw8624 driver.
It can be compatible with TI drv2624.

Change-Id: Ic58e3bd2891cb1d7c8e6f2025ea8e58f0586dcf6
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287918
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-12-29 03:08:32 -06:00
Weilong Wu
d58d7a9d00 aw869x: move aw869x driver to new folder
Move aw869x driver to new folder aw869x.
We will add another new awinic haptic IC later.

Change-Id: Iaed91bba93ad06f3cf8e19795ecac460e11cdb95
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287084
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-12-29 03:08:15 -06:00
Weilong Wu
e3407a7fa5 haptic: change drv2624 driver gpio request mathod
Change drv2624 haptic gpio request mathod from
gpio_request to devm_gpio_request_one.
This can make it easy to deal with the compatibility
with other haptic driver IC.

Change-Id: Iccdb31ab8718e442499cd1c7a27d26b78cd9a521
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287075
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-12-29 03:08:03 -06:00
yangjq
8153e3c824 aw869x: Add wakelock to make vibration stop on time
Without wakelock, i2c 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.

Change-Id: I821ef7deb848fd6376102885cfef2deb58741fcf
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1287662
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
2018-12-28 01:26:49 -06:00
chenlj2
07bda39e3a capsensor:optimize suspend and resume process of abov chip
-suspend,let capsensor enter sleep state
-resume,let capsensor enter active state

Change-Id: Ib866eefb0371a34dec976b230cc6b4c7813ac7bc
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287172
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Yongbin Chen <chenyb1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-12-26 21:05:52 -06:00
chenlj2
097219ed84 capsensor:add calibrate interface for table top detection
-add calibrate node in sys/class/capsense
-this node is for table top detection feature

Change-Id: Ice701a71a3ee01bd64391d7ecdcc616fb430a37f
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287016
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Yi Cao <caoyi1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-12-26 01:33:27 -06:00
xuwt2
dfe97e9f53 power: improve debug prints
improve debug prints
change some error words

Change-Id: I85b4856c72c0cc3f93eafbd926a6ad4f25000121
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1286760
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
2018-12-25 21:52:34 -06:00
xuwt2
74b456f42e power: improve error handling policy
-1, define PD reponds result
enum mmi_pd_pps_result {
	NO_ERROR,
	BLANCE_POWER,
	RESET_POWER,
};
if the result is RESET_POWER, that reset state machine
for recovery abnormal.
-2, ignore thermal mitigation when the pps power was tuning.

Change-Id: I6c7e9defa46818baad0b87c2f8362abd3a8ddd88
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1286752
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-12-25 21:52:30 -06:00
hujing3
573b779264 channel: input 3rd nvt tp bringup
channel: 3rd djn panel with new NVT IC tp bringup
add new nvt IC NT36525B

Change-Id: I0790e687feb112fdcd3ed3a2339a8e0d578a1855
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1286736
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-12-24 20:59:24 -06:00
Konstantin Makariev
9ee258d23e synaptics_mmi: add device identity
Indicate which touch driver is reporting state change by adding
device identification. Also fix press/release statistics to support
multiple touch ASICs.

Change-Id: I74246f2ff07e468de07a31b4fa2572bd679e1512
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1285326
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-12-22 22:18:56 -06:00
huangys
1baeff7ec4 extcon-madera: not input lineout if have mic
we found that tty device has big impedance of headphone output.
if we report microphone, then LineOut, the headset device will
be disconnected which is handled in WireAccessoryManager.

Change-Id: If1ba3207feff9204a53d46554031faf9be9213e7
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1286085
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-12-21 00:58:34 -06:00
hujing3
6f0074005e DLKM: focaltech tp firmware support for ft5446
surfNA: focaltech new ft5422u IC support
add new ft5446/5422u firmware upgrade logic

Change-Id: I91f8bd41f6ea4cc2d7cd8999e3d4e87ee8742918
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1285518
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-12-20 02:27:15 -06:00
Kenny Kessler
795b56e6aa power: qpnp-smbcharger-mmi: Soft fail on Missing
If a battery property fails to report then send a status 0
with -EINVAL for the value. This way the error will not cause
a mass reading of files to stop as in the uevent.

Change-Id: If9b014a8346b3f307da9a88e178d456a832a1a43
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1285347
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-12-19 11:10:15 -06:00
Kenny Kessler
e6cedf63be power: qpnp-smbcharger-mmi: Update QCOM Properties
The latest drop changed the battery properties.
Change the list so that it matches qpnp-smb5.c

Change-Id: I8Montana01ccee9fcf41db33174d3ebd512c0af2ba9c
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1285307
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-12-19 09:25:30 -06:00
Kenny Kessler
d7c39279f0 power: qpnp-smbcharger-mmi: Add Power Changed Events
Call the battery power_supply_changed at the end of the heartbeat.
This will; allow Userspace as well as loggers to catch changes done
during each run.

Change-Id: Ic3b39c3639c7Montana32e319acebfb9c59cc4760062
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1285306
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-12-19 09:25:26 -06:00
Konstantin Makariev
1306c7f1a4 synaptics_mmi: multiple touch class devices
Register multiple devices within touchscreen class to allow firmware
upgrade script to scan through them all.

Change-Id: I2103aa5f640a613cc2d79c4f30254251119cf308
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1284313
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-12-19 09:04:35 -06:00
Konstantin Makariev
02a47c23b4 fixup! (CR) synaptics_mmi: multiple instances of fw upgrade
Adding check if product line already includes v7 suffix to the original
commit

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I4e53000e4deaeba502eecef86063b767fe109f99
Reviewed-on: https://gerrit.mot.com/1284337
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-12-18 15:55:26 -06:00
Yoon (Seungyoon) Lee
e50396c203 modules: cspl: add mixer to switch Rx port for factory
Olson factory SW runs headset test over SLIMBus Rx5 on tinymix interface
but kernel driver can't control Cirrus SE module correctly since Rx port
is different with default case, which is SLIMBus Rx1.

As long as factory SW uses tinymix instead of AudioHAL interface, factory
should switch Rx port to control Cirrus SE module correctly.

Change-Id: I71111f30abc58d45ae8bcd4d0398b2e9dfa71d5b
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1284255
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
2018-12-17 15:55:31 -06:00
Konstantin Makariev
9b30ff54ec synaptics_mmi: multiple instances of rmidev
RMI device is utilized to connect to Design Studio tool. Original
rmidev code did not support multiple instances running concurrently.
This commit adds this feature

Change-Id: Iaada97a065b4516bc40240f3d1bf2faadec673cd
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1283410
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-12-14 15:52:14 -06:00
Konstantin Makariev
7b676b371b synaptics_mmi: multiple instances of fw upgrade
This change allows multiple instances of Synaptics driver to run
firmware upgrade independently

Change-Id: Ib8c67bd6193dc11bf8765c857288435a628f61c1
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1279737
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-12-14 15:52:06 -06:00