Commit graph

2,432 commits

Author SHA1 Message Date
yanyh2
dec0712199 Add factory kill time debounce support
Add factory kill time debounce support to debounce the factory
kill event for charger/usb online shake during boot in
factory mode.

Change-Id: I1ca70dbfebd1fa8555ca36dda2b7b6ab2dbc8a2d
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2242975
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2022-04-15 02:21:25 -05:00
mahj8
aa23f31c41 charging: fixed user version build error
some api can't be exported, so remove it or use another
api instead of it for user version build error.

Change-Id: I79a884fe47437bf3102c3448fa9a1560ba3136dd
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2241309
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
2022-04-14 21:51:08 -05:00
weiweij
c196a36ca7 wls: add wls online status judgment
Adding wls online status jdgment interface. And implement
power_supply/online property.

Change-Id: I9ccae66646783e73248396cf5d012116da493085
Reviewed-on: https://gerrit.mot.com/2239691
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-14 03:55:14 -05:00
dengwei1
10199d3dbd tundra: input touch add touch time sysfs
Driver will log the last touch down event timestamp and expose it via
sysfs. This feature utilized by sensors to mitigate false detection of
back tap gestures.

Change-Id: I2907acdf1a560a6ca923b9fc20243fef642d7b90
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2241177
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-14 01:39:14 -05:00
Lei Chen
6a56d911e5 sgm4154x: Fix the build error on devon
Fix,
 build error on devon project

Change-Id: I51dd41d7ab585d1ac5dfb790ca5fcf023fdac129
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2240940
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-13 01:28:30 -05:00
weiweij
2447129964 wls: add mmi_info symbol table
Adding mmi_info symbol table for CPS4019 to let
it could use the interface in mmi_boot_info

Change-Id: I4811b2a22f5fc5cc90e5427c387109831fffffed
Reviewed-on: https://gerrit.mot.com/2240634
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-12 22:05:15 -05:00
weiweij
4195e69772 wls: let cps4019 could use interfaces in mmi_charger
In the driver of CPS4019, we need to use some interfaces in
mmi_charger(for example: mmi_is_factory_mode). So we should
add relative dependence.

Change-Id: I06507728f8f15f0ddcc08ad855127e2167014b67
Reviewed-on: https://gerrit.mot.com/2239738
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-12 05:17:11 -05:00
weiweij
750b5fc835 wls: add boot firmware for CPS4019
Adding CPS4019's bootloader firmware raw data.
Reguarding it as an array.

Change-Id: I23d3f130c8eacf019b0f32a81b8b4956ffd0b6cb
Reviewed-on: https://gerrit.mot.com/2236788
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-12 05:16:59 -05:00
weiweij
9a9234b840 wls: add FW upgrade logic
Adding FW upgrade logic. Using default FW in commit:
https://gerrit.mot.com/#/c/2236788/
And just as upgrade logic of bootloader, we use dts
configuration of "wls_fw_name" to distinguish original
method and ours.
Be aware that it just works in factory mode.

Change-Id: Ib3d5d6b3aaf660ef5d2ec538d96aca70a6040c38
Reviewed-on: https://gerrit.mot.com/2239810
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-12 05:16:48 -05:00
weiweij
9b373435c1 wls: add power boost logic
Just as the commit of https://gerrit.mot.com/#/c/2239737/
CPS4019 is just powered by AC/VOUT. So if VBUS is low,
CPS4019 do not have power source. We have to use OTG
bootst from charger IC to get the power. So we should add
power boost trigger operation before FW checking logic.

Change-Id: I12f1641d2462ae821ffe07ae121e35cae3673b9c
Reviewed-on: https://gerrit.mot.com/2239809
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2022-04-12 05:16:42 -05:00
weiweij
de3e444e84 wls: add cps4019's bootloader download logic
For our designation, cps4019's bootloader FW is a raw data
in head file(https://gerrit.mot.com/#/c/2239690/). So we use
a dts configuration(use_bl_in_h) to distinguish the original
method(using FW file) and ours. If this dts property is defined,
we will use tha raw data in header file.

Change-Id: Ibd08fff811bb8f3eb787984e85b188db1f1c4908
Reviewed-on: https://gerrit.mot.com/2239808
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
2022-04-12 05:16:36 -05:00
weiweij
a898092d53 wls: add VOUT(VBUS/BOOST) checking logic
For CPS4019 is just powered by AC/VOUT. So if VBUS is low,
CPS4019 do not have power source. We have to use OTG
bootst from charger IC to get the power. So we should add
VBUS power detection and boost trigger operations.

Change-Id: I7630db66f517c17603d4f1b598802a179f63af9a
Reviewed-on: https://gerrit.mot.com/2239737
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-12 05:16:28 -05:00
weiweij
c9c71cb62f wls: fix FW version register definition error
For register map of CPS4019, FW_MAJOR_VER is from 0x2,
and FW_MINOR_VER is from 0x4. So we should fix the
configuration errors.

Change-Id: I9080c5f4d4a846d0947c14f0f5f36d6e939ad531
Reviewed-on: https://gerrit.mot.com/2239690
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-12 05:15:52 -05:00
yanyh2
36b2393bf1 update bq27426 battery profile for li/oneli
Update bq27426 fg profile for li and oneli products according
to the TI initial profile report.

Change-Id: If56c0f5ebe5de69b15cf110ea500ef9175823224
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2237962
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-04-12 04:38:09 -05:00
Lei Chen
30a84ca859 sgm4154x:Bring up charger IC SGM41543D
Rhode4G use SGM41543D as the 2nd charger IC.
Bring up charger IC SGM41543D.

Change-Id: Id1eb726b311d1f415942bb15508272a221bd686b
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2238618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-04-12 03:17:11 -05:00
hujing3
a5a4c92319 backlight/lm3697: add more current mode for HBM
backlight/lm3697
add new current mode for HBM to support more panel

Change-Id: I4c99cc98b93979dc5df0989ddc0b0cb87af0e62a
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2238361
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-04-12 02:17:59 -05:00
weiweij
208033c97d charger: add gpio request protection for WLS control
For WLS gpio control, if GPIO is requested failed. We should block
the driver. Or if the driver use the gpio that is requested failed, there
will be some unexpected problems.

Change-Id: I8460d64032d673e5fcd32acd135e1f7b65f677d3
Reviewed-on: https://gerrit.mot.com/2239374
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2022-04-12 01:20:48 -05:00
wanggc6
32b4c6c612 charging: add SC8541 support
Add SC8541 support for miami.
modify irq-gpio node name.
(refer to https://gerrit.mot.com/#/c/2227610/)

Change-Id: I4c18d1b6e259f3d6274b66d70c863f06952e3a5d
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2239231
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-12 00:39:12 -05:00
liujian24
c13bffd51d Devon:Modify device name to match with kl
Device name of egistec FPS doens't match with its kl file name
Modify device name same as kl name

Change-Id: Ibb37a09048eca5923cc8bff1ca9b8be56b26771b
Reviewed-on: https://gerrit.mot.com/2239306
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-11 22:16:23 -05:00
weiweij
a87f8d360d charger: add mux control for WLS in otg mode for BQ2589x
In OTG mode, the output of VOUT from WLS should be disabled.
So we use gpio to control WLS through mux. When VBUS boost starts, disabling
WLS VOUT. And resuming it after VBUS boost stops.
This change is for BQ2589x.

Change-Id: Id6a0d81a9e50ba63c1dd89cce3cd1523d2a21af9
Reviewed-on: https://gerrit.mot.com/2239292
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-11 22:09:52 -05:00
weiweij
3b19b42503 charger: add mux control for WLS in otg mode for SGM4154x
In OTG mode, the output of VOUT from WLS should be disabled.
So we use gpio to control WLS through mux. When VBUS boost starts, disabling
WLS VOUT. And resuming it after VBUS boost stops.
This change is for SGM4154x.

Change-Id: I6749f58c7775d9cf8b351b63464a5dd42cf2cf8b
Reviewed-on: https://gerrit.mot.com/2239293
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-11 22:09:50 -05:00
wingte49
f611d20d6c dlkm:Rhodec:Modify chipone_tddi_fhd_mmi to fix KASAN problem
Modify:
 -Chipone_tddi_fhd_mmi driver after KASAN correction

Change-Id: I3d1be8dab62dad840d43d250cfcd5a869ec9a6a6
Reviewed-on: https://gerrit.mot.com/2238106
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-11 02:47:34 -05:00
wunan3
5739c4fae5 Devon:seperated DVT1/DVT2 sar sensor firmware
WHY:sar sensor need seperated firmware
HOW:support multi firmware

Change-Id: I2a77adb3dea88b57f9f4a85ad463f1d992dfdae4
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2237527
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-10 21:54:36 -05:00
zhuwg1
904e5eda78 Fix fail loading CLI touch limit file sometimes
Ensure get panel supplier name before access module execting probe,so test
limit file can be found correctly.

Change-Id: Ib7af4867dbaefbef45d2662dd321824ebccaea4d
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2237330
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-04-08 05:15:24 -05:00
zhuwg1
0c587df2a6 Fix enable gesture mode error on panel off state
When on panel off state,enable or disable gesture mode will cause
suspend and resume error,recording touch IC power state to correct.

Change-Id: I71283abc65386b3a448782c1d122bcbb33c584cd
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2236143
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
2022-04-08 05:14:32 -05:00
weiweij
21eb62de55 charger: remove write permission from interface without "store"
Some device attributes do not have the interface of store. If we reguard
it as permission writable. We would get following errors:
[   22.517191] Attribute vbus: write permission without 'store'
[   22.522882] WARNING: CPU: 6 PID: 375 at drivers/base/core.c:2283 device_create_file+0x78/0x9c
[[   22.619397] Hardware name: miami (DT)
[   22.623067] pstate: 60400005 (nZCv daif +PAN -UAO)
[   22.627864] pc : device_create_file+0x78/0x9c
[   22.632219] lr : device_create_file+0x78/0x9c

Change-Id: I7497b33aff38cc122825b44623a03bd2765b3a83
Reviewed-on: https://gerrit.mot.com/2237072
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-08 04:29:25 -05:00
liujian24
01e2bfce40 Devon:FPC fingerprint doesn't work
Pin control feature isn't enabled and FPC fingerprint doesn't work.
Enable Pin control macro in makefile and driver code.

Change-Id: I5a163761520fa7920ee657bb71ad81b752c91a60
Reviewed-on: https://gerrit.mot.com/2235882
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-07 02:10:14 -05:00
qiurp1
bbbc9a2bce ONELI/LI: add calbration driver of capsensor
add digital headset calbration,usb_calbration,
load parameter when flip far/near

Change-Id: I766d7166c8b91c7a24763576e78adc2f99a76a9a
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2231946
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-04-07 01:47:35 -05:00
zhuwg1
c755f98364 Set self test fail when fail loading CLI touch test limits
Fix CLI touch self test still success when fail loading CLI touch test
limits file.

Change-Id: Ic6758a003f85f7ef74ef2ff4373b283df9b9332b
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2234999
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-04-06 23:11:42 -05:00
Andy White
ca7e446885 Add sign-of-life LED trigger module
Add a new configurable LED trigger that alters the LED blink
pattern based on power supply status.

By default:
Device on or fully charged     | LED is solid on
Device is charging             | LED blinks  700ms on/700ms off
Device battery is 15% or lower | LED blinks 3800ms on/200ms off

Change-Id: I5d0df2a7cb535679f8837542fb651f73db4924af
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2192503
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Drew Abbott <drewa@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2022-04-06 13:19:33 -05:00
zhouwl
e08f4d31c1 changing: add sysfs PSY_IIO_TYPEC_ACCESSORY_MODE
Product without 3.5mm wired headset connector, uses USB type-c
analog audio switch chip FSA4480 to complete headset detction,
switch analog audio and usbc signals.
add PSY_IIO_TYPEC_ACCESSORY_MODE iio interface to inform USB PD
accessory detection reuslt to FSA4480.

Change-Id: Ibcf9d3f877f5fccb0d9e470b0757f79435080b5b
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2234602
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2022-04-06 01:49:07 -05:00
Lei Chen
068ba044e9 bq2597x:retry to read nu2105 id
Read nu2015 id failed in poweroff charing.
Retry to read the nu2105 id again.

Change-Id: I57637e2f666d6142a9563dbb59cea40f6f86542a
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2232735
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-04-05 21:32:14 -05:00
Yinjun Chen
75d2b91660 Add kalama in Build_external_kernelmodule.mk
Add "kalama" to use a new mechansim for building external modules.

Change-Id: Iae3650749c6c8ca3ee6920e194284388012a74ac
Reviewed-on: https://gerrit.mot.com/2234561
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Yinjun Chen <a7301c@motorola.com>
2022-04-05 21:20:49 -05:00
xuwei9
249161c415 not notify current changes
Update variable but not notify current change
when changed which cost more power consumption.

Change-Id: Id7b20f4844a754e97e5c42dc1c1f68235de796bd
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2233377
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-04 05:16:15 -05:00
mahj8
6370ef29a9 charger: change the adc value unit and add slave iio
change the adc value unit for compatible with policy
and add slave iio in policy

Change-Id: I8e0ed26ec6be3589c37f9d1c3930ef8190f749ef
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2232163
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-02 04:17:20 -05:00
mahj8
bd2f6014ce charger: Rename bq2597x to cp
For charge pump commen interface. use cp
name replace bq2597x.

Change-Id: I8573d1a5b9c358e76c60ca778834d44b198c8cb4
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2232141
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-01 22:01:34 -05:00
longc102
15d4c77160 devon:optimize charging
reduce bc1.2 get result time
if bc1.2 ready done, do not wait an extra 100ms

Change-Id: I1daf527423ee893a32986e277a1b99c23278a45d
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2231765
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-01 06:20:37 -05:00
tinno18
a674935ab4 hawao+oled: fg 1st(cw2217) change to 99 ,2nd(sm5602) change to 98
Change-Id: Ifcb24f548cd11f48e2044bf60a1f74e55a88757c
change: 2nd fg(sm5602) parameters change to 98
modified:   sm5602_fg_mmi/sm5602_fg.c
Reviewed-on: https://gerrit.mot.com/2230956
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <tinno18@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-01 01:56:01 -05:00
wanggc6
5bc52c7f28 charger:remove read permission
Remove some device files read permission,
because there are no 'show'ops.

Change-Id: I3c50d5442ea013937ceb8064346fd7b1397ac7ca
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2229104
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2022-04-01 01:19:37 -05:00
wanggc6
2bb9a6ba37 charger:increase wait_time_out
The cps4019 wait cmd done time out when test app crc
 because the wait_time_out is too short.
Add log print firmware length.

Change-Id: Iaf4bcc7689c89de19d196c017fdde91771eba25e
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2229072
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-01 01:19:32 -05:00
wanggc6
7725b40c64 charger:add I2C 32bits addr interface
The cps4019 I2C frame format use 32bit address  in
firmware download mode.So we need add I2C 32bits address
read and write functions and use them in firmware download.
Modify some code formatting and add some logs.

Change-Id: If5c7d1747e260a1c3bee69f6fcd31ee96f5926fb
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2224955
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-01 01:19:21 -05:00
wingte49
c4c449b15d : Rhodec: Uptade chipone_tddi_fhd_mmi driver
Modify:
1.add rawdata collection function

2.update interrupt data collection process

3.add ioctl debugging equipment interface

4.revice the production and testing process

Change-Id: Id4130107cdb085aaf5981685766f37804ac6ddc4
Reviewed-on: https://gerrit.mot.com/2230586
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-01 01:19:10 -05:00
wangyq13
6b0c57bc68 sm5350_bl: support current align configuration for exp mode
sm5350 exp mode backlight current with the different curve to
other chips, add backlight current align configuration for
the same current at the same hal level, to support the same
brightness at the same hal level.
sm5350 uses same exponential curve as lm3697, so pick from:
https://gerrit.mot.com/#/c/2045773/

Change-Id: Ie5adbc50298e2670d03ea9d491726f68c1fd3300
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2230345
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-31 21:34:49 -05:00
longc102
10f93f275c devon:charger bring up
compatible with sgm41513
change sgm41513 ichg, iterm, iprechg parameters

Change-Id: Ie53ef3b7e83827b7a0c49732048433d079921d73
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2223088
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Qiong Xie <xieq2@motorola.com>
(cherry picked from commit 8cf05c8abdbe6c495d2421f8acaece4918a954d9)
Reviewed-on: https://gerrit.mot.com/2227490
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2022-03-31 02:58:01 -05:00
liujian24
2056aae4fa Devon:Bringup Egistec FPS ETS_617
WHY:Bringup Egistec FPS ETS_617
WHAT:Update driver

Change-Id: Id7b129aMontana7759a1a4ba33b88a190615005a822a
Reviewed-on: https://gerrit.mot.com/2229622
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-03-30 22:24:40 -05:00
liujian24
a508396ba3 Devon:Bringup Egistec FPS ETS_617
WHY:Bringup Egistec FPS ETS_617
WHAT:Add ETS_617 drivers

Change-Id: Ibe4851fe447e1abea93222a698d5b2cdcbbff276
Reviewed-on: https://gerrit.mot.com/2228365
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-03-29 02:35:40 -05:00
mahj8
4b1cef88f2 charging: delete redundant code
delete redundant code for compatible with multiple charger
pump charging solution

Change-Id: Id5b779b4ab4a6c3c9656432b3b63b57cfdbff8cb
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2224637
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-29 01:04:06 -05:00
mahj8
b6b9b02d93 FG: add fake battery in mm8013
add fake battery in mm8013 for factory test when don't
detected mm8013 ic

Change-Id: I4db2e7d2b9af295cb7920e7087993f9839dab105
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2217482
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: <wanggc6@motorola.com>
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-29 01:02:33 -05:00
yanyh2
38e1c75ba0 Notify mmi_battery change when combo current change
Notify mmi_battery change when combo current change so that the
battery current status will be updated when combo current change.

Change-Id: Iddcf0d8fc7f9a1a44b6c042f1d72ae337931f37c
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2226482
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-03-28 02:31:02 -05:00
wangyq13
0d6c5265a4 dlkm: leds/aw2033: add initial version driver
leds/aw2033:
Add initial version driver.

Change-Id: Ieed6e2725c6c514259ad6d036b8a961ce4994840
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2223864
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-28 02:21:38 -05:00