Commit a copy of the bq25890 driver from the core
kernel drivers. We will need to make changes.
Change-Id: I5c5dfe19e19bec4f3c1ae4f24e6947213894604e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1888564
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Guard unofficial battery properties by the kernel version,
as we cannot modify newer version of the kernel to comply
with the GKI.
Change-Id: I1446789cd91813eaeccaac733db7ac11fa50176b
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1888563
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
USB charger absence will assert during USB enumeration on
bootup with USB connected, so it will trigger the factory
kill power off unexpectedly in factory mode.
To avoid this issue, consider the charger as present as long
as the charger type is not unknown at the same time.
Change-Id: I96a04cc96536a63936c69946c507198d933ef560
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1891779
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- After the firmware is reset due to some exceptions, restore
the state of charger, stylus, palm, edge rejection.
- Filtering repeated commands of edge rejection.
Change-Id: Ie7076e1908ef528787d20dfe8970d9568636f114
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1886971
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add an option to let us start with the factory kill disable
parameter enabled. There is currently and issue where usb
will disconnect and reconnect causing factory mode to
power off even with a cable.
Change-Id: Ia5fa306201af3b84be8dd54261511ad9889e6ad7
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1886184
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
If we happen to suspend during the sx933x_reinitialize
function, we may fail to write all i2c commands successfully
and may not fully recover.
Make sure the task has completed before suspend, and
restart it on resume.
Change-Id: I196d2f2de6fe905de86f82bc17da1d142b57de1a
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1884313
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Update the Trustonic TEE driver module with the version available in
kinibi drop 410a-V107. This version contains the official patch to
correctly select the silver CPU cores. A workaround was done in (CR),
entitled "Force Trustonic TEE schedule run in Silver cores" and is being
reverted in this change.
Kinibi version t-base-QC8996-Android-410a-V107-20200907_110712_11106-Oem
Change-Id: I7d974f17e133b04f0f11c5622ef3fc0f6b92e494
Reviewed-on: https://gerrit.mot.com/1878314
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Mark Reed <mreed@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Added grouping for if condition
in switch case to avoid -Wmisleading-indentation warning from
GCC 4.8.3.
warning: misleading indentation; statement
is not part of the previous 'if' [-Wmisleading-indentation] error,
forbidden warning: synaptics_dsx_i2c.c:2896
Change-Id: Ib52c5ac2d507165468e826bc57ba0edb8ef0e96c
Signed-off-by: maheshmk <maheshmk@motorola.com>
Reviewed-on: https://gerrit.mot.com/1880925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-by: Kanagarathina Kalathi <kalathik@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Driver only has to manipulate with regulator reference counter when
it loads or unloads. Adding a new function that will take care of
this in probe and driver remove function. Leaving power function
operating with regulators' state only.
Change-Id: I3ef8b5a8b31ec336f1d1707069ab6330a5c5bb37
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1870282
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Change the return type to integer to avoid the following build error:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Build error:
sh2018/kernel/msm-4.9/../../motorola/kernel/modules/drivers/input/
touchscreen/raydium_mmi/raydium_i2c_ts.c:3740:43: warning: result of
comparison of constant -1 with expression of type 'unsigned char' is
always false [-Wtautological-constant-out-of-range-compare]
error, forbidden warning: raydium_i2c_ts.c:3740
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++r
NO_PROP_NEEDED
Change-Id: I5ee36f3a873b32422b4bd31c92cec1da72b5ecd7
Signed-off-by: Gilberto Gambugge <gambugge@motorola.com>
Reviewed-on: https://gerrit.mot.com/1879446
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
Add soft dependency on the pcal gpio expander for banks
so we don't have a race.
Change-Id: Ie65e0ed3b3c2e1be47e0d28b8ee5d3a65902b335
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1877024
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add driver for wl2866d which will be used as camera external
Device tree please refer to:
https://gerrit.mot.com/#/c/1860524/
Change-Id: Ia2f9573d770d26944790bb7e96a3b74b40988934
Signed-off-by: wangzl30 <wangzl30@motorola.com>
Reviewed-on: https://gerrit.mot.com/1860530
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Capri: support multiple panels which need different test ini config
Config different touch node for all tianma panels
NO_PROP_NEEDED
Change-Id: I024f53c3b07691c09e073c22829464897d40b763
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1869629
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Set all register to initial value when probe driver
to avoid register value was modified.
Change-Id: Ib8037ec0f1a270731a3e418f8d323e7197bc5529
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1868314
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
motorola/kernel/modules/drivers/input/misc/goodix_fod_mmi/gf_spi.c:
Add the soft dependency of gpio-pcal6408:
MODULE_SOFTDEP("pre: gpio-pcal6408");
Pioneer (alias: banks) wires a GPIO PIN from expander IC TCA6418 for
the reset PIN FP_RST_N of fingerprint sensor GF3626.
So, the fingerprint sensor driver has a dependency on the driver of
GPIO expander.
Change-Id: I3bae36c1b87bc0c3f50fd5a1b57511b90cc5771f
Signed-off-by: chengql2 <chengql2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1855475
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Add register dump interface to monitor PMIC when camera exception observed.
2 different ways can observe the WL2864C register dump from kernel log:
- Call kernel regulator API: regulator_get_current_limit()
- ADB command:
adb shell "cat /sys/class/regulator/regulator.90/status"
The regulator name regulator.90 shall be replaced acording to different products.
We may execute:
adb shell "cat /sys/class/regulator/regulator.*/name"
to observe the regulator name and find out the correct number for your debugging regulator.
Change-Id: Ic1e28ecea34a27083d68bb1bf1ce41d18bd9a0e1
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1866163
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Submit-Approved: Jira Key
Update qti_glink charger driver to match the common
charger adjustment for the charger configure data
structure.
Change-Id: Ic0672b8b1f4a0eb8290accd2e5f02cf6078417e6
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1864228
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Add register dump interface to monitor PMIC when camera exception observed.
2 different ways can observe the WL2864C register dump from kernel log:
- Call kernel regulator API: regulator_get_error_flags()
- ADB command:
adb shell "cat /sys/class/regulator/regulator.90/status"
The regulator name regulator.90 shall be replaced acording to different products.
We may execute:
adb shell "cat /sys/class/regulator/regulator.*/name"
to observe the regulator name and find out the correct number for your debugging regulator.
Change-Id: Idc33fcbab7ae108d579d934d0f4139476da38967
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1863819
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Compiler complained about two if statements that will
always return false. Comment them out.
Change-Id: I6aafa17252238ac3cf6da48ba45ab428b0b7fe35
Signed-off-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-on: https://gerrit.mot.com/1859386
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
wl2864c default iovdd current limit is 220mA.
OV02b iovdd current can reach to 235mA.
This may cause cci issue as all camera shared iovdd, include cci pullup voltage.
Change-Id: If7828cd0b294cf2d362ec9001d39fceaceb9b734
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1859122
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
For multi fps sensor, if there was some unexprect
INT signal comming during sensor being remove,
IRQ handle will panic becase the sysfs kobj had
ben free. Disable the irq to avoid this.
Change-Id: I2144c6f803547c281830058b29438b9d71cd5933
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1853153
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
- If display can't get the matched panel name, it will use dummy
panel, so we can re-probe touch driver until display api can be used.
This way we can get the right panel and don't need to care of when
display api is ready.
NO_PROP_NEEDED: needn't for shm2018
Change-Id: Ie0beec4ca4d59202e9ba087935d6052e92eef264
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1836793
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
We do not need the turn on the clocks for banks,
so do not turn them on if the field is missing from the
dt.
Change-Id: I00ceffb3772b655bc08217759b962b3d1dd4b20d
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1850012
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Allow chip enable and spi handshake gpio get/set to sleep
so they will work with an i2c gpio expander.
Also make rtc gpio optional since that pin is not present
on banks.
Change-Id: Ibeb530de04d4f1a858193be80ea656b03bdd87a5
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1834059
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Fix the set output function so that it will configure the
gpio to the specified state.
Change-Id: I265e53a83b64c6663eb52013087e1960de29f0d3
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1834058
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
some time request firmware may fail
so add some delay when retry
NO_PROP_NEEDED
Change-Id: I3ea961952cb37df4c4e09d9d2055f8f078c857da
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1841824
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Make the vl53l5 Kernel driver compatible for both 32bit and 64bit
applications from userspace, including L5 test program, factory TCMD
and camera app through L5 Sensor HAL.
Change-Id: Ia0ce2db08de83f7ab6ff487660ccd2bd21b48a14
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1831972
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