Commit graph

819 commits

Author SHA1 Message Date
Yan Zhang
92e5e859ae dlkm: add goodix fod driver
cherry-pick from (CR)
Goodix FOD driver is used for Goodix G5-GW9608
Fingerprint Over Display (FOD) sensor.

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

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

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

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

(cherry picked from commit aa605c8d93b9c8258ad3e2133894330aa7f99713)

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

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

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

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

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

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

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

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

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

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

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

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

Other PMICs:
1342: USB_CMD_ICL_OVERRIDE
110B: POWER_PATH_STATUS_REGS

Change-Id: If1c2bcacf498281bf1b4156b65021e9b83c44041
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1426165
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-09-23 05:51:31 -05:00
Konstantin Makariev
635eb460c4 sec_mmi: enforce charger detection option
Make sure all charger detection code only executed when option is
enabled in device tree.

Change-Id: I1f195947313a874d534d8ea89833c17ec4ee6ee6
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1424713
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-09-20 09:34:57 -05:00
Weilong Wu
5e67ae4b6c dlkm: aw8624: update haptic driver
1. Support to call different seq wave on haptic.bin
   and make it as an dts option "vib_ram_config"
2. Update some patch from vendor.

Change-Id: I0381fe51fa3389eaba67a897d461b72ee42d7e0d
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1422693
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-18 05:52:40 -05:00
haojl2
f1579106a1 goodix_gtx8_v1430_mmi: load cfg file based on dtsi value
TP:
If dtsi set cfg filename, use this value instead of default filename.

Change-Id: Ifc4482a8bfa90e173b3b3360a5f3b480d259c41e
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1422709
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-09-18 01:39:51 -05:00
haojl2
8044cc9447 goodix_gtx8_v1430_mmi: Port goodix v1.4.3.0 driver code
TP:
Port goodix v1.4.3.0 driver code.
Only add basic touch function code.

Change-Id: I4b1fdb548de76c65ad18994ebb6b0362d3496db3
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1422708
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-09-18 01:39:46 -05:00
hechuang1
1a26b53811 Enable swipe fingerprint for notifications
Set Sofia FPS position as 0
Set Rav FPS position as 0

Change-Id: Icaa06e6e8443d7a672d372Montana0798fec4bdceceb
Reviewed-on: https://gerrit.mot.com/1423235
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-09-18 00:59:14 -05:00
wangyq13
7b9296be2a input: himax_v2_mmi: add compatibility for different panels
himax_v2_mmi:
Use /chosen/mmi,panel_name to support compatibility for different
panels, use different touch firmware and test csv.

Change-Id: Id60f9af95e075e83a8d1121cda22f5c98a8a7132
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1422872
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
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-09-17 23:53:17 -05:00
haojl2
cebf400acd focaltech_0flash_mmi: set deep sleep when predict failed
TP:
When gesture predict failed, restore IC into deep sleep mode.

Change-Id: I0469cd3cfb464e80e192a2ee62f4fc08db208d72
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1416389
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 e75dddff6d5c196de06f5cfc4d1e427164e5da92)
Reviewed-on: https://gerrit.mot.com/1417039
Reviewed-by: Hujun Liao <liaohj@motorola.com>
2019-09-17 22:20:18 -05:00
xiasd1
d832439aa0 Add sensor type 'double tap' to kernel
For support double tap gesture based on touch,
add type definition for virtual sensor 'double tap'.

Change-Id: I16e88e951946d89cf2ceb7885852972bfb01e59c
Reviewed-on: https://gerrit.mot.com/1422623
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-09-17 04:30:38 -05:00
yanyh2
fd106d73c0 add calibration_data node to laser sysfs
Add calibration_data node to laser sysfs:
/sys/devices/virtual/laser/stmvl53l1/calibration_data

Change-Id: I13b71671c81b3e0b9f0031e64866680f26161a12
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1420664
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-09-14 00:20:54 -05:00
Konstantin Makariev
9bee68c956 synaptics_mmi: keep power supplies on in suspend
When touch IC kept in LPM, it's imperative VCI and VIO power supplies
stay on. Driver won't turn power supplies off whenever touch IC is
supposed to stay in LPM. Will use splash screen mode flag to trigger
this behavior.

Change-Id: I07b5758fc31fb6a814ec41d70c40c5044cc55fd8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1420815
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-09-13 09:34:25 -05:00
Weilong Wu
7ee52787c8 dlkm: support different vibrator on aw8695
Change the vibrator work freqency as a dts option to
make different project can configurate different vibrator.

Change-Id: I1af4361249f507d6904054e9cdf9b88a55ea8ff1
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1421150
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-13 04:24:09 -05:00
chenlj2
8c05015b08 sar-sensor: enable the USB_CAL for Rav NA
Enable the macro of USB_CAL,
sar-sensor will be calibrated when USB plug.

Change-Id: Ib95e9a55801a39b85021a64ac57bbc1a170db4fe
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1420260
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-09-12 01:04:20 -05:00
huangjq9
07675b1874 sar-sensor: enable the USB_CAL for Sofia_NA/plus
Enable the macro of USB_CAL,
sar-sensor will be calibrated when USB plug.

Change-Id: Ifa90c54da8d22580975829f5c0c5ccaa0372fcd1
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1418438
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-11 03:05:28 -05:00
liuyc20
684f7bb43c VL53L1: kzalloc clent_object failed then free
fixed error logic code.
it should detect vl53l1_data->client_object not NULL
rather than vl53l1_data point.

Change-Id: If83c26a6550af58dd9b07cfe8f8422dc6f3d6f82
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1417028
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-10 23:46:57 -05:00
Sergio Vilela
b9cb43f337 Revert "Revert "(CR) utags: replace boot device with platform path""
still under discussion

This reverts commit 4e05273e518906a9f24ce0bbe832bef858208f9b.

Change-Id: Ia8c766489f2b281dd87de7da44080b8ea2ecf9a0
Reviewed-on: https://gerrit.mot.com/1419118
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Sergio Vilela <sv008@motorola.com>
SME-Granted: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2019-09-10 16:17:10 -05:00
Sergio Vilela
e8a0262efa Revert "(CR) utags: replace boot device with platform path"
(CR) - Chef_Q : Device is not booting

This reverts commit a9ae345822bc994facb913c6bd316474bf2cd4d3.

Change-Id: If3aMontana7c6ccfbf177cf42f0f49ce31a9ece19549
Reviewed-on: https://gerrit.mot.com/1419083
Reviewed-by: Sergio Vilela <sv008@motorola.com>
SME-Granted: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
2019-09-10 15:57:43 -05:00
a7301c
c08fc6ab9a camera: cam_cci: Update camera driver path
Details refer to commit in kernel:
1fbb537 msm: camera: Remove camera codebase from kernel project

Change-Id: Ib00a269a319960cb185efc4565d805c212666ab2
Reviewed-on: https://gerrit.mot.com/1418794
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
2019-09-10 10:47:43 -05:00
liaohj
6afcdf496b :ti2558 :disable smart pa irq pin pullup
1.disable smart pa irq pin pullup
- for smart pa irq pin, need defalut pullup
- currently,smart pa internal pull up and ap side donot pull up.
- it is ok for smart pa interrupt,but because gpio 100 is for boot config
- pin,so when warm reset, smart pa internal pull up will cause to
- enter 9008,no ramdump.
- change to ap side irq pin pullup,and ti2558 do not internal pullup.
2.fix right speaker no interrupt.

Change-Id: I823c10d7354c4a37014d879542fc2c7937600996
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1418606
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-10 03:37:18 -05:00
Konstantin Makariev
d58bd3c6de synaptics_mmi: allocate common patches once
Sleep and force update patches should be allocated once regardless
how many instances of the driver running.

Change-Id: I94262d172780740c5cb571de6ece8d9fcface618
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1418308
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2019-09-09 14:33:16 -05:00
haojl2
471271e046 input: ets_fpc_mmi: fix wakelock timeout value.
When interrupt comes, kernel need take 1500ms wakelock, make sure HAL
can handle this interrupt.
If CONDIF_HAS_WAKELOCK is not definded, __pm_wakeup_event is called.
For this function, seconed parameter is msecs value, so do not translate
this value by using msecs_to_jiffies.

Change-Id: I198e145a118f886676027df2fd966df169530604
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1418021
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-09-09 04:34:30 -05:00
Konstantin Makariev
551a2454aa utags: replace boot device with platform path
Platform path already available when init's second stage starts.
Boot device alias gets mounted when vendor properties already
loaded preventing OEM HW script from adding varant suffix.
Using platform path instead of boot device provide UTAGs access
early enough to allow proper HW variant application.

Change-Id: I923b78c3cfebdbdcf439207a18c28a4d1f891805
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1413601
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-09-06 16:09:01 -05:00
duqiu2
6509f42e3a wisl: rav: enable stmvl53l3 for rav
Rav use stmvl53l3 rather than stmvl53l1, so we
need enable it from code

Change-Id: Iba5d4bb11bb1a35303d62d397c6a0bc8d90caba1
Signed-off-by: duqiu2 <duqiu2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1415340
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-09-05 04:08:30 -05:00
Ravi Vembu
e2e7d3f512 cci_intf: Fix v4l2 sub dev index
v4l2 subdev index is not the CCI bus number, but the
cell index of the i2c master. Crude Fix to get this
working

Change-Id: Ib220f4207966236f65089590d9c503411f0c525e
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1416011
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-09-04 23:10:52 -05:00
Qiuliang Cheng
a6b1865e20 Egis/driver: Check authentication status before do display
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi: Add ioctl
command SET_AUTH_STATUS (0xD1), and check the authentication status
before call ext_dsi_display_early_power_on().

In the interrupt handle process of Egis driver, authentication status
should be checked before call ext_dsi_display_early_power_on().

Change-Id: I0cebb9b183f792c9bc308ec913740a26a4b1113e
Reviewed-on: https://gerrit.mot.com/1412387
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-09-04 22:23:46 -05:00
Jiacheng Ou
9cd96b9284 sensor:sar sx9325 add read rawdata interface
Sx9325:
add sysfs node 'raw_data' for debug

Change-Id: I80a6b9f4331a721aa06bcbfa7540a7e8280b3461
Signed-off-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414477
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-04 02:58:55 -05:00
haojl2
2ee82ec09e DLKM: touch: Sync nova_0flash_mmi code with bq-sh2019
Add following patches for sync with bq-sh2019,

- (CR): nova_0flash_mmi: Add double tap function
- (CR): nova_0flash_mmi: Add update sys entry
- (CR): nova_0flash_mmi: enable irq when double tap is enabled.
- (CR): nova_0flash_mmi: add touchscreen class

Change-Id: I8586ab7cb9652d0320ad535aab698b67e2f2b2f0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414361
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-09-03 20:51:50 -05:00
huangjq9
a143cdade2 sar-sensor: fix some issue about a96t
- fix the sensors enable/disable confusion;
- fix the initial mode is not in stop mode for a96t;
- fix the issue about the update work;
   the initialize(this) no calling under mutex_lock;
- fix the detection about above_detect(), the max time is 75ms.
   so, we need set the detct time to 100ms.

Change-Id: I070c908fcb8edadb4dad51fa7a749e912d19f0a1
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414619
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-03 09:22:49 -05:00
haojl2
bcb048ad74 focaltech_0flash_mmi: clear flag after lazy enable done
TP:
After laze enable is done, clear this flag.

Change-Id: I7bcfce54f4976f962a6443fe9962c1e2968b1ba1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414062
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-09-02 07:15:46 -05:00
haojl2
1d06f84613 himax_v2_mmi: clear flag after lazy enable done
TP:
After laze enable is done, clear this flag.

Change-Id: I378d5d33ab44f669f386f641342356ac24a63109
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414061
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-09-02 07:15:44 -05:00
yanyh2
cf6288f94f stmvl53l1: support calibration data dynamic loading
In order to support run-time power management with dynamic
power on/off, it has to support calibration data loading after
power on TOF.
if not,xtalk calibration data will change after ranging
and override correct xtalk calib data

Change-Id: Ia67e3bb806ea8295bb7829888c201f22a0c0b59d
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1407816
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 799a22316b6c3b8809a448ff1fb37db9514db9ab)
Reviewed-on: https://gerrit.mot.com/1408713
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2019-09-02 01:39:34 -05:00
wengjun1
a372d9688e DLKM: touch: Improve novatek 0flash driver
- Add dts configuration for change different resultion accroding
to different projects.

Change-Id: I5cb65dbeee24a450296c09a5df5145c017933fe0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1413351
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-09-01 20:59:01 -05:00
yangjq
3d0a6b21a6 aw8695: Fix an concurrent error rarely happen
When vibrating stop is received too soon after a start, the
vibrator may fail to work normally, which can be fixed l(CR) this.

Change-Id: I7400ed5616d18d02520de2affeae6556d5fc7f1c
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1413414
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-31 19:14:57 -05:00
haojl2
4c7d69b4f2 focaltech_0flash_mmi: report 0 when enable called
TP:
For palm sensor, report 0 when enable called.

Change-Id: Ib2d10a78abe41d02da731ccce75c449d30bf3175
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1412576
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-29 03:40:37 -05:00
haojl2
84dde58033 himax_v2_mmi: report 0 when enable called
TP:
For palm sensor, report 0 when enable called.

Change-Id: I6a3c554f0fdc4adbc4d46d8d3035664682e95222
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1412577
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-29 03:40:25 -05:00
wangyq13
48aa94e713 input: nova_0flash_mmi: add nt36526 code changes
nova_0flash_mmi:
Add nt36526 codes changes.

Change-Id: Ibc585e3d227f9df36f923ac73bc4ed0f195caf62
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1412021
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:46:36 -05:00
haojl2
9f8659ac96 nova_0flash_mmi: Novatek TP 0flash driver.
TP:
Initial release for Moto Defender based on SVN V4.18.

Change-Id: I66825b8962c6f4a187fa4eea4364015124118b40
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1412019
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:46:31 -05:00