Commit graph

878 commits

Author SHA1 Message Date
liaohj
fb5e35ab7b audio:ti2558:add brown protection function
add ti2558 brown protection function
1. currently just have limit voltage setting:
a.ti,lim_th_max is the start limit voltage, when
voltage less than the voltate,
smart pa will decrease gain step by step.
b.ti,lim_th_min is the immediately limit voltage,
when voltage less than the voltage,
smart pa will decrease the min gain .

ti,lim_th_max & ti,lim_th_min defined at product dts.

2.how to enable.
we can set TAS2562 BROWNOUT PROTECT ENABLE On to mixerpaths.

3.when HW test the voltage ,we will set in dts and enable by mixer_paths.

4.If HW need to adjust the min gain, need add more code .
if there are the request ,need to achieve in the future.

fix some no function.
1.fix tas2562_codec_read & tas2562_codec_write no function.

2.fix Amp Output Level no useful.

Change-Id: I6e4be083063f009246d3a4a478c22fa6aee8467f
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1435926
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-11-06 23:59:45 -06:00
Ryan Lattrel
9d2273b8d9 p938x_charger: replace atomics with bits
Replace all atomic flags with bits, and ensure that
no one can call __pm_stay_awake twice with out a
__pm_relax first.

Change-Id: Ibabbd2991b7db3b3e4a08bfee621f8465f01c0bb
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450299
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-11-06 14:43:46 -06:00
Ryan Lattrel
96aabd67e1 p938x_charger: update on attach, increase voltage
Update power supply changed on attach to alert the
qpnp-smbcharger-mmi driver.  Also add getters so
smb5 driver can get wls current voltage.

Additionally, increase the EPP/BPP maximums to the
real expected max.

Change-Id: Ic03e51d6de74d1c2b8caffe4d00eed488f791519
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442838
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-11-06 14:43:42 -06:00
Ryan Lattrel
7904c427af qpnp-smbcharger-mmi: add wireless charging
Add wireless charging recognition to the smbcharger module.
When a wireless supply is attached indicate a normal
charging rate.

Change-Id: Iea39f5af9924b8759bd80e55b04b9d66de0a3557
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442837
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-06 14:43:37 -06:00
wangyq13
2188d41c89 nova_0flash_mmi: increase the size of fwbuf
Increase the size of fwbuf, there are some dummy bytes when do
spi read and write, cause kasan errors.

Change-Id: Ifab4c686c4b056ed2327c6b43c446f49be94b27a
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1449952
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-06 04:33:52 -06:00
haojl2
968871325d nova_0flash_mmi: enable irq by gester status
TP:
resture irq based on gesture function status, not by sensor flag.
This can make sure TP works normal all the time.

Change-Id: I095413b29d63319dda300c3b5f3c24e9e703416f
Signed-off-by: haojl2 <haojl2@motorola.com>
(cherry picked from commit 920337119a66daba4413d7eade7dc1885b2ec8f7)
Reviewed-on: https://gerrit.mot.com/1448176
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-06 04:33:47 -06:00
haojl2
1b609ecc23 nova_0flash_mmi: notify firmware when usb connected
TP:
When USB connected, notify this info to firmware.
This will help firmware to handle ghost touch issue.

Change-Id: I86ac9a721eb6fdca3cb3a9c38d1b55290f6b8175
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448175
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-06 04:32:54 -06:00
haojl2
ac8b973dac nova_0flash_mmi: update fw in thread
TP:
When TP resume, update firmware in thread.
This will increase screen on time

Change-Id: I956ac5c40337e0d635974e274d334c7098d42dc5
Signed-off-by: haojl2 <haojl2@motorola.com>
(cherry picked from commit a00b905f2606315cba8928d7d24ac1fb10013b07)
Reviewed-on: https://gerrit.mot.com/1448174
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-06 04:32:46 -06:00
huangjq9
decf93e1ba stylus_pen: enable interrupt handler after wq inited
- enable hall's interrupt handler need after workqueue inited;
   - fix the stylus_pen probabilistic cause of the kernel panic
     at startup.
- optimize the hall drivers's destruction process;

Change-Id: I02f455465e089e7822dca7f663c12fe955ea7603
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1449781
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-05 23:55:14 -06:00
Konstantin Makariev
11e9474c93 aw8697: add vendor suggested kernel driver
Awinic 8697 has unique features and is incompatible with existing kernel
drivers.

Change-Id: I1507b1e0a43c1c52a8c7663189d878f5d7cdd98f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447947
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-04 12:49:19 -06:00
Konstantin Makariev
791693adc8 msm_drm_notify.h: keep in dlkm area
MMI drivers use DRM notifications, so keep include files in DLKM
area.

Change-Id: Ie631ef2c7bcea77d2960a280eac51eb0aa159596
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448030
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Tested-by: Jira Key
2019-11-04 08:21:13 -06:00
yanyh2
5ab076b7d2 add PM7250B_SUBTYPE definition
Add the PM7250B_SUBTYPE definition in case Kernel qpnp-revid.h
does not define it in some platorms.

Change-Id: I7e32ff332dfb13ac0fc0387a42dc5ae596bf4d00
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447619
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-11-01 03:10:20 -05:00
yanyh2
f74a17a92a correct the charging state enumeration
There is no FAST_CHARGE_V5 for PMI632/PM8150B/PM7250B
so remove it from the definition.

Change-Id: I6b77ad9e947e6dec83059787e78b995c83e14d21
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447603
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-11-01 02:10:21 -05:00
yanyh2
868208ff28 support PM7250B
Add PMIC subtype PM7250B for battery charging
on SM7250 platform products.

Change-Id: I35d3c3a7aa7144b8ca3cd68dce4b75dce4b539e8
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447558
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
2019-11-01 02:10:13 -05:00
wangyq13
bd87473f10 himax uses two firmwares: daily use and factory
himax_v2:
Himax uses two firmwares: daily use and factory.
Daily use firmware includes more effect and gestures, so it's bigger.
We cannot merge daily use firmware and factory firmware,
it exceeds IC sram limit.

Change-Id: Icf2574bc9fbb7e20558b17dee3e898b7a96da0c3
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1447041
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-31 04:27:00 -05:00
wangyq13
a67591eff9 himax: merge patches from vendor, fix some potential errors
- set diag_cmd to 0 when resume, because when use adb to read rawdata,
  diag_cmd may set to other values, cause tp no function when resume
  if not set to 0.
- Delete FAKE_POWER_KEY_SEND, becuase we use single tap, and not send
  power key event.

Change-Id: I01c97ccb5b8734694695fd1f6e2acb2ab9e565bf
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1446449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-31 04:26:55 -05:00
liuyc20
9a990d58ea vl53l1 driver-version update to 13.1.1.2129
change list:
update vl53l3 tuning setting

Change-Id: I71c6d85efec5bb6b565fa320bdaabab9c3f2b994
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1427656
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-30 22:07:18 -05:00
Konstantin Makariev
b50e5b65f8 goodix_gtx8_v1430_mmi: fix kernel panic
There are 2 failure cases when core data structure gets released
and external modules have no knowledge of it. Kernel panics
attempting to address memory that was released already. This
change ensures core data pointer of external modules structure
only valied when device probed successfully.

Change-Id: I4d2ddbb9c8010aba113afd5bff56a1496502bcd1
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1446705
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-30 16:04:39 -05:00
Konstantin Makariev
5e5e732df9 Revert "(CR) goodix_v1430: load external modules only when probe succeeds"
This reverts commit b5745152b3a6f696506c7c28ad3431b0a9c6078e.

Mot-CRs-fixed: (CR)
Change-Id: I24feaadc62c435ffc60280a654abe7c97f7d3b00
Reviewed-on: https://gerrit.mot.com/1446704
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-30 16:04:18 -05:00
Konstantin Makariev
d6815c52e9 goodix_v1430: load external modules only when probe succeeds
Driver loads external modules asynchronously and keeps loading them even
when touch IC not present. This change will flag to insert routine
whether to keep loading modules or not depending on probe results.

Change-Id: Iade575c85d9760a4f76b21f18752f6c2535c0146
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444591
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-30 08:25:25 -05:00
Haijian Ma
bc7bd5087b power: revert "add work for charger type correction"
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c
so revert it in dlkm

Change-Id: I28f058fb2b074b52b40bf3df614b88cbbe03d3ab
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1445264
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-29 20:42:49 -05:00
Haijian Ma
6b50e2ea72 Revert "(CR): charging: fixed multiple rerun apsd"
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c

CRs-fixed:(CR)

This reverts commit a0c71ac3b034f0cbb6a600047851455da65b9b1f.
Change-Id: Ie312ace3d33bbf384abea29c51de6949888d894d
Reviewed-on: https://gerrit.mot.com/1445263
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-29 20:41:54 -05:00
Haijian Ma
050bd692b6 Revert "(CR): charging: fixed logic error"
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c

CRs-fixed:(CR)

This reverts commit b1102eb24c2caa51f8c5138aadb1ac3b2b7225a9.
Change-Id: Ieaec244e6036d9a9522290171635082f9339fb88
Reviewed-on: https://gerrit.mot.com/1445262
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-29 20:41:23 -05:00
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