TP:
Support film sensitivity function in RoguePRC project.
Change-Id: I830adb55e9b9b93aef6dc90d757ef9eaf206a2cb
Reviewed-on: https://gerrit.mot.com/2134201
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
1. If the interpolation mode is disabled, the report rate is the
default 240Hz(Hiphic) or 360Hz(Hiphi)
2. If the interpolation is enabled and the refresh
rate is 144Hz, the reporting rate is 576Hz(Hiphic) 720Hz(Hiphi)
3. At other refresh rate, if the interpolation mode is enabled, the
report rate is 480Hz(Hiphic) 720Hz(Hiphi).
Change-Id: Ibcd6ba61457e5e5f6fd32a6583f5bdcada531fc5
Reviewed-on: https://gerrit.mot.com/2134669
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
1.when plug the USB cable, charger policy will trigle to get POWER_SUPPORY_PROPERTY
For rt9426a fg getting power_supply_property vaule by read i2c data, that will
make i2c busy and affect the PD sink.
2.remove useless debug info
Change-Id: I2ebee58e1deb9e0d4eeb4d3fa01b731fc0385ffc
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2139569
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
support
fod
Change-Id: Idcf036159065de4c67388ce0df422ca84e359845
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2139348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
The power supply of sar sensor is changed from 1.7v
to 2.8v to solve the problem of voltage jump
Change-Id: Ia731c372ddce703743d3966ddf7e185e5225cb06
Signed-off-by: huaqin79 <huaqin79@motorola.com>
Reviewed-on: https://gerrit.mot.com/2138719
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Third charging ic IINLIM bits will be changed auto
when BC1.2 done. So we need to Ignore the Rp
changes unless BC1.2 done.
Change-Id: Ib04c9702af17c0540ca8014f4ebaeb3dcc084b66
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2138036
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Config pd active is inactive status while cable plug out happen.
then after cable plug in could first run mmi_pd30_start() then
run mmi_set_pd30_cap(). otherwise perhaps only run mmi_set_pd30_cap()
and pps will fail so charge adapter only out 5v/3A mode.
Change-Id: I6d3a186f4b7d47d62d2a3d34ca808a8a88936db0
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2134594
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
In some case, quickly remove and insert qc3 charger, it can't detected
qc3 charger, so need to add sem lock to protect dpdm
when qc3 detected.
Change-Id: I4cef829648a7e09edabbedb71fcd868064fd5bb9
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2136191
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For fg driver, i2c reads will be called very frequently,
the redundant msleep causes system loss and a large number of task scheduling
Change-Id: I7237ea17cf1ee92069046beeda75a67e8bbff7a6
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2136133
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
When receiving a disconnect event from the UDC, the mass storage
function driver currently runs the handle_exception() routine
asynchronously. For UDCs that support runtime PM, there is a
possibility the UDC is already suspended by the time the
do_set_interface() is executed. This can lead to HW register access
while the UDC is already suspended.
Mot-CRs-fixed: (CR)
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Bug: 204343836
(cherry picked from commit 9fff139aeb11186fd8e75860c959c86cb43ab2f6
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing)
Change-Id: I6c8011baddf02d6b0eadb5934416bc24b8a93f4a
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
(cherry picked from commit 8c9d9d8e44aa69102ed589e66a55e6ef93b834ef)
Reviewed-on: https://gerrit.mot.com/2135845
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
ref_channel will be tested failed on factory, it should be filter for user,
add "ref_channel" on dts, it won't be registered to sensor_class.
Change-Id: Ibc5c927d5441665066aba990ecab36dbd7d03e47
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2134407
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
we can modify ui_full to adjust showing 100% limit
The default ui_full is 100, that is hard word.
config it to dts file,that can suit for muti-project
Change-Id: I2a44e28eb1bf1bc7dc66e589331a193fb9c174c7
Reviewed-on: https://gerrit.mot.com/2134308
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Goodix IC requires device confirm within 50ms after power on.
If this time exceeds 50ms, the i2c firmware will colse the
spi channel, and the spi firmware will close the i2c channel.
Change-Id: I178cea55e280ffb53fca444cdd8ed32905a928c5
Reviewed-on: https://gerrit.mot.com/2133988
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
When entering the deepsleep state, touch IC will power off,
so there is no need to send the suspend command.
Change-Id: I6b6a3b29eb3b1acee6c72db2b97fdb90710f25bc
Reviewed-on: https://gerrit.mot.com/2134059
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
we can modify ui_full to adjust showing 100% limit
The default ui_full is 100, that is hard word.
config it to dts file,that can suit for muti-project
Change-Id: I6aa2e7567e2ed91a8ac1c24be53c5aa471a4c7e7
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2124577
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
- Check if panel is available, if not, don't probe, save boot time
- Set avdd to 3v, same as other touch driver.
Change-Id: I34711276c2e5efcf1acc9421db2e347d95f2b41b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2131131
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
fg data can't update to user space timely, because fg driver only power
supply change the bms psy. So need to change to battery psy to update
data.
Change-Id: Idd39efd3790b6e80b473a8048827663d5a61851d
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2131783
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
tcpm_inquire_typec_remote_rp_curr is only used when kernel version < 5.4, which
is referenced in rt-pd-manager.ko.
Change-Id: I512071ac39537276701cb17261a03f58a7f14b48
Reviewed-on: https://gerrit.mot.com/2130450
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
There is a case that will make the system suspend failing for
mmi,charger wakelock and last for several minutes.
The reason is that the system suspend has the same 60s request
intervals as mmi charger heartbeat delay work, which will request
mmi,charger wakelock.
To avoid this two task run into resonating state, it's feasible to
change the mmi charger heartbeat interval to 100s.
Ported_from: (CR)
Change-Id: Ic24bfc8a4291761f4681e0464e7afd94b9239bd2
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2129919
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As VTS test failed, need to modify battery capacity unit
from mah to uah.
Change-Id: I04b24e6d564917b1a0af06c12eeec5351ae38048
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2130441
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As moto charging FULL status judge in SW policy, so we must remove
FULL status in charging ic driver.
Change-Id: I881b1464bdeb9e9c6599dee15d33189c6b4d1594
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128758
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Ironmn cold-boot with charger or usb connected tocharge port is
identifying ps_prop_usb_type brickid, apple charger. fet_control
was not handling this charger type. Why the incorrect detection
is happening needs to be investigated, but battfet control will
now handle all usb_type cases.
Change-Id: I5356ee108e2a2430b434311dd5b2cfaa225b89ac
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128139
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Add shutdown procedure for WL2864C and force disable all regulators when
system power off to avoid unexpected current leakage.
Change-Id: Ia92782a7baa2599fd6be1a7c62d5f747f10340ae
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2128240
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: <huqian4@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
As some discrete charging ic can't suspend usb, so need to disable
charging when capacity > upper_limit. I think it don't effect any scene
in pmic charging solution product.
Change-Id: I2f794cd81371169ea29e2e2918ad47430132415f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128317
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
request pm_qos during the interrupt processing to prevent
the CPU from going to sleep state.
Change-Id: I95728329c7df7a4376415b9d8ec20d6525fe45c8
Reviewed-on: https://gerrit.mot.com/2124280
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
As change the get vbus voltage api from BQ25890 to Main PMIC,
so need to change the HVDCP voltage standard
Change-Id: I5e175b0a5019b3b69810539f21c11b1a26764f84
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2126099
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
As TI bq25890 chip accuracy issue, so when policy set icl >=3A,
we need to set 3250ma at register for BQ25890H
Change-Id: I74cd75fdae300b50a8a9581b751dff6890258e11
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2125735
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key