Because pinctrl names are same with another touch driver and GPIO pin
numners are not same,so make compatible for another pinctrl name.
Change-Id: I42ad2a1f39f108384ee64585b24c5855a34f59e7
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2379912
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Added sysfs interface to set max PPS for FULL and PROLONGED
sequences. Also max PPS for 2.8 pitch has changed to 1800
Change-Id: I76d6a000f9b99c30727916368df940dd5ab163fe
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2377673
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
As HW requirement, 50W dock fan speed should be 4000 r/s. Or
there will be some problem for noisy or structure stability.
Change-Id: Ifd686225940fd37e313f5a7eeb2912c4d35768d5
Reviewed-on: https://gerrit.mot.com/2376077
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so we get the firmware and ini config file via request_firmware() and
write test result via procfs node.
Change-Id: I7fdfa40f454a6fcb9ce69d0e4a9cd1b7caf9a62b
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2375413
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Added handling for the following operations whether they time out
or come short, e.g. incomplete in some way or another:
1) initial position detection and transition to known
position if necessary
2) transition from one known position to another
In case (1) when initial position cannot be determined, enforce
withdrawal to COMPACT.
In case (2) when destination position is not reached at the end of
transition sequence, keep driving with max torque. Panic if high
torque transition recovery fails to allow for traces collection
Change-Id: I990888baa2f14919793934eb5dbf9d255d2e5c20
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2374097
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Since some platforms don't have BOB power supply, if no BOB power
source, the BOB on schematic is stands for connecting directly to battery.
Most of WL286xC chip selects BOB as input power supply for LDO2~LDO7,
when software doesn't have shutdown handler, LD02~7's input power supply
is always there, there will be high risk of current leakage after phone power
off, so force disable all ldos before phone power off.
Change-Id: I576ae332befd8285896c1373262cfb464f8e0402
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2373662
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Pengfei Qiao <qiaopf1@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Setting time out for a transition creates a noticible delay between
end of sequence and necessary corrective action. Instead driver will
maintain a flag to indicate whether position was properly detected
based on sensors data or not. Corrective action will follow
immediately upon sequence ends and flag still indicates that position
was not detected.
Change-Id: I894f7c0638760c79dc0780a42f46bda6aadc63c9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2367357
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
The feature of Moto 50w dock requests some file points from wlc driver,
so we should impleamnt them.
Change-Id: I265756f9dd2c4ab06b8114641513c1013b42dd54
Reviewed-on: https://gerrit.mot.com/2355232
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As qc2.0 detected process will increase vbus to 9V, so
icl*vbus=13.5W,so it will report turbo in detected process.
So revet it.
Mot-CRs-Fixed:(CR)
This reverts commit f348d14e72872565376b1b4ad2138f15738c4c14.
Change-Id: Ib643f2759fca7139fea4325a40f92b96a0b46b6f
Reviewed-on: https://gerrit.mot.com/2367716
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As qc2.0 detected process will increase vbus to 9V, so
icl*vbus=13.5W, so it will report turbo charger in detected
process, so revert it.
Mot-CRs-Fixed:(CR)
This reverts commit 8c22d82f275e606fd1e508181265cf5e05a665fe.
Change-Id: I0a553d2118df5da06dc339c110f1c5d5da435334
Reviewed-on: https://gerrit.mot.com/2367715
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Unify the log output of the SAR sensor,At present,
I find that SarSensor has too much log output,
which will affect the startup of Bringup phase.
modify dev_info to LOG_DBG
Change-Id: I35331976db7d0dfb0694f472649b7e09a42a6cc2
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2367671
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Normal mode:
In case corner area mistake touch when phone is on horizontal screen
state,when phone rotate left or right,FrameWork will send rotation and
corner suppression level, then driver will send switch command to
IC,Firmware will disable corner area touch according to its own logic.
Change-Id: Ib6864cf2a8027beea2066c41e2441359f52d20e4
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2363420
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Because /sys/kernel/debug will not be mounted on user build release,
it's hard to debug power issues due to the lack of wakeup_sources
system file node which is used by Battery Tracer.
Add /proc/wakeup_sources for Battery Tracer to use
Change-Id: I5b6774a25cda4d6344fbe266e8effb53f478edd7
Reviewed-on: https://gerrit.mot.com/2361839
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP wake up of gesture fix
four and five of tp bsp
Change-Id: I27b4bbe54e0d37bef95e68a8c0c52a7b1606cd53
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2361488
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This change includes the following changes:
1) Timed out position detection and motor operation
2) Run time configurable: proximity, pitch and sensing
Timed out position detection will initiate transition to compact
assiming it starts at extended position.
Incomplete motor operations will be followed by recovery attempt.
Failed operation will be repeated as part of recovery
Change-Id: I51a7011d2c9c46955b48e8f9d6bfb4bb367e2042
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2357537
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Added support for active touch area. This feature utilized by
Rollable HAL in Felix. Goodix calls this feature display modes.
Currently supports 5 modes that correspods to primary, rear and
full touch active regions in different slider positions
Change-Id: I0535c1a8c80947452bc20b92feded4d71b8a1905
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2360061
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Fix noise test case fail of factory test,still go on noise testing when
noise data check sum error.
Change-Id: I58fb65cb568758c250f7bcbf5ca7f7339ab2ac4a
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2360618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Fine motor stepping sequences tuning based on closed unit
Change-Id: Iddba5b7a5c7e52c993c16a51fa9e7ed503f2c52f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2353560
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Decrease the log of register panel notifier and print the log every
1s when not find matched display panel.
Change-Id: Iab2f4f7accc4bc9de5722e2d0f03255ad6b764e9
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2354041
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
1.There is no need to send IC config,this func is a workaround way for old
goodix touch IC to upgrade config again after upgrade touch firmware.
2.Also this func will load config to ram when driver loaded,affecting
touch firmware update.
Change-Id: Icce7a8d57090305231e7f69b2150715578299896
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2352764
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
There is a mix of devices with 2.3&2.8 pitch motors. Added sequences
for both pitches. Sequence for 2.3 pitch will be set by default.
Setting sequences for 2.8 pitch requires property use-2p8-pitch set
in device tree. In sensors equipped devices each sequence will be
extended with slow PPS stage to ensure it's a bit longer and allow
successful sensors data processing
Change-Id: I2d0242f4d806632468348e609d5d0c60aebad667
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2351204
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Sensor data reported whenever signal changes above pre-defined
threshold. This causes data arriving in bursts when signal changes
rapidly. Handle position detection in kthread to ensure no data will
be lost
Change-Id: Ie08d428a47a792e1b80689a99d2587f4b0dbd389
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2331896
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key