Commit graph

2,580 commits

Author SHA1 Message Date
weiweij
f7c69fecb1 charging: export charge ops interface for authen test
For some authen tests, charging parameters may need to be changed
as requirement. And for original designation, these ops interfaces only
work in factory mode. So we need to export them in normal mode.

Change-Id: I4ed54474fb6f8e0a164231d8919bc0f385954bd5
Reviewed-on: https://gerrit.mot.com/2299683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-14 02:41:21 -05:00
weiweij
6e6e150be2 WLC: Add force flag for fw upgrade interface
For some reasons, WLC authen test may upgrade FW without
fw version changed. So we add force flag for fw upgrade interface,
to let it could be applied in authen test.

Change-Id: I964984b4dd81e750e17ac23bfe0a5e9cf70a109f
Reviewed-on: https://gerrit.mot.com/2296260
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-14 01:19:32 -05:00
zhangjun10
53f295b746 : tundra : keep nfc irq always wakeupable
keep irq always wake up
can get I2C message from irq

Change-Id: Ie338aec3f3caf90cd910b87ebbfc5089d7ceb7d1
Signed-off-by: zhangjun10 <zhangj10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2298808
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-06-13 02:34:36 -05:00
wangyq13
f04c87e4f3 dlkm: aw2033: set blink mode brightness
- set blink mode brightness, change as set by upper layer
- add logs to debug brightness change issue

Change-Id: Ia602012a27b7d9aacad1ab66148f9d7618141f77
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2294938
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-06-12 21:39:19 -05:00
Yonghua Yan
be6a9eccb7 correct the paired_ichg value before setting
It gets incorrect paired_ichg value before setting to make a wrong
decision on charging current setting.

This issue may cause battery charging out of controlling of battery
charging policy.

Change-Id: If5ed84d5cebc231ecda70dcb919b76c681f52d84
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2298136
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-12 07:14:31 -05:00
longc102
e0bf7314a3 connect 33W charger, the power is only 2.5W
if plug in usb slowly, wt6670 will output float or sdp type
recheck charge type if detect float or sdp

Change-Id: I316d05a5178e4e6f5a3140ba6adf3e4a0c19e987
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2295174
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-06-10 02:01:52 -05:00
Yonghua Yan
15dd6d3da4 Stop charging by paired battery
It's not reasonable to allow paired main battery to
charge the backup battery, as the main battery is
constant power supply for the system power, and it
does not benefit the principle to keep the main battery
voltage no less than backup battery.

Force battery soc to 0 only if paired battery volatge
is lower than empty voltage and soc becomes to 0.

Change-Id: Ifdaed984565f3c696d08fa43696e5b563930adf4
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2294021
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-09 19:40:51 -05:00
Wenge Zhu
014874eac4 Support touch sensitivity in game mode for eqs
Support touch sensitivity in game mode for eqs,default touch report rate
is 240HZ and high report rate is 360HZ.

Change-Id: I5d6f580e05e15bb2cd62ef2500fc1d6559a968d0
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2294916
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-06-09 04:04:17 -05:00
Haijian Ma
7c645fdccc Revert "Revert "(CR): charging: Don't switch dpdm from AP to pmic when host mode""
https://gerrit.mot.com/#/c/2290827/  have fixed build error, 
so restore this change.

This reverts commit ca848f95330b1df33ef437247e478f976b2884c2.

Change-Id: I96d70452970902b240c56c3ada748f9ad822d06e
Reviewed-on: https://gerrit.mot.com/2294495
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-09 02:23:12 -05:00
Haijian Ma
c4404c1548 charging: limit max icl for wireless charging
As sgm41542 ic input current positive error,
so limit 100ma in max icl for wls attestation

Change-Id: I48a7aa7aa8be2709d39eaad891ba1e0f94d0bb61
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2293039
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-08 20:26:34 -05:00
Haijian Ma
d31601786d charging: add wireless icl increase step by step
As HW require, add wireless icl increase step
by step (100ma/200ms) for miami

Change-Id: I8d5a3deb81f106282dcae6c9d41491457c4f222e
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2292877
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-08 20:26:28 -05:00
Konstantin Makariev
8dce1b9e6e drv8424_mmi: update position/status w/o sensors
Driver option to work w/o data from position sensors has a caveat.
Current position at power up is not detected, but set manually.
This prevents Rollable Display HAL from properly updating active
touch region. This change enforces position/status sysfs entries
update when option no sensors present in device tree

Change-Id: If7c1fc59695652816003a192323bc4393f1e184f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2294160
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-06-08 15:08:07 -05:00
Yonghua Yan
3006d8909c remove the sysfs notify from interrupt context
Remove the sysfs notify for sysfs node from usb interrupt
context, as sysfs_notify may be scheduled or sleep.

Change-Id: I45baf51b96506e4df6290b74c3a033240f8a1a83
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2293617
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-08 04:58:24 -05:00
Yonghua Yan
aa3226523c usbnet: add sysfs files for net interface config
Add sysfs files under /sys/devices/virtual/net/usb0/
1. ip address
2. subnet mask
3. iff flag

Userspace program can set the net interface for the usbnet in factory mode,
and read back the ip address, subnet mask, and net interface up/down flag
to configure the net interface via socket ioctl to sending ifrequest.

Change-Id: I5c9d1181823a07467eaa9acd1b722b52f7601bed
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2289066
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-06-07 05:33:56 -05:00
longch99
56274b9880 the charging status shows "not charging",but the charging current is normal
classify ic state error
if ic status is eoc, charge status should be charging

Change-Id: I123a6256275b087762c599cad1a499f75f7aa7a4
Signed-off-by: longch99 <longch99@motorola.com>
Reviewed-on: https://gerrit.mot.com/2287101
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-06-06 02:25:42 -05:00
liuyc20
d5703ed674 introduct MM8013C FG update fw/parameter program
1.update FW || parameter
2.update FW && parameter

Change-Id: Ia6337331feef8a0ab031536e9d472379b9d9f9dc
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2278312
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-06-05 23:56:08 -05:00
Deng Wei
601b2a2e4c tundra: input touch disable double click
disable
double click

Change-Id: I7e24dda85ac7a566c442814af1bf025aa544d50a
Signed-off-by: Deng Wei <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2287289
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-06-05 07:45:39 -05:00
Deng Wei
d42a12308f tundra:input touch upate report rate
set report rate
base on new fw

Change-Id: I15de7af4a4141d142b89edb795434cdf1448f930
Signed-off-by: Deng Wei <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2286669
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-06-01 20:00:51 -05:00
Yonghua Yan
6e4e7b316f Skip ichg set during paired notify in factory mode
Skip ichg set during paired notify in factory mode to avoid
dual battery charging balance policy disturb the factory test.

Change-Id: Id4ddd606e4544f4adf532affee232347ca3efce5
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2286055
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-01 07:06:34 -05:00
hqjiangy
2e01deadfd TP limit test result output[1/1]
TP limit test result output

Change-Id: I134cfdce69a62cb39f67791adbc9e0d84c97ad66
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2285932
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-06-01 05:44:10 -05:00
hqjiangy
eeedb8b512 TP fix tcmd fail[1/1]
TP limit test

Change-Id: I271fbd42a8a92bf957d753cfe787a5d83a30d97f
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2285769
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-06-01 01:52:38 -05:00
hqjiangy
7b7b3fc4c5 TP limit test[1/1]
TP limit test

Change-Id: Ia47564f748c8fdca48ea7da14730aa2cd4322e55
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2285711
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-06-01 00:25:18 -05:00
Wenge Zhu
f6113063b5 Remove unused variable defination in case build error
Remove unused variable defination on touch screen mmi class and goodix
touch driver in case build error on SM8550.

Change-Id: Ie3c759f340c6dd7569d0bb439b7a5d5a3fef5476
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2284829
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-05-31 08:12:55 -05:00
Haijian Ma
3fe2a866c8 charging: if pd active,don't detected HVDCP
Some 3rd charger support PD and HVDCP. The charger will send pd reset
when detect hvdcp and only send fixed pdo to AP. So don't detect HVDCP
when pd active.

Change-Id: I820f7ac1018d65ef02cf242ccabb2e8539c67f87
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2281956
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
2022-05-31 05:20:59 -05:00
xuwt2
949e1838bc factory: Add tx_mode_vout for factory testing
Add factory testing
Read vout of Tx mode

Change-Id: If33a0f3885b2b12ec6ab344f86593e0158eb4d45
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2284794
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-05-31 02:20:01 -05:00
hqjiangy
691a24cae8 TP charger mode[1/1]
touch IC is synaptics

Change-Id: I47342572c8dbfafe1d5743be81ad5e7bbd4d3abc
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2284688
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-31 01:00:42 -05:00
hqjiangy
acbfb03049 TP gesture wake up[1/1]
touch IC is synaptics

Change-Id: I7057eacb50367790d142b9c948c1acc759d96e4b
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2284677
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-30 23:55:08 -05:00
Haijian Ma
728097ddbe cp: add input voltage and current file node
add input voltage and current file node in charger pump
for HW debug

Change-Id: I297a28194b86ce249b105b7ca5a912756a9f5ae1
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2284652
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-30 22:49:40 -05:00
weiweij
9776b190b3 wls-chg: increase wait time for boost voltage
For 2nd charger IC(SC89890H), we found that it will take about
100ms to boost voltage. So we have to increase delay time to
wait boost voltage stable.

Change-Id: Icae4af50141188dfb89fefb5d1f1c0c75ae454ee
Reviewed-on: https://gerrit.mot.com/2283852
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-05-30 22:21:08 -05:00
Wenge Zhu
661042eff0 Fix kernel trace when execting mutex lock
Init mutex lock before use or will cause call trace:
05-17 16:54:07.141 1504 1504 I Call trace:
05-17 16:54:07.141 1504 1504 I : __mutex_lock+0xc7c/0xdcc
05-17 16:54:07.141 1504 1504 I : mutex_lock_nested+0x4c/0x5c
05-17 16:54:07.141 1504 1504 I : cyttsp5_sensor_set_enable+0x4c/0xac [parade_tma5xx_mmi_core]
05-17 16:54:07.141 1504 1504 I : sensors_enable_store+0x88/0x104 [sensors_class]
05-17 16:54:07.141 1504 1504 I : dev_attr_store+0x38/0x8c
05-17 16:54:07.141 1504 1504 I : sysfs_kf_write+0xa0/0x100
05-17 16:54:07.141 1504 1504 I : kernfs_fop_write_iter+0x1b0/0x2f8

Change-Id: Ib1812c5a1b5b0e2fdb9b620dc26a256b3feb0fcf
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2283850
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
2022-05-30 04:44:28 -05:00
Wenge Zhu
a17c871168 Fix CLI touch easywake failure
Before read touch report data from touch IC when in easy wakeup state,
wait for I2C bus controller to wake or I2C communication will fail.

Change-Id: I8e33fac59b089f46bd71c2361ca7396d1ae8ac5b
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2282270
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-05-30 02:35:19 -05:00
Haijian Ma
fb5f11ae52 charging: optimize PD capacity select algorithm
In order to be compatible with more 3rd PD charger, optimize
PD capacity select algorithm.

Change-Id: Ieab59321a9ca300bb1e12b1f7b6a12d0f4ade707
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2280621
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
2022-05-29 22:54:17 -05:00
qiurp1
6b6e05c2cb rtwo: add log
fix issuse:variable 'ret' set but not used

Change-Id: Ib25d5b56f02eb3c5a23e088739b72c44bdb058eb
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2282049
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-05-27 10:05:22 -05:00
wingte49
c32d8edb54 motorola:Rhodec:Update chipone_fhd_mmi
Modify:
 Prevent the module from being disconnected when starting up.


Change-Id: I6f4cbe2d24ec9673f38b0b0589aae323f6b7c240
Reviewed-on: https://gerrit.mot.com/2279582
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-05-27 05:11:12 -05:00
longc130
5494085c90 Devon:Optimize The FPC Power-on Process
By fpc power-on hw test:rst and vcc power-on time interval 
error rst and vcc power-on processtime interval error

Change-Id: I445422795d98278f2b4941e47c502504d1bccea8
Reviewed-on: https://gerrit.mot.com/2272241
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-05-27 01:37:56 -05:00
Wenge Zhu
cfa37b64df Fix goodix touch SPI config compile error
Moto driver module compiled using qcom makefile from 8450/8475/8550 and
it does not support KERNEL_CFLAGS,so in these plaform we use
KBUILD_OPTIONS.

Change-Id: I6dbcf28b194201ac19a40e891683acc667893b34
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2281001
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ping Xiao <xiaoping@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-05-26 08:12:00 -05:00
Deng Wei
fc65cf4672 tundra: input touch use boottime to get timestampe
use boottime
to get timestampe

Change-Id: If5f678b542a4a9b2b46ea5ec6b263510cc16ea94
Signed-off-by: Deng Wei <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2279515
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-05-25 05:15:55 -05:00
qiurp1
a90e01d022 ONELI: add sar sensor log
add sar sensor log

Change-Id: I73bfb9692316d26971e04ff894ab104accb63181
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2279259
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-05-25 04:37:05 -05:00
Haijian Ma
1126a1c7e3 charging: reset dpdm when charger removed
The issue is HVDCP charger inserted and removed, and then OTG
device can't connected. Because dpdm don't auto reset in bq25890H.
So reset dpdm when charger removed.

Change-Id: I8a145379de10310e02b356c60d1cc25c87e513f8
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2279387
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-25 04:27:46 -05:00
longc104
77d1c0a0e9 rt9471 not charge 3min during a complete charging test
rt9471 charge state is chg done when charge pump quit
set rt9471 charge state eoc reset

Change-Id: I1828cdb2df7a625205807bb295bd9ada51551237
Signed-off-by: longc104 <longc104@motorola.com>
Reviewed-on: https://gerrit.mot.com/2278315
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-05-25 03:41:45 -05:00
hujing3
5f3dc5f3a1 focaltech_0flash_v2_mmi: enable FTS_PATCH_COMERR_PM for deep sleep
focaltech_0flash_v2_mmi
enable wait mechanism for bus deep sleep

Change-Id: I7a6d0b65ce5a64b879c5957b9016036450c28623
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2278268
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-24 22:01:02 -05:00
Haijian Ma
cc4f1a773d charging: add config charger mode to FG
As mm8013 fg need charger mode info, so add config charger
mode to FG

Change-Id: I70758ccdc6ce0328cf4e7959782d77df7a282cf9
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2274890
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-05-24 21:40:37 -05:00
liuyc20
fd90788699 fg: add api to write temperature/chargeType to fg interior
apply to fg FW V 0812
need write tepmerature/chargeTyep to fg interior when charging

Change-Id: Ic5faba103e11ab1143234d297cd4f9dfe2574a93
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2272161
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2022-05-24 21:40:31 -05:00
Haijian Ma
7c7177a3a4 Revert "charging: Don't switch dpdm from AP to pmic when host mode"
Revert first,
because build error

This reverts commit 07a95e30fedd835de2e1b0f2a61a0cd9e23fa10b.

Change-Id: I42232ac2bff46e2808d7b0c26f30c021da8df4ee
Reviewed-on: https://gerrit.mot.com/2279036
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-24 21:39:33 -05:00
Konstantin Makariev
dc8383a32c drv8424_mmi: relative positions, gpio init and reset
Fix for relative positions location. Peek position is farther
from Extended than Compact. Init state can be defined in device
tree to properly initialize GPIOs. Sensors data check became
optionally configurable via device tree property.

Change-Id: I7e31801d86e782e1ac7f5bdd3df0ef6cde7b6b0a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2271623
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-05-24 15:15:51 -05:00
weiweij
0732d05b33 wls-chg: change psy/voltage_now's value to vout value
For the file pointer of psy/wireless/voltage_now, it should be the result
of VOUT value. If we use the result of vbus(from usb/voltage_now), it
could not distinguish between the result from charger out and the one
from wireless out. Meanwhile, the required voltage unit is 0.1mV. So
we should make the result by 10.

Change-Id: Ibf6e657da8bd594985c64cf2aabe004b153e78ea
Reviewed-on: https://gerrit.mot.com/2278185
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-24 05:06:50 -05:00
Yan Zhang
86843361fe Add timestamp log for FOD debug
Tundra:
Add timestamp log before and after image capture for
debug ICON issue.


Change-Id: Iec96b515c2c62b97cf4b6b865aa4d9c9df0d84b5
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2277879
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-05-24 04:15:16 -05:00
hujing3
99e6f06fc2 focaltech_0flash_v2_mmi: disable FTS debug config by default
focaltech_0flash_v2_mmi
disable FTS debug config by default

Change-Id: Ib6b0fda454e56053db8e1f3b564abec6327ee38c
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2278176
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-24 03:44:40 -05:00
hujing3
45f76c2fcc focaltech_0flash_v2_mmi: single tap gesture not work fix
focaltech_0flash_v2_mmi
fix single tap gesture feature, remove invalid gesture invoke

Change-Id: I269a51346c40a4cc4409378342e29073d7e0acf6
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2278143
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-05-24 03:44:34 -05:00
mahj8
9554e1f581 charging: Don't switch dpdm from AP to pmic when host mode
The charger is inserted when usb is host mode, as charging want to
switch dpdm for detecting charger type, urb communicate error.

Change-Id: I938d80bc3428add5a7a1d82d4631cbffdaf1ce71
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2273301
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
2022-05-24 01:40:04 -05:00