Commit graph

2148 commits

Author SHA1 Message Date
a17671
108b2808d5 fs:exfat-linux:Integrate exfat-linux open source driver
Opensource exfat-linux driver provide better performance
Comparing with the existing Moto exfat-nofuse
It could support various kernel versions like 5.4/4.19/4.14/4.9
Original source :https://github.com/arter97/exfat-linux.git
version 5.8-2arter97
This commit also integrates almost all the exfat upstream
changes from kernel 5.8-5.16 listed in:
https://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat.git/log/fs/exfat?h=exfat-for-5.16-rc1

Change-Id: I7c0db070ee33be8f7f24a42f987b4e825d957998
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2137224
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xinmin Fu <fuxm1@motorola.com>
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-15 23:10:34 -06:00
wutao
00eadb5e67 fg/sm5602: Early detection device chipID
it should add device id detect before parse dtsi,
otherwise it will effect other fgauge boot time

Change-Id: If5d6e2de0a8783c40b4b60097baff1ffe3fa97e5
Reviewed-on: https://gerrit.mot.com/2144787
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-12-14 23:59:03 -06:00
wutao
c0a68a6eb1 fg/sm5602: correct the unit of vbat and temp
vbat need  ua : *1000
temp need : *10

Change-Id: I32b66ce23829ab5f051b0e678adcf5bac6d53912
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2144165
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-12-14 23:58:54 -06:00
wutao
06667b4cb8 sc89890h:device: add sc89890h device id
rhode second master charger
add device id 0x04 for sc89890h in bq2589x.c

Change-Id: I8295ffcc73443e68e73c8c0bfd6ded57cd7b1756
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2144127
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-14 23:58:36 -06:00
hujing3
4674f36cd1 focaltech_v3_mmi: rename .i file to fix potential build error
focaltech_v3_mmi:
rename .i file to fix potential user build error

Change-Id: Ic50f79e7561454f8b9ec0e3511478a3447afbbdf
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2144655
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-14 20:40:11 -06:00
hujing3
38415cd244 focaltech_v3_mmi: enable firmware download
focaltech_v3_mmi:
enable firmware download

Change-Id: I579fdf98223ea1c11e437367a0d59505441a0111
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2144086
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-14 20:40:04 -06:00
hujing3
997d70eb44 focaltech_v3_mmi: add sys touch node & info
focaltech_v3_mmi:
- add sys touchscreen node
- add panel_supplier, ic_ver, buildid, etc.

Change-Id: Iea8b26dcdff548bbcea72e383cf9a27ad4e695ff
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2144085
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-14 20:39:55 -06:00
hujing3
4c6790c5d2 module/input:hawao: add focaltech_v3_mmi for i2c flash
hawao: touch driver bringup support
add focaltech_v3_mmi for i2c flash tp

Change-Id: I727109a2ed4d433448cf56097d20ace1d4bc1658
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2142878
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-14 20:39:40 -06:00
huaqin87
eb579f54cf Rhode 5GP: add wt6670 get firmware num node
charging qc3+ wt6670
add wt6670 get firmware num node for factory test

Change-Id: I8289e6a139384e382833d28744c520d2ad5453c5
Signed-off-by: huaqin87 <huaqin87@motorola.com>
Reviewed-on: https://gerrit.mot.com/2143688
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-14 04:00:21 -06:00
dengwei1
0540557ed5 dubai: input touch update fw 21120803
update
fw

Change-Id: Ifaa66f935f469c024f023a35ec4df80ddf75a7a8
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2143664
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-14 00:58:47 -06:00
chenlj2
b1e6b9ae4b DLKM/fps:add power ctrl for ets kernel driver
Control gpio switch and regulator of fingerprint according to
the configuration of device node.

Change-Id: I2c581df3a88cf02089f0e8edd9f45ea09715c2e5
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2132820
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-12-14 00:40:17 -06:00
chailu1
22bcc15d82 pd: bring up sc2150a
pd/sc2150a
add sc2150a driver

Change-Id: I81ae4c312571ca19fa92ae7dcc842e3a67551a6a
Reviewed-on: https://gerrit.mot.com/2138697
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
2021-12-13 20:15:42 -06:00
Bernie Moreno-BERNIEM
05ef2b7793 power:fet_control Balance ckt Fet Close Batt2 over 200mV
Initial driver implementation considered main batt would always be
higher potential than secondary neck batt, either through balance R
or flex resistive paths. To be complete, be sure to take absolute
deltaV between the two batteries. This will ensure proper batt switch
control for either battery being higher potential.

Change-Id: Ia6f64dcb5da4dcff6e8207570e1972ad43b99f5b
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2141538
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2021-12-13 10:03:34 -06:00
huaqin87
bab07d0d96 wt6670: wake up wt6670 when get version num
pull up and pull down intb pin when read version num
and update new firmware

Change-Id: I3e2cd65e96993e26206ea46301c133a8febc3771
Signed-off-by: huaqin87 <huaqin87@motorola.com>
Reviewed-on: https://gerrit.mot.com/2138669
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-13 01:23:25 -06:00
wutao
e084d06333 sm5602: Add new fgauge sm5602
rhodep have second fgauge sm5602,so add it
the code from fae
sm5602 i2c address is 0x71

Change-Id: Iadb053862c559002cc31b945a5306211833befac
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2138848
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-13 00:38:05 -06:00
huaqin85
64555aac0f QC3P:iio sys channel add kernel version
iio sys channel add kernel version
for QC3P turbo charger.

Change-Id: If362841220296404f9be4afecfcb026cebb264f9
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2140848
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-11 04:47:33 -06:00
xuwei9
569cb7ee58 QC3P:module name change to mmi_discrete_turbo_charger
Change module name to moto
mmi_discrete_turbo_charger

Change-Id: I778e8878b2bfd26ee1aae24aebc3c2e247187b2e
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2142107
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-11 02:50:24 -06:00
xuwei9
2078234135 QC3P:discrete turbo charger
QC3P turbo charger changes
for discrete arch.

Change-Id: I0beaa0a9e01133d0d2d13930ded5fc64b0d4f3d1
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2139304
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-10 21:08:50 -06:00
xuwei9
6b166ccc40 FG:dynamic config sns resistance
Dynamic config sns resistance
and update current every reading.

Change-Id: If89865e2a3149b74620229f56ec7fbd104db5a3d
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2140931
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-12-10 21:07:18 -06:00
xuwei9
12f8745e98 QC3P:detection and iio sys support
Add QC3P detection and iio
sys support.

Change-Id: I05abcfea2cc49bfa318c8affb4b86b37eb3b2788
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2139318
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-10 21:07:07 -06:00
xuwei9
933212b5d9 QC3P:iio sys channel
Add iio sys channel support
for QC3P turbo charger.

Change-Id: I7683e0f02ef3b8339d51d94e6f6bd4d9586c6e7c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2139314
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-10 21:07:02 -06:00
xuwei9
77aa01676c QC3P:add iio sys support
Add iio sys support for
QC3P turbo charger.

Change-Id: Ib8c626e912becd75d751fda7e6050a39fcc0785c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2139278
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-10 21:05:16 -06:00
xuwei9
fdb761671a QC3P:ADC algorithm compatible
ADC algorithm compatible design
for bq and sc chip.

Change-Id: I055e965d5d4d6eaa640f801a89c8ad891d2f2eb2
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2139264
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-10 21:05:12 -06:00
xuwei9
b1fed3aec8 QC3P:copy of module mmi_parallel_charger_iio for mmi_discrete_turbo_charger
Code copy from mmi_parallel_charger_iio for the
initial code repo of mmi_discrete_turbo_charger
which used for discrete arch qc3p feature.

Change-Id: Ic0d302f084ee6f192c76ce3c6eaaa7276639c8ef
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2137095
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-10 21:04:50 -06:00
litong20
b9bf3314c5 goodix: support film sensitivity function.
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
2021-12-10 09:00:15 -06:00
litong20
37e9b41f58 Support report rate switch in RoguePRC
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
2021-12-10 08:59:57 -06:00
dengwei1
fe039a1f99 dubai: vibrator add long brk
add
brk

Change-Id: Ib9ddd71b1c6e80c62b583a27c3ac53ed87ac610f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2140965
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-12-10 03:16:27 -06:00
chailu1
4f2ac30ab9 PD: Pick Richtek patch13 to improve irq response speed
Revise from irq handler & queue worker to irq thread handler

/**** Release Note ****
 * 2.0.6_G
 * (1) Revise IRQ handling

Change-Id: I5072850f6645fc7f9bda0b985cc6555f81b51c12
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2137060
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-09 21:10:18 -06:00
chailu1
8bcf4a82cc PD:Revert "(CR):rt1715:add debugfs interface for dump reg"
richtek default support reg dump feature at /d/rt-regmap
so revert this changes and keep richtek default configure.

This reverts commit 7bbb1dcedc862205420cbabe00d2f4134de27f6e.

Change-Id: Id1cca8463c4411aa337d36b2938bf2eb32da4f72
Reviewed-on: https://gerrit.mot.com/2137059
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-09 21:10:14 -06:00
chailu1
a0fd42fa18 PD: pick Richtek patch12
/* Release Version
 * 2.0.17_G
 * (1) Add CONFIG_TYPEC_LEGACY3_ALWAYS_LOCAL_RP
 * (2) Fix a synchronization/locking problem in pd_notify_pe_error_recovery()
 * (3) Add USB_VID_MQP
 * (4) Revise the return value checking of tcpc_device_register()

Change-Id: Id6ed12910d2204f2f6e1d57be9547b6820132791
Reviewed-on: https://gerrit.mot.com/2137058
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-09 21:10:09 -06:00
liuyc20
f542fb9624 FG: power_supply_property get rt9426a battery info from local value
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
2021-12-09 03:16:13 -06:00
dengwei1
f7f23ab5a6 dubai: input touch support fod
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
2021-12-09 02:15:54 -06:00
huaqin79
f31ca2a003 sar: aw9610: Modify sar sensor voltage.
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
2021-12-08 04:30:28 -06:00
tinno15
144835c5fd moto regulator vibrator: fix null pointer bug
vcc is null while chip is pwr_by_gpio
Add condition to avoid the crash.

Change-Id: I3de63bcf0c17954fb0bfc99767326c9dac34742a
Reviewed-on: https://gerrit.mot.com/2136306
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: <tinno15@motorola.com>
SLTApproved: <tinno15@motorola.com>
Submit-Approved: <tinno15@motorola.com>
Tested-by: <tinno15@motorola.com>
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
(cherry picked from commit 07fa0fbff4a0fef6b483d35ddf4c4c74daf658d2)
Reviewed-on: https://gerrit.mot.com/2138542
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2021-12-08 02:47:57 -06:00
mahj8
e75299d77b charging: config ICL after BC1.2 done
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
2021-12-07 19:30:15 -06:00
xuwt2
9808efd3c7 qti_glink_charger: Add wls_notify_callback
Registe wireless_charger_notifier to listen wls_event
from ADSP through QTI_GLINK.
Add rx_connected notify callback

Change-Id: I96a8a4979a1f1943d0449dfcfcfeabb4a3f5d485
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2137107
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Submit-Approved: Jira Key
2021-12-07 05:51:43 -06:00
xuwt2
1fb1d6abae qti_glink_charger: Add folio_mode
For support moto folio accessory.
Enable folio mode when moto folio attached.
Add folio_mode to qti_glink_charger.

Change-Id: I98a81e1438c370c8762425765b978e4a9b5ac43b
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2136258
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Submit-Approved: Jira Key
2021-12-07 05:50:31 -06:00
xuwt2
5ae1006ec1 qti_glink_charger: Add wls input current limit for thermal
Add wireless_input_current_limit sysfs node
for thermal mititagion
/sys/class/power_supply/wireless/device/wls_input_current_limit

Change-Id: Id16344fd882d35e6cae1da3647ee53300898b69d
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2134720
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-12-07 05:47:35 -06:00
chailu1
d7c83a633f PD: config pd active is inactive status after cable plug out
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
2021-12-06 20:55:05 -06:00
huaqin87
69e2411dc8 wt6670f_qc3p: qc3p wt6760 isp download function
charging qc3+ wt6670
import blank firmware upgrade function

Change-Id: I5b7a949fb6063607e9e91a23aed60a34d1348918
Signed-off-by: huaqin87 <huaqin87@motorola.com>
Reviewed-on: https://gerrit.mot.com/2133354
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-06 19:59:09 -06:00
mahj8
73362d18cf charging: add sem lock to protect dpdm detected
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
2021-12-06 19:15:24 -06:00
liuyc20
255653fd65 FG:cw2217 Remove the redundant msleep in the read i2c operation
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
2021-12-06 05:44:00 -06:00
Wesley Cheng
271715079b FROMGIT: usb: gadget: f_mass_storage: Disable eps during disconnect
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
2021-12-06 03:15:16 -06:00
zhangh12
7a7df31356 sar: aw9610: the reference channel can't be seen on user layer
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
2021-12-06 02:33:14 -06:00
sheqihao
fb5b449a53 bias/ocp2138:add support ocp2138 bias ic config
Modify:
Porting Bias ocp2138 Code

Change-Id: I123c66bcfdcdc1918f299592a1b8b3970b408f3f
Reviewed-on: https://gerrit.mot.com/2134697
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-04 19:46:59 -06:00
liuyc20
abc7e28f06 fg: cw2217 add ui_soc feature
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
2021-12-03 03:03:59 -06:00
litong20
591a811327 IC needs to confirm the device within 50ms after power-on
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
2021-12-02 23:37:02 -06:00
litong20
c319fc909e No need to send the suspend command when power off.
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
2021-12-02 23:36:49 -06:00
Yuecai Liu
3a5bdc393a Revert "(CR):power: cw2217 add ui_soc feature"
parse dts ui_full parameter fail, 
probe will return.cw2217 driver will can't start.

This reverts commit f835f3a289218791d40a56d06ac32ad5b1fd4aea.

Change-Id: I19a175cc0703e95444415e99848dae55d8861325
Reviewed-on: https://gerrit.mot.com/2133214
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-02 03:51:20 -06:00
wutao
1976a6e160 bq2597x: bq2597x cp_enable interface does not work
bq2597x cp_enable interface does not work,the interface name is worng;
so change to PSY_IIO_CP_ENABLE

Change-Id: I9851dc7933680f9fcc727c362d16fb7777b1ee31
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2133077
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-12-02 03:02:20 -06:00