Commit graph

2,914 commits

Author SHA1 Message Date
Lei Chen
77db14c6c2 charger:seperate the FFC and none FFC parameter
SDP and DCP charger should not use FFC parameter. Seperate
the FFC and none FFC parameter.

Change-Id: I1a95d632d5cbccc9803d1fcbc81e8a62fe3a0a64
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2592241
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-05 01:15:01 -05:00
Wenge Zhu
ec7d16daad Support touch assit p-sensor dectection
Support TP assist p-sensor detection due to ultrasonic
p-sensor limitation.

Change-Id: I71c7ee1ddbd800dae4e8188ed6ca5c8260262f7d
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2579809
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-05-03 22:37:54 -05:00
xuwt2
549988a6b9 mmi_charger: power_changed when charger register susccess
Throw out BATT_PSY power_supply_changed
when mmi_register_charger_driver success.
It order to update the battery status more timely.

Change-Id: I7ea63a9340c44a2393ac86ab2b6cb94c62cb5905
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2592493
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-04-28 06:21:37 -05:00
tin_bingtai.zou_tmp
acbd1b6d19 fix read Board level Capacitor Compensation Value
1.009b07 read Board level Capacitor Compensation Value is 0
2.modify aw96308 driver

Change-Id: I232230Montana61914246b6438b684edcf3ddd848fae
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2592259
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-04-28 03:29:13 -05:00
xuxj
8a73a52922 sc760x_charger_mmi: no need to return failed
sc->thermal_ratio assign to default value, so no need retrun failed if
not define thermal-ratio in dts, or sc760x may register failed

Change-Id: I8f0494c85bf36caad9aa8d5340d8bcc70e779b5a
Signed-off-by: xuxj <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2592059
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-28 01:22:11 -05:00
tin_bingtai.zou_tmp
be0aa66192 The probability of sarsensor not being mounted
1.modify the problem of null pointer
2.PMIC supply
3.test result:pass the test results of 50 verifications of primary and
secondary sar

Change-Id: I94d4855ddcdb90ce9f8d2660f7d07f44b96aa14e
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2586600
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-04-25 02:42:12 -05:00
Yonghua Yan
2a71b6e13c Add more sku types and typec cid support
Add more sku types definition and add typec connector insertion
detection support in lpd_info structure.

Change-Id: I41b856c853c2e8ce6df024d1a1577ad56c97e72a
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2569869
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-24 08:18:01 -05:00
litong20
1e1506a5e5 fg_cw2217b: Ensuring monotonic variation of soc
fg_cw2217b:
Ensuring monotonic variation of soc

Change-Id: If13fbfcbd32e8e8897388b236c5355838c7e114c
Reviewed-on: https://gerrit.mot.com/2586781
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-24 03:57:16 -05:00
litong
a8cb200aab Revert "(CR): Ensuring monotonic variation of soc"
Revert:
This reverts commit daaaf64b38c53308fba2615213bacc64bcdb8bd0.

Change-Id: I8e75ac6d8753f68c0fb542df3b307f9ad77fed82
Reviewed-on: https://gerrit.mot.com/2586578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-24 03:57:09 -05:00
tinno61
450bdaa547 modify focal tp
bangkok:add macro and remove unnecessary 
for focal tp dirver

Change-Id: Ic4c1cb53cc5b2f1d69c84b804f44c7a4c6a5dfe7
Reviewed-on: https://gerrit.mot.com/2585802
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
2023-04-23 03:12:39 -05:00
tin_bingtai.zou_tmp
3fa32c60ae optimize aw963xx driver
1.optimization of secondary interrupt triggering logic for sar
2.modify driver aw963xx

Change-Id: I81782749f4cc8c62be421316e9d367f0d9d92156
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2585232
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-04-23 01:21:54 -05:00
xuwt2
bf8f9b9fd0 sc760x_charger_mmi: Update sc760x_en to psy_property
1, fixed kernel warning for irq balance
2, update sc760x_en to psy_property

Change-Id: I4ffbd0dd17891b0f623c7f922f687888d9c3ac2b
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2580762
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-19 01:18:23 -05:00
litong20
9eb7fe65ac Ensuring monotonic variation of soc
Ensure that the power monotonically increases during charging
and monotonically decreases during discharging.

Change-Id: I4ef202daf4b65e0640e4794d7f74a17241051c25
Reviewed-on: https://gerrit.mot.com/2575379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-17 05:06:25 -05:00
tin_bingtai.zou_tmp
99381ee852 optimize aw963xx driver && insert usb calibration
1.optimize driver about multiple mode
2.insert usb calibration(aw config flag in dts)

Change-Id: I392f5cf266647abf3b6eb0aa649f8061d944871b
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2575217
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-04-14 02:48:10 -05:00
tinno61
fde9bdffea bangkok focaltech tp modify for system crash
bangkok:remove focaltech fod log,because too many logs in
interrupts can cause system crash

Change-Id: Ia7444d41a1e60398b5524938299e457b8f96527d
Reviewed-on: https://gerrit.mot.com/2574799
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
2023-04-13 01:00:24 -05:00
xuwt2
8cc8dc29b0 sc760x_charger_mmi: Support THERMAL_RATIO_CONTROL
Dual battery thermal mitigation, Add equal ratio thermal level control
Define THERMAL_RATIO_CONTRO to enable this feature.
It will ignore thermal-mitigation-level and force to rewite new thermal
level through calculating the (batt_fcc_ma/thermal-ratio) of parnter
battery

Change-Id: Ib44eccfe540b6d8d705bb53fb5001207288a7b85
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2567981
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-12 01:34:26 -05:00
litong20
e831fbc96e cw2217b: add some logs for soc jumping debug.
In order to debug the problem of fuel gauge soc jumping,
add some debug logs,

Change-Id: I5b6adf50d496126059366a0c322915a0f533acd4
Reviewed-on: https://gerrit.mot.com/2567828
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-04-06 21:24:52 -05:00
Wenge Zhu
6f245b1a79 Check if i2c device available before add driver
TP:
Check if i2c device available before add driver.

Change-Id: Ia53cf3f952c5742632c0e105db95e19e4d02ce31
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2565327
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-04-04 08:26:48 -05:00
litong20
c1f9c09b52 Support the input charge current limit for wireless charger
sgm4154x:
Support the input charge current limit setting for wireless charger.

Change-Id: Iaaadbf4936099c7614471d72d288c26969862095
Reviewed-on: https://gerrit.mot.com/2557864
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-04-03 04:47:00 -05:00
dengwei1
e1f4334059 bangkk: input touch add config for bangkk only
add config
for bangkk only

Change-Id: Icca83595a7adfffc426062020fec96b1870de824
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2561448
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-03-31 02:20:29 -05:00
Wenge Zhu
6dc1866214 Add Wait pm for zinitix touch gesture feature
Before communicate with touch IC after receive gesture irq,need wait pm
resume success or read gesture data will fail.

Change-Id: I55cfdc41244e1b9f159770046be64bed337f0d18
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2558492
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-03-29 04:33:24 -05:00
LiZidong
785924f871 Bangkok add focal tp vdd gpio low
add foocatech touch 3.3v control low
when suspend

Change-Id: If29a6bfd757c22bebcc043332f5085030c1c40ba
Reviewed-on: https://gerrit.mot.com/2558318
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-03-29 02:55:57 -05:00
LiZidong
1db593bdaf Bangkok modify for focaltech touch fod
focal touch : add touch fod and double tap
driver

Change-Id: Ie44df42c7ad3aa361c54e351ec2d2bfc67c3a96f
Signed-off-by: LiZidong <tnlizd@motorola.com>
Reviewed-on: https://gerrit.mot.com/2556803
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
2023-03-29 02:26:03 -05:00
tin_bingtai.zou_tmp
4b93d45e50 sar sensor bring up 1/2
1.sar sensor bring up
2.modify sx937x driver for secondary sar

Change-Id: I3eef88077a14e7e1dab92c860406d0b1ee35a02c
Signed-off-by: tin_bingtai.zou_tmp <tinno60@motorola.com>
Reviewed-on: https://gerrit.mot.com/2552802
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-03-27 05:32:41 -05:00
tnyangc
5540075a2b sar sensor bring up -aw
1.sar sensor bring up
2.add aw driver

Change-Id: I42564cc4393fdbe30a63722d544b7e84c578a177
Signed-off-by: tnyangc <ramiel.yang@tinno.com>
Reviewed-on: https://gerrit.mot.com/2554436
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <yangyi31@motorola.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-03-27 04:40:20 -05:00
tinno61
f6c3a009e1 Bangkok modify for focal to no touch
some focaltech tp no touch : modify timing of iovcc and

vdd,first vdd,the second is iovcc.and issue is already fixed.

Change-Id: I8170cb474d84c50ab068fecfda88679419710f5e
Reviewed-on: https://gerrit.mot.com/2554227
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
2023-03-27 02:36:10 -05:00
liuzhen
b115dc9ae5 add some param for bq25980 driver
1.enable ADC_EN for sc8541
2.add cp_switch for bq25980 driver
3.add STATU5 BIT(6) for cp_switch status

Change-Id: I0d754115b67161327f62b79cf023794c255cd5bb
Reviewed-on: https://gerrit.mot.com/2553725
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
2023-03-27 01:05:12 -05:00
LiZidong
5bacf09647 Bangkok TP bring up
add bangkok focaltech tp driver,add the focaltech driver
vdd 3.3v and x16 resolution.

Change-Id: Ib253920a10718b34fd934e51a11156fdc8180b03
Signed-off-by: LiZidong <tnlizd@motorola.com>
Reviewed-on: https://gerrit.mot.com/2551020
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
2023-03-24 00:43:46 -05:00
Wenge Zhu
c2b0312f38 Add touch pocket mode feature
TP:
Add touch pocket mode feature for focaltech.

Change-Id: I7c6feaff5e8d5eee512d63f07a3586a85615d374
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2518204
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
2023-03-23 20:47:30 -05:00
xuwt2
aa344af5ee sc760x_charger_mmi: fix build error of irq_enabled
sc760x_charger_mmi:
fix build error of irq_enabled

Change-Id: If62e67c8938bb43145aa087244967bc022a6a0d8
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2548792
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-21 21:10:46 -05:00
xuwt2
e144cc561d sc760x: Do not enable IRQ until sc760x gpio enable
sc760x_mmi_charger:
Do not enable IRQ until SC760x gpio enable

Change-Id: If74f94c55be02e02b5318d198928a65577483c9d
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2547822
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-03-21 08:38:25 -05:00
Xiaojun Lv
0a57ba56dc backlight: aw99703 use exponential curve for genevn
backlight:
aw99703 use exponential curve from kp to avoid flickering when changing light environment.

Change-Id: If01d5ebda7c2a7bf276387f34ad48a00a9163057
Reviewed-on: https://gerrit.mot.com/2543541
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
2023-03-18 07:21:45 -05:00
xuwt2
1913630153 sc760x: remove sc760x_dump_reg from irq_handler
sc760x_charger_mmi:
remove sc760x_dump_reg from irq_handler.

Change-Id: I125b093c911768ab1a249738b8a5fbaf26470221
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2543575
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-17 06:06:06 -05:00
Wenge Zhu
ef0d746f8a Add gesture pm for goodix touch
TP:
Wait bus ready before read gesture data from IC.

Change-Id: I17caa70cadcb0a3ac9c4399481c11e43e8a8ef1c
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2543551
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-17 05:29:42 -05:00
Wenge Zhu
8c5f51048d Reduce firmware upgrade time for zinitix touch
TP:
Reduce firmware upgrade time for zinitix touch.

Change-Id: I84dc7e9588fc02fc973eb3fd163f179e5105fea2
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2537396
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-03-14 04:08:46 -05:00
xuwt2
5f3b590c25 sc760x: Check gpio_en before access I2C bus
Check sc760x gpio_en before access I2C bus.
Improve system stability

Change-Id: Ifd0a2d811fa0e216570d15deb748c8ce6165743e
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2538172
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <xuxj12@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-14 01:45:28 -05:00
Srihari Sathyanarayana
dbdc900d3c Documentation:ledtrig-sol:Add led trig support
Added documentation for led trigger support with sol tri led
wrt battery status.
This will add trigger driver on top of QTI Tri-led driver

Change-Id: I050a9f42f9b2b3af156d8c86cca28a0151385b74

Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Change-Id: I050a9f42f9b2b3af156d8c86cca28a0151385b74
Reviewed-on: https://gerrit.mot.com/2523300
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Perry White <awhite6@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Mahesh Med(CR) <maheshmk@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-14 01:00:07 -05:00
Gilberto Gambugge
b37868629d nova_0flash_mmi: fix build failure
Fix 'undefined symbol' build failure at kernel 5.4:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ERROR: "mmi_device_is_available" [../../motorola/kernel/modules/drivers/
       input/touchscreen/nova_0flash_mmi/nova_0flash_mmi.ko] undefined! 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Change-Id: I4ab25a9b25e2a852951a72bd82a6f1531d1fa6a2
Reviewed-on: https://gerrit.mot.com/2517947
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Tested-by: Jira Key
Reviewed-by: Marcelo Pincinato <mpcinato@motorola.com>
Submit-Approved: Marcelo Pincinato <mpcinato@motorola.com>
2023-03-13 16:06:00 -05:00
xuwt2
7d45d05c31 cw2217: Dynamic adjust UI_FULL
Discharge:
update UI_FULL to Real_SOC when real_soc > UI_FULL
Charing:
adjust UI_FULL to close to UI_FULL_SET step by step

Change-Id: I443cbacb29bfef9198855256e79e700753312fed
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2536020
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-13 06:06:41 -05:00
litong20
aea77fa8f4 The current units should be consistent.
The unit of thermal_fcc_ua is ua, but the
unit of target_fcc is ma.

Change-Id: Ic7065344f417adbd840efe473005861a69428e70
Reviewed-on: https://gerrit.mot.com/2536876
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-13 01:52:26 -05:00
Yonghua Yan
08c088e43b Optimize the charger control logic
1. Disable charger only when charger is offline and vbus is bad.
2. Get charger status from wireless charger if wireless charger present.
3. Get charger ibus limit from charger current_max property
indicating the AICL value for BC1.2 charger.

Change-Id: I0ff51a15d6faf4f545fcda200ae531240e531e04
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2536492
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-12 22:56:40 -05:00
xuxj12
6591ba0f33 sc760x:ensure that user configuration takes precedence
user ibat set failed in factory test

Change-Id: I395103e82dd60b5ed5f55a7953222d809fb1b700
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2534444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-03-09 05:53:53 -06:00
litong20
e9e36e9fca ensure that user configuration takes precedence.
sc760x:
If there is no user configuration, set the value of thermal limit.

Change-Id: I0866031ab7f33445846d868d2fa4202c51812185
Reviewed-on: https://gerrit.mot.com/2532545
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-03-08 03:38:23 -06:00
liujian24
9f6038ec4a Pnangn:Upgrade Egis SDK to v1.0.10
Upgrade Egis SDK to v1.0.10 on Pnangn
Add necessary feature in driver to support v1.0.10

Change-Id: Ifcbbb5a3c845f65e1fb2449527d678c564bbdbca
Reviewed-on: https://gerrit.mot.com/2530517
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
2023-03-06 21:14:13 -06:00
Srihari Sathyanarayana
9381d10c95 SOL Led: Sync set brightness call before blink set
On closed Oberon unit we saw SOL led not blinking due to sync issue of
led_set_brightness with blink set.
Add led_set_brightness_sync which is a blocking call till blink set.
This will enable setting blink smoothly without conflict with brigtness.

The patch will also use flush_work before setting brightness so no more
delay required before new brigtness setting.

Change-Id: I840cb3398b40725bd928816f4871cbdcba6759a1
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-on: https://gerrit.mot.com/2526344
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-03-06 14:13:21 -06:00
Wenge Zhu
80770b4416 Increase CLI touch raw data level for lynkco
Increase CLI zinitix touch raw data level
for lynkco.

Change-Id: I8344c047bec30caa8c9baef0c6dd77c4eaf8bb19
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2529230
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-03-05 21:41:20 -06:00
xuwt2
378a5409af sc760x_charger_mmi: limited ibatt step by step
-1, select ibatt limited by voting
MIN_VAL(thermal-limit-curr, step-chrg-fcc)
-2, set ibatt limited step by step
the step curr is 50mA
-3, dump sc760x regs at sc760x_get_state

Change-Id: I232c6bfbce4c01090c6a3a536fcea855b4d5b8ff
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2526372
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2023-03-03 07:21:52 -06:00
Wenge Zhu
aacfd4eda7 Fix multi-finger touch error logic
Fix multi-finger touch error logic,previous change will cause
not released down event.

Change-Id: I69509221ef9fa15119bbb072ce3a4a493d7bc8c0
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2526281
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2023-03-02 06:15:37 -06:00
xuwt2
495fcf0d67 sc760x: fixed build err
sc760x_charger_mmi:
fixed build error

Change-Id: I78d66d43a75780612ed9a338f3c70c669bcd364b
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2526086
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-02 03:31:56 -06:00
xuwt2
ebbca485d2 sc760x: Dynamic check sc760x power on
Checking dual battery voltage.
Then decide whether to turn on sc760x.

(Discharge && main_vbatt - flip_vbatt > 200mv)
Does not turn on sc760x

Change-Id: I31180f6404f901e618751fc18e7713bf1351a865
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2523788
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-03-02 01:10:52 -06:00