Commit graph

949 commits

Author SHA1 Message Date
Ryan Lattrel
5924ddfcf6 p938x_charger: add thermal cooling device
Add cooling device that will disable tx mode
when overheating is set.

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

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

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

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

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

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

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

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

Change-Id: I0934c6b564e3208f16113981a7bd9a28da326385
Reviewed-on: https://gerrit.mot.com/1471544
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-12-13 01:34:43 -06:00
haojl2
ff06bd69eb goodix_gtx8_v1430_mmi: register tp_mmi notification.
TP:
Register touchscreen_mmi notification function.

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

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

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

Change-Id: I6fb9005a0ea27d6339345db3b640a83898e47ea6
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1470315
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-12 22:48:20 -06:00
Ryan Lattrel
513ad2ae53 p938x_charger: read current limits from dt
Read the bpp and epp current and voltage limits from the
device tree, and use the guaranteed power instead of the
potential power to set them.

Also use dc current now and dc current max so we don't have
a race with AICL.

Change-Id: Ic100e8e84ba2cf7a30095645b32ce573f2b0e47f
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471116
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-12-12 16:56:17 -06:00
Ryan Lattrel
248a089497 fixup! (CR): drivers: max170xx: fix reset on factory image
Reset on factory image requires another flag check in
the worker function to complete the reset.

Mot-CRs-fixed: (CR)
Change-Id: I54ccc9dbf2a80dfff4fd8e5f3632f0820750db4c
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469131
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-12-12 09:25:11 -06:00
Ryan Lattrel
35d672ec16 drivers: max170xx: reset on factory image
If we are a factory image, reset the fuel gauge in the
same way we would if in factory mode.

Change-Id: Iaab95a015e3893228a7b56ccc2aa77ea3a757213
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1466055
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-12-12 09:25:06 -06:00
litong
67189bd53e Show Panel supplier
TP:
Solve the problem that read the panel_supplier 
node is empty.

Change-Id: I23d0b0d0dc4936259c09f30f585759556658e2b8
Reviewed-on: https://gerrit.mot.com/1470240
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-12 00:15:43 -06:00
haojl2
20ae54a65d sec_mmi: register a weak function to fix symbol issue
TP:
Fix sec_mmi_gesture_handler symbol not found issue.

Change-Id: I052d3bd7a1368ff4b57029aeede1a693d5e78bce
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1470682
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-11 20:34:43 -06:00
Ryan Lattrel
aa1562b44b p938x_charger: Indicate online based on VRECT
Indicate device is online with VRECT, instead of
waiting for VOUT.

Change-Id: Iaaddd8477d3a74ed9462b4b4fbb5683690bacaaf
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469171
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
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-12-11 09:34:23 -06:00
haojl2
e677773854 sec_mmi: register moto touch class.
TP:
Register touchscreen_mmi to support firmware update, get panel and
ic info.

Change-Id: I1ff872092375918590e8d977ff61815eb5391f15
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469544
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-11 03:58:05 -06:00
haojl2
935c915013 touchscreen_mmi: create extra sys entry group.
TP:
If touch vendor driver need create extra sys entries for some vendor
special reason. Create a method to get this attr group.


Change-Id: I39482b504428ab915c8e2eda5db9f29495dbc5b8
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1470200
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-11 03:57:46 -06:00
litong
8b0324bd48 Synaptics updated driver code to V2
TP:
copy the <include/linux/input/synapics_tcm.h> to current path,
and solve the problem that the definition cannot be found.

Change-Id: I019fbcbb8df0c9435231f975b62e348a60bbb366
Reviewed-on: https://gerrit.mot.com/1470093
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-11 00:37:48 -06:00
Konstantin Makariev
03eed6f7fe fixup! (CR) sec_mmi: fix format conversion
Fixing compile error message

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: Idb2ff8aa3b724ae49356e2049bea6f9461d6da55
Reviewed-on: https://gerrit.mot.com/1469987
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-10 20:47:03 -06:00
Konstantin Makariev
2fe97f2b5e fixup! (CR) sec_mmi: fix format conversion
Get rid of unused variable compile error

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I42835e3dd0c81e0f095726b2d705cffa293e1ce8
Reviewed-on: https://gerrit.mot.com/1469956
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-10 17:46:35 -06:00
Konstantin Makariev
49e0db07c5 sec_mmi: fix format conversion
This commit fixes format statement missing conversion symbol.

Change-Id: I6c31916116a147377856f28f990e6bb67f71328a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469952
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-10 17:25:51 -06:00
Konstantin Makariev
8156ee601a fixup! (CR) sec_mmi: wakeup gestures support
Some branches missing panel notifier code. Thus need to make sure
driver's code is not using anything declared only in
panel_notifier.h include file.

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I9c7c90895284f71c6ae715f1b3008c1744e15c67
Reviewed-on: https://gerrit.mot.com/1469944
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-10 16:52:04 -06:00
Konstantin Makariev
27e9f6d054 fixup! (CR) sec_mmi: wakeup gestures support
Y coordinate MSB only needs to shift by 4, since it's already in
second nibble.

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: Ib5826cb9bf603474b3f5b36fbe28d1e890dbb0f0
Reviewed-on: https://gerrit.mot.com/1469931
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-10 16:07:09 -06:00
Konstantin Makariev
59da923193 sec_mmi: wakeup gestures support
Support wakeup gestures required for single and zero tap features

Change-Id: Ifc15207dcd57b2b775ec63f4c1ba51f4ad90a9e9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469723
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-10 15:21:51 -06:00
Ryan Lattrel
3294fe5535 p938x_charger: program fod and q factor
Write the fod values and q factor from the device
tree

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

Change-Id: I573bc40979c8168706109447419357848bb7432e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1467167
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-12-10 09:40:33 -06:00
litong
9c5394f8c2 Synaptics updated driver code to V2
TP:
The touch driver code is updated to second version
of synaptics.

Change-Id: Id460de3197aaee25cefeab918923212a484c8346
Reviewed-on: https://gerrit.mot.com/1468558
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-10 04:39:04 -06:00
haojl2
15670cff8d goodix_gtx8_v1430_mmi: update fw in moto touch script.
TP:
Do not update firmware when boot up if touchscreen_mmi is used.
Let moto touch script to handle firmware update work.

Change-Id: I6d0a7150cf6eb8be81d78b92885a8bf54327e13d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1468526
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Tested-by: Jira Key
2019-12-09 05:40:11 -06:00
haojl2
77189b4068 goodix_gtx8_v1430_mmi: register moto touch class.
TP:
Register touchscreen_mmi to support firmware update, get panel and
ic info.

Change-Id: If609d80076d1aee1aa3a509b8e4bfecb4f51498a
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1454625
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-09 04:46:27 -06:00
haojl2
75c9b13ad6 touchscreen_mmi: Add touchscreen class for moto product.
TP:
Touchscreen mmi contains moto touchscreen features.
For curent version.
1. Create touchscreen class
2. Create panel info sys entries.
3. Create irq, reset, buildid sys entries.
4. Create firmware update sys entries.

Change-Id: I6938eda4fd20dc4e483e68cc1926bd53402e2224
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447777
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-09 04:12:13 -06:00
haojl2
04d3cc75f8 goodix_gtx8_v1430_mmi: support touchscreen_mmi.
TP:
Only create touchscreen class if not defined touchscreen_mmi kernel
module.

Change-Id: I0ede7303b71197e6fababcc338857778fd17d96e
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1454624
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2019-12-09 04:11:47 -06:00
Hujun Liao
8f491c1f46 Revert "(CR): ASoC: add APIs to access digital volume in tas25xx algo"
we use dcv_pcm as ramping function 
instead of digital volume gain.
when adev_open ,init all control , digital volume gain control will cost about 2s.
delete nouseful digital volume gain control to optimze the init time.

This reverts commit 7e3f682085432db213d8f35d649fef11b8951ff0.

Change-Id: I137fc78b8f934a6f008d30fbed92b2bb3572387d
Reviewed-on: https://gerrit.mot.com/1468340
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-12-09 00:36:03 -06:00
awhite6
74517246b3 drivers: sx933x: add usb recal for cap sense
Add build config option to recalibrate cap sense upon
insertion of USB.

Change-Id: Ib774aa418d66cd769b5d1149d61b30619b9b4ed7
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1467066
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-12-06 09:31:47 -06:00
Konstantin Makariev
e581210daa sec_mmi: make dynamic refresh rate optional
Among the current products only Racer_turbo and Racer support dynamic
refresh rate capability. This feature needs to become optional
in LSI driver.

Change-Id: I669fef68fbd65f9227ceae4d3adb80091b60394a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1465946
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-04 15:58:56 -06:00
Konstantin Makariev
fb8cc8d8bf sec_mmi: force calibration on power up
Forcing calibration on power up helps with getting better aligned
base line signal. Make this option configurable via device tree for
backward compatibility.

Change-Id: I7fc2ea3176cbad97bcd3719bfc34628c7e6c2b02
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1464680
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-03 15:09:27 -06:00
Konstantin Makariev
1dba8e5e7f sec_mmi: refresh rate update support
LSI touch requires to update its register at the address 0x4c
with the value of effective display refresh rate. This commit
adds notification mechanism aloowing display driver to send
notifications whenever refresh rate needs to change. This new
feature is optional and can be enabled via device tree
property sec,refresh-rate-update.

Change-Id: I0ec213ad41fc2177364b61a1c6ea6250036274f6
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1461926
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-03 14:00:44 -06:00
Ryan Lattrel
73ff838453 p938x_charger: read epp capabilities
Read EPP power capabilities. Provide this information
in tx_capabilties sysfs file.

Also use this information to set the dc current limit.
A new sysfs entry has been provided at force_idc to
override this.

Change-Id: I27102a273ee14bc878a5026b99ebacb6fb23e430
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1461865
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-12-03 13:25:29 -06:00
zhouwl
af55ab1653 ASoC: tas2562 digital volume
According to CTO-Audio colleagues suggestion, former stereo products,
such as Lake, Doha, volume ramp only takes effect on the top speaker,
the bottom one doesnt need it. In order to align with former products,
they asked me change SofiaRow, left channel is the top one.

Change-Id: I83c16d2b5e3ce2c2c59f6383d892e429873fa90e
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1463746
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-29 02:54:25 -06:00
Ravi Vembu
5bcc95b1d9 regulator: slg51000: Set SLG IRQ to trigger low.
The SLG51000 internal programming configures the Device Interrupt
Request to trigger low. Change the driver to match that.

Change-Id: I7c2a68c1a77aaee71d95734cfdd40126d63573bf
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1461311
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-11-25 18:46:24 -06:00
Andrew Abbott
ccbefc824e Revert "(CR): MMI: Init batt health to GOOD"
This reverts commit 2740a7002d46061d719b3efd26c5b8dcaf649676.

Change-Id: Ib2e6bc528cbb99c3a505d5749bb718dca3c2c228
Reviewed-on: https://gerrit.mot.com/1460282
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-25 09:36:08 -06:00
Konstantin Makariev
7c5ca9a938 aw8697: support moto vibrator feature
Addding Moto vibrator feature allowing to sync haptics with
ringtone. This commit combines several changes from AW8695
driver.

Change-Id: I0709369dc30168dff056b05e1d618e9d22d5575d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1459175
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-21 16:03:31 -06:00
Konstantin Makariev
09bfb85b15 aw8697: decouple haptics and calibration wave forms
Awinic AW8697 uses special wave form for oscillator calibration only.
This commit decouples haptics and calibration wave form files.

Change-Id: I94d32e8ce472a1d8a62a2c0287645682d44077a4
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1459130
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-21 16:03:23 -06:00
Ryan Lattrel
90919f9fa4 p938x_charger: Only turn off from usb when charger attached
Only turn off from usb when a transmitter is attached.

Currently, if a usb cable is plugged in after bootup the
firmware will not flash because the chip will be stuck in
an off state.  Fix this by updating the wls on/off logic -

1) If the usb cable is plugged in and a charger is attached
turn it off
2) If the boost is on, turn the charger on no matter what.
If a charger is attached it will turn off again
3) If the usb cable is disconnected, turn it back on

Change-Id: If5beaefc7983d6ced4a889c02b9f335308b28f13
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1456618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-21 09:25:59 -06:00
Konstantin Makariev
fa1e9f712e fixup! (CR) sec_mmi: remove MMI_STOPSHIP
Cannot get rid of all stubs at this time.

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I9fef548871ce6d65ccd8c3ca32c784786b1d5bf2
Reviewed-on: https://gerrit.mot.com/1458687
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-20 16:25:20 -06:00
Konstantin Makariev
f0a1b04362 synaptics_mmi: fix clang errors
Fix errors and warnings to please Clang

Change-Id: I067048d25eca6e35624574ea466afe8616fc3648
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1458064
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-20 09:16:20 -06:00
Konstantin Makariev
91402c9907 sec_mmi: remove MMI_STOPSHIP
APIs missing at bringup stage were finally added. Thus removing
MMI_STOPSHIP label.

Change-Id: I747e30a02a4f3d782473fe347a3c26a7679fa751
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1458065
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-20 09:16:12 -06:00
zhouwl
165062903d ASoC: tas2558: add digital volume control
TI TAS2558 provides digital volume control(DVC_PCM),
it ranges from -110dB to +2dB.

Change-Id: Icf44af99d4d22fa8a364bc6f0baa9a6599887b04
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1456965
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-19 22:48:12 -06:00
wengjun1
7a906ba1ed dlkm: ft8756: Improve the fixed that touch can't works
Because now we found that when the screen is on, the touch has a
low probability of not working. It seems that the firmware of the touch
works abnormally, so change reset the touch to download firmware
when status is abnormal for recover touch function.

Change-Id: I4ffee9706012f3e63e124da5ac5cb31954ebdbde
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1458107
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-19 21:30:16 -06:00
wengjun1
40dea5aed3 dlkm: ft8756: Fixed the touch can't works when resume
- Because now we found that when the screen is on, the touch has a low
probability of not working. It seems that the firmware of the touch works
abnormally, so reset the touch when status is abnormal for recover touch
function.

Change-Id: I1f6f80cb06d5e04bb585e6646620f597757655f7
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1457062
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-18 23:51:57 -06:00
haojl2
8579a18472 goodix_v1430: reload touch cfg after fw update successfully
If touch firmare indeed need update, after update firmware successfully,
config file need reload to IC.

Change-Id: I3a9e2a2af18c9dc02416d04d5122674e1a4524b5
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1457015
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-18 20:09:28 -06:00