Dubai will use ET721 Fod sensor, need to upgrade
egis rbs driver to support FOD.
Change-Id: I5974aafe1cc3d85caae3260fdfa4095beda6a4c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2071992
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
1. Modify the config id to touch class common time format.
2. The reset operation has been performed after powe on,
so delete the redundate reset operation.
Change-Id: Ia93c8491c62f51d7effc56479462bb90a7a43c9f
Reviewed-on: https://gerrit.mot.com/2075360
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
REGN have 1 sec continous pulse when ADC is in Continuous Conversion mode.
REGN pulse will trigger PON when system shotdown ,
Stop the ADC could disable REGN signal and avoid reboot issue when system shutdown.
Change-Id: I333d9b4ac44520d9cd3b3a1fb2a3b64cba54ad2b
Reviewed-on: https://gerrit.mot.com/2086454
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
register charger device and provide some
api for charger class
Change-Id: I2c458b2f0f33bca9e0b24ae6602b14c0ad492d6f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2085447
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
gerrit.mot.com/#/c/2077581/ will create /sys/class/power_supply/battery
To apply for charging policy,
1.rename battery dir to bms.
2.current and voltage *1000
3.online rename to persent.
Change-Id: I224d53b6afb9b59b3f7c1e450e91a1f0de2ab502
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2085138
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Later version of kernel we need Makefile changes
to include dependent libraries.
Change-Id: I7c42cf935006ac40e9fae6169b2c43327952ca8c
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/2076379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
EVB HW does not monitor Vbatt_NB so decide battplus_en Low-Z path
switch control based on main batt only. When Vmain near centered
(mid) Voltage, and low current draw, <500mA, assert battplus_en.
Change-Id: Ib03b46c80518a87fdd7a54c9dc4ecb797477a68d
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059822
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
config charge enable pin gpio to low during init charge and release
it in shutdown to avoid current leakage.
Change-Id: I91595892d3492f33db9859da146981d9f3b128f8
Reviewed-on: https://gerrit.mot.com/2077229
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
After apply https://gerrit.mot.com/#/c/2078132/, the FPS is available after
flashing GKI but the touch(focaltech_v2_mmi) will be unavailable on courfr
This reverts commit 284e4b4bb7693a6c9552afefe5b4fe8944baa0b0.
Change-Id: I9f6ff86b0d9179aedc66c09e9358a052a01b3fc4
Reviewed-on: https://gerrit.mot.com/2078503
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Submit-Approved: Jira Key
Add OEM glink notification for qti glink charger and
add qti charger notifier call chain to extend the qti
glink charger to be as communication proxy between AP
and ADSP battery manager.
Change-Id: I4351e2842e5f2105461a0d1d4bd2e5c8cdcd5d3e
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2076935
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
force 5V/2A charging
for bring up process
This is only a temp patch. We need revert it after
charging policy ready.
Change-Id: I3b05ee22b59ac8c2febf8b956fa051f8d6f0b334
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2076418
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
The kobject_get_path function is not in Google's
whitelist, so reimplement the function.
Change-Id: I162e4d91cc5d8e918da1e7497fba7d48df9e86ef
Reviewed-on: https://gerrit.mot.com/2076930
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
TP
The kernel_write is not in google white list, and we only need the test
data saved during the factory build.
Change-Id: Iad0cb0a32902af116425ef26d53397d53973f7db
Reviewed-on: https://gerrit.mot.com/2075505
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Because 9916 and 9916P use the same firmware file and configuration file,
so the chip does not need to distinguish between 9916 and 9916P.
Change-Id: I08921833b01ee1700bd6c81bbf10e204e57b080a
Reviewed-on: https://gerrit.mot.com/2070699
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Kernel should not allow two drivers to assign same irq resource,
or else it will cause unknown irq storm issue.
For goodix touch driver, the i2c device driver will always match
device tree node and request irq resource even goodix touch doesn't
exist at all. When the kernel always loads another touch driver,
such as stmicro fts driver, they will compete the irq responsing and
cause lots of cpu hang issue.
Dynamically check the goodix sensor device status according dts config
to avoid the uncessary register driver.
Change-Id: I0c087d2aeaf5ebd04adddb8cbeabae27048fcb92
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2074007
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
Kernel should not allow two drivers to assign same irq resource,
or else it will cause unknown irq storm issue.
For stmicro fts touch driver, the i2c device driver will always match
device tree node and request irq resource even fts touch doesn't
exist at all. When the kernel always loads another touch driver,
such as goodix driver, they will compete the irq responsing and
cause lots of cpu hang issue.
Dynamically check the sensor device status according dts config
to avoid the uncessary register driver.
Change-Id: I23b694e17f84e1e612f706dce9b2d3f6cf587c11
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2074098
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
To avoid uncessary register driver, a dynamic check device status
interface can be used to judge before register driver.
Change-Id: I07d61a80ca46b955110c37588a1a466b0b4f2922
Reviewed-on: https://gerrit.mot.com/2074097
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so we get bootconfig from device tree.
Change-Id: I186a4b059fcbf55f2006e946677f5f6cbd59aefe
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2073134
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so we get the block device path in bootconfig from device tree.
Change-Id: I8601a35f88344eb5ba7601fc302eb1b846e945a0
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2072437
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so use regular bio intefaces to read and write utag block device.
Ugprade products which kernel is 5.4, can use the BIO to replaced
kernel_read/kernel_write block device interface with kernel config
CONFIG_MMI_UTAG_RW_BIO.
Change-Id: I74780733c05ae6d992d3ae07dc33bd1e352590d8
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2056920
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Submit-Approved: Jira Key