Commit graph

1,355 commits

Author SHA1 Message Date
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
Balachandar Swami
c8633cde17 Add Trustonic TEE driver module
Add the Trustonic TEE driver module to the kernel.  This is needed
to run trusted applications in the Trustonic TEE.

Change-Id: I24cf50b78f7dc1bb4085ba2cd979966e45957a79
Signed-off-by: Balachandar Swami <w60013@motorola.com>
Reviewed-on: https://gerrit.mot.com/1270005
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2018-12-11 11:45:45 -06:00
hujing3
e250309ddc arm64/dts: surf ft tp update
surfNA: focaltech tp driver update
fix NULL pointer crash issue

Change-Id: I7154ae202f09fc622a88e28411841db8c211102a
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1281380
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-12-11 01:09:53 -06:00
Ryan Lattrel
53d25de060 sx933x: calibrate on phone present
Limit the recalibration on phone power supply
events to present changed.

Change-Id: I6c6a49820ef93c3062c13c56aa3322b495ea40b4
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1279109
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-12-10 15:25:52 -06:00
Ryan Lattrel
0720b6ec84 muc_uart: add usb control
Add usb control message handling from the muc.  The
message will set the online power supply property.

Additionally, setting the online property will send
a usb control message back to the muc with the set
value.

Change-Id: If7ef2eecbf862cbad15fb339e52a8f8c30c4ae2a
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1279106
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-12-10 13:02:01 -06:00
Ryan Lattrel
9966367f76 sx933x: only sense enabled channels
When a channel for the capsensor is turned on,
enable sensing only on that specific channel.
Same for disable.

Previously, all channels were enabled when a single
channel was set to enable, and all channels were
turned off after every channel was disabled.

Enabling only the channels we need will reduce
scan time and increase performance.

Change-Id: I77e11b1a66b3cbcfbfdbb9752faecb53dd6a3ea7
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1269356
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-12-10 09:54:06 -06:00
dengwei1
73d2dc3bab channel: input update ilitek touch hardreset
input update ilitek touch hardrese
as vendor suggestion.

Change-Id: Ie15e674650bdaf364d164ffcb439662cfa731dfb
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1279215
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-12-06 00:58:44 -06:00
cmsantos
aa6fcaba4a power: smb-charger-mmi: Code refactor
Minimum changes were performed on this variable defines, in order to
correct typos, as well as to avoid magic numbers.

Change-Id: I3a94183f2cf28344d464cd4bea319a4897151e80
Reviewed-on: https://gerrit.mot.com/1275094
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-12-05 09:41:23 -06:00
lixp5
2d3acf4413 ASoC: cs35l41: Add a file node for TCMD to read CS35L41_GPIO_STATUS1
TCMD needs to check the connectivity of the CDC_LP_GATE line by reading GPIO1 status,
and CS35L41_GPIO_STATUS1 indicates the status of GPIO1.

Change-Id: I4a563cc228a455f9995fc92bfcf4b11cdfd6136b
Reviewed-on: https://gerrit.mot.com/1274600
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
2018-12-04 19:28:17 -06:00
Konstantin Makariev
4f16051c59 ldc2114_mmi: report raw data through debugfs
Replace character device with debugfs for reporting raw data.
Multiple instances of driver and raw data reports supported.
Source files moved to ldc2114_mmi folder to align with other
drivers.

Change-Id: I0357117962f5d492459091c28e8fe1cd403490a2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1277626
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-04 15:00:12 -06:00
jixj
8c6e814168 watchdog_cpu_ctx: don't show raw stack info if offset is a negative value
In some case, the low 15 bit of sp_el1 is less than 128 and offset is a
negative value, causing stack+offset is a invaild point.

[ 5.021619,4] watchdog offset=-128, regs>sp_el1=0xffffffc0f1ae0030,sp=0xffffffc0e8ffc030, stack=0xffffffc0e8ffc000
[ 5.021856,4] Unable to handle kernel paging request at virtual address ffffffc0e8ffbf80
[ 5.021867,4] pgd = ffffffc0e79a1000
[ 5.021877,5] [ffffffc0e8ffbf80] *pgd=0000000000000000, *pud=0000000000000000
[ 5.021928,4] -----------[ cut here ]-----------
[ 5.021938,4] Kernel BUG at ffffff804c405490 [verbose debug info unavailable]
[ 5.021948,4] Internal error: Oops: 96000007 1 PREEMPT SMP
[ 5.021958,4] Modules linked in: watchdog_cpu_ctx(O+) tzlog_dump(O) mmi_info(O) mmi_annotate(O) sensors_class(O) watchdogtest(O) utags(O) exfat(O) machine_ext_dlkm(O) machine_dlkm(O) wcd9335_dlkm(O) cpe_lsm_dlkm(O) wcd_cpe_dlkm(O) analog_cdc_dlkm(O) digital_cdc_dlkm(O) stub_dlkm(O) mbhc_dlkm(O) wsa881x_analog_dlkm(O) wsa881x_dlkm(O) wcd9xxx_dlkm(O) wcd_core_dlkm(O) hdmi_dlkm(O) swr_ctrl_dlkm(O) swr_dlkm(O) pinctrl_wcd_dlkm(O) native_dlkm(O) platform_dlkm(O) usf_dlkm(O) q6_dlkm(O) adsp_loader_dlkm(O) apr_dlkm(O) q6_notifier_dlkm(O)
[ 5.022044,4] CPU: 4 PID: 454 Comm: modprobe Tainted: G O 4.9.112+ #16
[ 5.022054,4] Hardware name: ocean (DT)
[ 5.022064,4] task: ffffffc0e78aae80 task.stack: ffffffc0e8fd0000
[ 5.022082,4] PC is at msm_wdt_show_raw_mem+0x158/0xcc8 [watchdog_cpu_ctx]
[ 5.022096,4] LR is at msm_wdt_show_raw_mem+0x150/0xcc8 [watchdog_cpu_ctx]
[ 5.022105,4] pc : [<ffffff804c405490>] lr : [<ffffff804c405488>] pstate: 60400145
[ 5.022115,4] sp : ffffffc0e8fd3830
[ 5.022124,4] x29: ffffffc0e8fd3830 x28: ffffff804c406460
[ 5.022146,4] x27: ffffff804c406478 x26: ffffff804c4063f0
[ 5.022167,4] x25: ffffff804c4063f8 x24: ffffffc0e8ffbfa0
[ 5.022188,4] x23: ffffff7fffffffff x22: 0000000000000000
[ 5.022209,4] x21: 0000000000000204 x20: 0000000008ae4000
[ 5.022229,4] x19: ffffffc0e8ffbf80 x18: a522d3ce044520af
[ 5.022250,4] x17: 0000000000000004 x16: ffffffc0f1ae8858
[ 5.022271,4] x15: ffffffc0e78aaf80 x14: 3d455a49535f4441
[ 5.022292,4] x13: 45524854202c3631 x12: 0000000000040900
[ 5.022312,4] x11: ffffffc0e8fd3580 x10: ffffffc0e8fd3580
[ 5.022333,4] x9 : 0000000000000004 x8 : ffffff804f392090
[ 5.022354,4] x7 : 0000000000000000 x6 : 0000000004467999
[ 5.022374,4] x5 : 0000000000000015 x4 : 000000000013c571
[ 5.022395,4] x3 : 0000000000000000 x2 : 0000000000040900
[ 5.022416,4] x1 : 0000000000040900 x0 : 0000000000008000

Change-Id: Id980828162f807e437ff67f3bb1fa2b17de4a425
Reviewed-on: https://gerrit.mot.com/1276251
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
2018-12-03 19:16:08 -06:00
Kenny Kessler
9d79beeef5 power: qpnp-smbcharger-mmi: Add VBUS OTG Support
Add the USB OTG interface so that other drivers can enable
the Output.  This is only going to be used by MUC devices as
the USB PD driver will handle enabling this regulator for
actual OTG cases.

Change-Id: I3e5984e4310fc56d75b77c5a08916abfacf17eea
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1276550
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-12-03 10:12:35 -06:00
Kenny Kessler
d8d40044c7 drivers: mmi_muc_uart: Add VBUS_OUT Support
When the MUC sends the VBUS_OUT command notify mmi_battery.
The mmi_battery will handle the Power switching.

Change-Id: I52fecb1683e7634b135a7e975588c1be849cb9c0
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1276549
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-12-03 10:12:31 -06:00
Konstantin Makariev
084dde7a4c synaptics_mmi: fix instance number
With added ability to run multiple instances of the driver, now all
named resources should change their name to reflect what instance
allocated them. This commit fixes the bug the original code had.

Change-Id: Iad3afefcb04b503d08152365b6be81fbe642d9e3
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1276014
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
2018-11-30 14:26:19 -06:00
Kenny Kessler
45d8d4f213 power: qpnp-smbcharger-mmi: Allow Wake on Charger
The previous commit stopped outright setting of the wake alarm.
Without that alarm, because no wake source is held with charger
present, it could be possible to sleep while charging for a period
that exceeds 60-70 secs.  To fix this ensure that the alarm is set
if charger is present.

Change-Id: I50cd409694cb51452c5ca902f64a5b62b94475ca
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1275889
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-30 12:13:03 -06:00
guoyf2
b0219ff89b fix tfa NULL ptr memory exception
For "NXP Volume" and "NXP mode" mixer, we need
to increase nr_controls.

Change-Id: I93e8a8d62908d8c8681fa10ff7efc3e96922b996
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1276325
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Jianguo Liu <liujg6@motorola.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Submit-Approved: Jira Key
2018-11-30 04:05:57 -06:00
huangys
dd9dd4ed04 extcon_madera: support lineout report
when the hp impedance is greater than 5000, we regcognize it as
lineout to instead the orginal headphone

Change-Id: I0a7843c4e8fb7db3f0d5b681210c24e15d56a59c
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1275817
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-11-29 21:14:04 -06:00
dengwei1
e40f911b5e channel input: update the reset ic sleep time to 100ms
update the reset ic sleep time to 100ms
as vendor defined on their common base

Change-Id: I0138620ce138fe26dfd4e3cd9d4e972602019522
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1276079
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-29 20:21:03 -06:00
zhouwl
e05f1c5aa2 ASoC: tfa987x: add volume control command
add mixer control for setting output volume, this method changes
TFADSP_FWK_Unmute, primary channel gain.

Change-Id: I70a29d017413e63cba92985f8e093f477774f850
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1272169
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Jonathan Eklund <jeklund@motorola.com>
Reviewed-by: Joseph Dwyer <josephdwyer@motorola.com>
2018-11-29 08:50:04 -06:00
Wen Xie
ac89b6f56d Channel row : audio: add TI smartpa algorithm
channel: support two tas2560 bin files
-tas2560_TI_row.bin for Channel ROW with smart pa;
-tas2560_TI_na.bin for Channel NA;

-add ti,spk_type_id to distinguish row and na bin files;
-close debug log.

Change-Id: I8ae7805db2e92c807b34f841dd1268db96ba6163
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1274052
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-28 20:44:56 -06:00
Kenny Kessler
a788daec12 power: qpnp-smbcharger-mmi: Disable Suspend Wakes
Add a module parameter to control whether we allow the suspend
wakeup alarm to be configured in the heartbeat.  This will allow
testing of the feature in case it is needed.

Change-Id: I3f3d0928289362e597c7cc3f20dbe529df4f62cd
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1275055
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-28 16:02:28 -06:00
gongsc1
b878a5f4e1 add sysfs of trig_wav_n for keys test
add trig_wav_n sysfs for trigger vibration
when release keys.

Change-Id: I25a07c270b04d32ce703dbecb43d5b9f4bbb5908
Reviewed-on: https://gerrit.mot.com/1272726
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-11-28 00:06:27 -06:00
xiaoy3
7e60834fb1 tzlog_dump:Fix the issue that hang in M logo after device crash
hardreset can not reset DDR issue, that lead to tzlog_dump_probe bad address

log : tzlog_dump probe failed
[    1.968067,6] tzlog_dump soc:tzlog_dump: tzlog_dump_size 30000
[    1.968078,6] tzlog_dump soc:tzlog_dump: tzlog_dump_addr eefa2000
[    1.968147,6] Unable to handle kernel paging request at virtual address ffffff808b1a60a8
[    1.968151,6] pgd = ffffffc0e7fa8000
[    1.968155,5] [ffffff808b1a60a8] *pgd=0000000000000000, *pud=0000000000000000
[    1.968189,6] ------------[ cut here ]------------
[    1.968193,6] Kernel BUG at ffffff828ce51310 [verbose debug info unavailable]
[    1.968197,6] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[    1.968202,6] Modules linked in: tzlog_dump(O+) mmi_info(O) mmi_annotate(O) sensors_class(O) watchdogtest(O) utags(O) exfat(O) machine_ext_dlkm(O) machine_dlkm(O) wcd9335_dlkm(O) cpe_lsm_dlkm(O) wcd_cpe_dlkm(O) analog_cdc_dlkm(O) digital_cdc_dlkm(O) stub_dlkm(O) mbhc_dlkm(O) wsa881x_analog_dlkm(O) wsa881x_dlkm(O) wcd9xxx_dlkm(O) wcd_core_dlkm(O) hdmi_dlkm(O) swr_ctrl_dlkm(O) swr_dlkm(O) pinctrl_wcd_dlkm(O) native_dlkm(O) platform_dlkm(O) cirrus_playback(O) usf_dlkm(O) q6_dlkm(O) adsp_loader_dlkm(O) apr_dlkm(O) q6_notifier_dlkm(O)
[    1.968267,6] CPU: 6 PID: 448 Comm: modprobe Tainted: G           O    4.9.112-perf+ #1
[    1.968271,6] Hardware name: river (DT)
[    1.968275,6] task: ffffffc0e7bc8000 task.stack: ffffffc0e7e5c000
[    1.968284,6] PC is at tzlog_dump_probe+0x1f8/0x580 [tzlog_dump]
[    1.968290,6] LR is at tzlog_dump_probe+0x1e4/0x580 [tzlog_dump]
[    1.968294,6] pc : [<ffffff828ce51310>] lr : [<ffffff828ce512fc>] pstate: 20400145
[    1.968296,6] sp : ffffffc0e7e5fa20
[    1.968299,6] x29: ffffffc0e7e5fa30

Change-Id: I70a5f2e3cd67bad6ce16732e23a90125adc1b8a3
Signed-off-by: xiaoy3 <xiaoy3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1273103
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-11-23 04:13:24 -06:00
dengwei1
ac018ef1ff channel input: add ilitek touch proc raw data
add ilitek touch proc file
so keypart can get the raw data

Change-Id: Ib445eef0bf68e676ab7a01aa3ee5bc6dc049547f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1271616
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-20 01:10:00 -06:00
a20023
153d10362d Fix Wmaybe-uninitialized warning
Set the value to variable state before it is used.

Change-Id: I240b754483a1d36fadb6759e5c223472d7909cf3
Reviewed-on: https://gerrit.mot.com/1271405
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Andrew Wheeler <awheeler@motorola.com>
Submit-Approved: Jira Key
2018-11-19 11:32:09 -06:00
Ryan Lattrel
1261aea618 sx933x: add cal on phone attach
When the phone is attached or detached from the
mod recalibrate the capsensors.  This uses the
power supply device provided by the muc uart
driver.

Change-Id: Ic7002da8301ea3a3d9e3740c1532a0876d95a903
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1269885
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-16 11:22:59 -06:00
Ryan Lattrel
da078cf7b0 mmi_muc_uart: add recovery bootmode
Add recovery boot mode enum to the bootmode
message.

Change-Id: I75a62b17e69358cac14560dd944f5a298bc04993
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1268597
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-15 09:53:32 -06:00
wunan3
8eec4e9c18 sar sensor remove calibration when display off
Change-Id: Ic70e126848b59ae86d864b226aaf7b4a377f1306
WHY:Not need to calibration when display off
HOW:Remove it.
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1268929
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
2018-11-15 00:09:25 -06:00
dengwei1
d4e70c0c3a channel input: fix ilitek touch fw ver
this change fix that
can not get the fw version first time

Change-Id: I2c63f32d0c210c3b0bfc1cde15dbedb2cd66e422
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1269454
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-14 21:07:09 -06:00
Ryan Lattrel
86b35199c3 muc_uart: add firmware upload
Add function to upload the firmware to the
muc on a packetbus request to do so.

Change-Id: I53d7444735ae95a945e6194b2e81eb3cd100f18e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1256019
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2018-11-13 17:35:13 -06:00
Ryan Lattrel
8ff2762f44 sx933x: Add usb detect cal to odin
Add re-calibration on usb attach/remove feature
to odin and fix it for the 4.14 kernel.

Change-Id: Ib5afce222155e268bd9cf58026effca9dae8cd07
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1267723
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-13 14:21:31 -06:00