Commit graph

1,991 commits

Author SHA1 Message Date
yanyh2
2afeda660d print ulog when write oem glink command
Print ulog when write oem glink command for adsp debugging
and charger and usb related issue analysis.

Change-Id: I742894e7378dd81f81c552ed45eeb1ff798f69cc
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2097322
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-10-22 07:38:24 -05:00
mahj8
ec1c78a8a6 bq25890: set input voltage limit 4600mv
As bq2589x_adjust_absolute_vindpm api sleep 1s to get vbus
voltage, but it will cause charger type update to charging policy
slowly. So directly call bq2589x_set_input_volt_limit api.

Change-Id: I4890f8b1aad066ceb8fe5b3655ac77a4620b7f87
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2097216
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-10-22 05:28:52 -05:00
mahj8
f21f768ba7 charging: setting icl=0 for usb suspend
As external charging ic is different, some charging ic will trigger irq
to update charger type unknown when set HIZ mode. So setting
icl 0 mA instead of usb suspend feature. The min icl current of some
charging ic is 100mA. We also can think usb suspend.

Change-Id: I044073443ce6675c48a1b21bf5e7066766c3774b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2095741
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-22 05:10:27 -05:00
liuyc20
10a9fcbe5c power: create chg_type node for factory test
factory need detect DCP type test.
create chg_type node, if real_charger_type=DCP return 4
otherwise return 1(SDP), this is to be compatible with MTK platform.

Change-Id: I757faee03d6765a557d6f68f27c2d9f9e7af44e6
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2096593
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-10-22 04:58:30 -05:00
litong20
a745460a6f touchscreen_mmi: Support refresh reate notification in Rogue
1. dsi_freq_head is undefined, so add Module.symvers of display driver.
2. Use the KBUILD_OPTIONS to pass the configuration parameters to
the Kbuild filed.

Change-Id: I24d792a26cb1d3a9f8beca8089cea7116ae1a669
Reviewed-on: https://gerrit.mot.com/2097103
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-10-22 04:31:54 -05:00
dengwei1
855433bff6 dubai: touch use gki api
touch input
use gki api

Change-Id: I52bcb290bed9ee5656f15de59423df01b9c009bd
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2096603
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-10-22 02:24:52 -05:00
wuwl10
5ea66e0be4 dlkm: fix vibrator stop fail issue
Cyprus IP68 use regulator to driver vibrator.
Fix regulator unblance  and disable faild issue.

Change-Id: I17cab4b196725794c34f73d4ee4eccfeeac75f89
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2095603
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-21 03:26:33 -05:00
chailu1
b276620d9f typeC: add typec cc orientation interface
In typec tcmd test, it will check typec cc status, so we
add this interface for tcmd

Change-Id: I00f3b0c09f07d2479a5676f2f43de96dc7bc97fe
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090827
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2021-10-19 21:37:54 -05:00
chailu1
2772626015 typec: add host and device interface
typec/pd
add host and device interface

Change-Id: I69fcb5656c07416407832f1624682e837d8c6bac
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2080556
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 21:22:34 -05:00
mahj8
1837c058f2 charging: add iio psy to provide api for other modules
add iio psy frame to provide api for
other modules

Change-Id: Ibc8478b4ee9b07b843f262555e1d15c5a59fc554
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2088633
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 21:19:37 -05:00
liuyc20
420a200b18 dlkm: rt9426a fg update read fg_extreg_table
fg_extreg_table parameter is different between different battery
so move it to battery's dts file.

Change-Id: If881658da98c403498e2681bb686a01c87670d8a
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2093366
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 20:58:14 -05:00
wengjun1
0e193a6009 Cypfq: dlkm: Bringup touch CSOT ILI7807S
- Add the configuration for csot ili7807s.
- Change the ic name to ilitek_csot for CQA test.

Change-Id: I7cb03ba7caa332e390d9422bc0d07840b5b91340
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2091635
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 20:58:05 -05:00
liuyc20
aac82dad39 dlkm: rt9426a fg update rt9426a_read_page_cmd
from richtek.
For confirm sending read page cmd successfully.

Change-Id: If36e8e29a57eb7b2890a510477e09a80382845e5
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2093282
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 20:57:45 -05:00
mahj8
3bb34fb958 charging: fixed user version build error for bq25890H
remove all EXPORT_SYMBOL_GPL config for fixed user version
build error.

Change-Id: If5ceea78f9e9ff270691cc5c1dca481108776437
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2093409
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 20:04:36 -05:00
xuwt2
5a102c87cb wls-chrg: Add FOD_CURR and FOD_A/FOD_B settings API
FOD: Foreign Object Detect,
It is a port of Wireless RX tunning development.
provide thoes API for WPC certification.

Change-Id: I6694dc1fa2c841ac189a3057281f4779d0c08ed7
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2091619
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-10-19 05:36:33 -05:00
mahj8
1a0e36fd6b charging: dcp current base on dtsi config in mmi charger
dcp_pmax is config in mmi charger dtsi,
dcp current setting base on dcp_pmax

Change-Id: I7257cb586557bcf24a93ac4f53f5b50339731eb1
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2093336
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 05:12:57 -05:00
gongsc1
e2af86a729 charger/bq25890: improve charger BC1.2 detection & rerun apsd
improve charger detection
for bq25890

Change-Id: I63d50facde8478b2e8064b44701a1cadbaa92ece
Reviewed-on: https://gerrit.mot.com/2089481
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 03:00:39 -05:00
chailu1
37e858962c typeC: import correct Modules.symvers in GKI build mode
When importing the Modules.symvers in fix path, the GKI module will import an
incorrect one and cause module load fail in gki kernel mode.

Change-Id: I1c089b5e9dbbe4b4922921df6f3923cb9c748d2e
Reviewed-on: https://gerrit.mot.com/2090513
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-19 00:34:17 -05:00
Yan Zhang
da19276c28 dlkm: Add focaltech fps module
Add focaltech fps module to bring up side fps
FT9391.

Change-Id: I52a4b1a328a7e7135ab8743cdad76c513a4ff9eb
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2085146
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-10-18 03:56:00 -05:00
dengwei1
690f92f0f4 dubai: vib update file name
vib update
file name

Change-Id: Iae827671629dd0a05589e97bab1584c4e52ac85f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2092018
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-10-18 03:55:04 -05:00
liuyc20
7645003f1e power: discrete charger policy create force_chg_fail_clear
create force_chg_fail_clear node for
compatible with tcmd test.

Change-Id: Id7aab73731e9bc689036c5fee34f7738f603fdf8
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2091898
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-18 03:54:00 -05:00
dengwei1
3d97a9bb96 dubai:input touch init setup
input touch
init

Change-Id: Iad4ee15dd060b38fc8d0c8925149a5906fcf94cc
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2090842
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-10-18 01:37:08 -05:00
litong20
bd038d5ab1 Update goodix berlin touchscreen driver to v1.2.3
1. Modify the factory test code
2. Modify the waiting time during the firmware upgrade process.
3, Report the tile_x and tile_y of stylus.

Change-Id: I8e398ff731e59b179edf28c6d5cd5923ec0083fe
Reviewed-on: https://gerrit.mot.com/2090807
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-10-18 00:40:00 -05:00
liuyc20
76f540cc95 Power: discrete_charger policy create factory tcmd test node
create /sys/class/power_supply/battery/
force_chg_usb_suspend
force_chg_auto_enable
force_chg__ibatt
force_chg_iusb

Change-Id: I19fc0231ab7bf3ae6020130ea29b09576f12425b
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090584
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-10-17 21:16:54 -05:00
mahj8
db26e79d21 charging: optimize bc1.2 detect for sgm41542
optimize bc1.2 detect and rerun apsd
for sgm41542

Change-Id: I711f95ead0d3d2c4c20a8d0e796b848fc588f03f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2089798
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-17 20:57:35 -05:00
chenlj2
709e461604 DLKM/sar:optimise sx9375 driver on bo
-optimise log output
-add register_read store function

Change-Id: Idfe5cf70f23f68fb3c87a2376c5b4da68f503018
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2090589
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-10-15 03:37:15 -05:00
liuyc20
1876dbc76d power: add get charing current api for discrete_charger_class
add get charing current api for discrete_charger_class
factory tcmd will use this api

Change-Id: I1a6011fcf7b936329e6ae1b7787b6e86078b8915
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090448
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-10-15 02:20:22 -05:00
Bernie Moreno-BERNIEM
8042a207c8 power:fet_control: ironmn: Fix typo in chrg-fullcurr-en-gpio
Fix errant 1 placed in chrg_fullcurr_en_gpio assignment from parse_dt.
Should be a 0 param instead. Also check battplus_state at beginning
and terminate work is already set.

Change-Id: Ia69bfa919452e03423d669afd633fd9af3599966
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2089379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-10-14 15:41:14 -05:00
wuwl10
cff2faf131 dlkm: add new regulator vibrator driver
This driver can support  regulator to driver a vibrator.
It was used on cypf by r first time.

Change-Id: Ib62747bacb225d1c730cf22a29bbe133aa5bd793
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2089627
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Submit-Approved: Jira Key
2021-10-14 04:18:01 -05:00
cuijy1
854549da23 hall:fix not report issue
fix not report issue when reopen

Change-Id: Ic350af4ec2440e8ac9ecbe322de36bc50b8d168e
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2089507
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: qiurp1 <qiurp1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-10-14 03:51:54 -05:00
Konstantin Makariev
9e89c022e5 pct1812_mmi: custom config options
This change includes the following:
 - build ID made by concatenating FW version (reg 0x7e) and Parameters
version (reg 0x7f) info
 - boot status check in the function that reads extended info
 - added custom config options

Custom config options include:
 - max XY coordinates
 - flip reported coordinates along X/Y
 - limit the minimal distance reported in scroll gestures

Change-Id: Ia8cee82df0d69de1efd9b58e18d08f5d495254c9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2084791
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-10-13 19:52:35 -05:00
Konstantin Makariev
1ddc49de86 pct1812_mmi: report scroll gestures
Scroll gestures will be reported as REL_WHEEL for vertical and
REL_HWHEEL for horizonatal. Motion from left to right for horizontal
and motion from top to bottom for vertical scroll gestures reported
as positive value while motion in opposite direction will be negative.

Scroll distance is measured in tix - artificial units representing
distance traveled by finger between 2 consequitive ineterrupts.
Slow scroll gesture generates only few events while fast gesture will
mimic gradual slow down with a bunch of small steps.

Change-Id: Idaa3df2f8b6297e42f198f5f3750753449585258
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2066795
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-10-13 19:52:24 -05:00
chailu1
9ee869b9f0 pd: add PD20/PD30 interface for tcpc
typec/PD
add PD20/PD30 interface

Change-Id: I0ad37aefca3de913eaa806edbeda80e5ce0272aa
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2086795
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-13 01:53:33 -05:00
chailu1
0c1475fe19 pd: create pd adapter class
typec/pd
create pd adapter class

Change-Id: I9cda62e369a3de31e133ad433f2e7991de44b650
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2086813
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-13 01:53:31 -05:00
gongsc1
cd42eda00b charger/bq25890:export api for charger class
register charger device and export api
for charger class.

Change-Id: Ifa42432344714da5390b8557c950df6d1dc53017
Reviewed-on: https://gerrit.mot.com/2087906
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-13 01:33:01 -05:00
litong20
8b83241083 goodix: support stylus mode switching.
TP:
Support stylus mode switching.
0 00 05 A4 00 A9 00 //close stylus, finger:360 Hz
00 00 05 A4 01 AA 00 //enable stylus, finger: 120Hz stylus:240Hz

Change-Id: I05d38631fa8cd4a2b35597dd182578b0c9e4909e
Reviewed-on: https://gerrit.mot.com/2088362
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-10-13 00:51:44 -05:00
gongsc1
024f6dc9d6 power: discrete charging solution intial version TCMD driver
Add mmi_chg_tcmd driver for tcmd
Porting from Moto solution :(CR) and fixed build err

Change-Id: I513227c592502ccae5fdcbd77018eb0a3e68d179
Reviewed-on: https://gerrit.mot.com/2059917
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2021-10-12 22:34:22 -05:00
tanhua1
ad3d45bb69 backlight: fix brightness flash issue
move backlight enable after brightness level update
while backlight on, to fix the brightness flash issue.

Change-Id: Ib3cfa1814edd3280db808091fe4b98eda32fa848
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2088179
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2021-10-12 04:44:11 -05:00
Yan Zhang
d85f57f55f Upgrade egis driver for supporting ET721
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
2021-10-12 01:58:29 -05:00
mahj8
bf8ec70a36 charging: fixed charging policy kernel panic
return EPROBE_DEFER when charging policy can't get
external power supply for avoiding kernel panic

Change-Id: I8c829181871f3fd732933b0c0704586cbebb554b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2087915
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-10-12 01:33:24 -05:00
litong20
dc8be450b4 Modify the config id and build id
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
2021-10-11 06:02:31 -05:00
gongsc1
eff83dd6b9 charger/bq25890: stop ADC when system shutdown
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
2021-10-09 09:22:59 -05:00
mahj8
c20e18eae8 sgm41542: provide some api for charger class
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>
2021-10-09 05:21:29 -05:00
mahj8
52254262cf charging: add discrete ics charging policy
add discrete ics charging policy
remove pm7250b solution

Change-Id: I7f6dae86ccea4a3bd79dafbe8cd334962f02a162
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2077581
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-09 05:20:58 -05:00
liuyc20
1426fec0a8 power: cw2217 fg's name rename to bms from battery
gerrit.mot.com/#/c/2077581/ will create /sys/class/power_supply/battery
To apply for charging policy,
1.rename battery dir to bms.
2.return current*1000

Change-Id: I5895803bbd6ccfaefb1918dad23f5c9ac9aa0374
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2085227
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-10-09 05:20:15 -05:00
liuyc20
1affbeb16b power: rt9426a fg's name rename to bms from battery
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
2021-10-09 05:20:08 -05:00
liuyc20
5b8c5bca15 power: cw2217 fg add fcc/fcc_design info
add fcc/fcc_design info to
charge policy.

Change-Id: I3db04ae158538c1a8761938a7863e31226ba647d
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2086300
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-10-09 02:49:03 -05:00
dengwei1
b5ca4b4d3d dubai: vibrator init setup
vibrator
init setup

Change-Id: I3c640d960cdd572d7178aaa535df6334f24cfa74
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2086352
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-10-09 00:33:09 -05:00
liuyc20
2e2446261f power: rt9426a_fg introduce supprot muti-battery parameter func
1.if find utag battid,check and find utag_battid parameter,if check fail
  use default batt id.
2.if no utag battid,use dts default id.

Change-Id: I8cd036e68e6041944e57a4Montanaecd9ed357eb231c
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2081431
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-10-08 21:26:34 -05:00
liuyc20
1ad7af50ba power: cw2217 introduce mutil-battery parameter func
1.if find utag battid,check and find utag_battid parameter,if check fail
  use default batt parameter.
2.if no utag battid,use dts default id.

Change-Id: I0c56fdd0c1770a4291ebb1811118bdb7035cd624
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2081363
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-10-08 21:26:16 -05:00