Commit graph

1,878 commits

Author SHA1 Message Date
litong20
c67f5d4ade Support touchscreen calss in the goodix drvier code.
TP:
Add initial support for touchscreen calss in the goodix drvier code.

Change-Id: I056be5b1d6f5f92493a77c237727a5ee9eeb4e11
Reviewed-on: https://gerrit.mot.com/2038606
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-09-07 22:08:57 -05:00
xuwt2
bd4c7cab96 qti_glink_charger: move WLS property types to the end
qti_glink_charger is moto common module, it is used by several
moto projects(berlin/yukon/rouge)
the new property type must be add to the end, otherwise it will
affect other projects.

Change-Id: Icaa0e121b3efdf11dbf712eb06011ad5941f6929
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2061419
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-09-07 05:44:44 -05:00
zhouzs1
7c5df55ab7 GKI kernel build upgrade
GKI kernel build may error since spi_set_cs_timing
is not in google whitelist

upgrade as kernel verion

Change-Id: I1ea0b1e23c15fd218ff0a2aee5f584f2cbf0dcc4
Reviewed-on: https://gerrit.mot.com/2060952
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-09-07 04:50:46 -05:00
qianlong
6b3cd4b54c build: Only include modules needed by product
It takes long time to include all DLKM's makefile even if the
product does not need this module.

Change-Id: I8629ac29a3f7e115c04dc24d2508366314716dac
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059989
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-09-06 05:06:24 -05:00
Yan Zhang
b03369e4a4 set screen default state to on
rbs driver:
set screen default state to on

Change-Id: I965fa0b2cdc0e3e15b584de2c73e78c1401cf86b
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059942
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-09-06 01:09:54 -05:00
liuyc20
59a7582ef2 dlkm: sd77426 modify battery NTC table
-milanf sd77426 pull_up_R is 100k
-porting NTC table

Change-Id: I2c1919c5ba420722e0e92419b0fabc685682b344
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2058840
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-05 20:43:25 -05:00
Bernie Moreno-BERNIEM
f9df0a9f8f fet_control: Add fet_control driver, full_current_en
Add fet control to enable low-z batt2 path after both batteries
have had tome to equalize under the balance_en_n setting.
EVB does not have an adc-in to read batt2 level directly, support
will be added on EVT1 hw. So until then, check for vbatt_main at
mid Voltage to cutover the battplus_en path, while current is low
i.e. < 250mA.

Change-Id: I53f5c13c881dd0cf0cf93af8c153f866dfcfad6d
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2057382
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-09-03 11:16:11 -05:00
mahj8
e029047840 charging: add usb property
add usb property
for other modules to get usb state

Change-Id: I7c6c15ebd1612990f07738ce4c6374857013b44e
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2059196
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-03 05:36:22 -05:00
mahj8
63a5a658aa charging: update sgm41542 driver V002
update sgm41542 driver V002 for milan 5G
got from vendor

Change-Id: I9e7882d36d5cd785b8cdca66d1a73da80d72da43
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2056763
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-03 05:36:15 -05:00
Ravikumar Vembu
bbabbcb7a0 usb: mass_storage: Add support for SC_REBOOT
Add support for a vendor specific SCSI pass through command to
trigger reboot.

SC_REBOOT (0xd7) - triggers reboot into fastboot mode
SC_REBOOT_1 (0xd8) - triggers reboot into normal mode.

Propagated from (CR)

Change-Id: I4fc4839968135a63c594dca69b1dc93699e4a9bc
Reviewed-on: https://gerrit.mot.com/1750946
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/2053807
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
2021-09-02 03:59:45 -05:00
chailu1
391d66619c typec: define sgm7220 typec func
Define more sgm7220 typec func prevent to
kernel panic.

Change-Id: I4534a7467e6585f9deb2e93eef2c61191018cee3
Reviewed-on: https://gerrit.mot.com/2057764
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-09-02 03:55:58 -05:00
yanyh2
269b84091d fix mass_storage module GKI build issue
Modify the mass storage driver to build as a Motorola module
following Android GKI rule.

Change-Id: I278ce964d1689fb8dbf0df7b7e098e210d664565
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053806
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Submit-Approved: Jira Key
2021-09-02 03:52:54 -05:00
yanyh2
1ae623bb38 copy mass_storage driver from Kernel as initial version
Copy the mass_storage driver from Kernel source as initial version
of Motorola mass storage base.

Change-Id: I0d95b47de5c1463164843d9e8cebce06e9492e52
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053805
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2021-09-02 03:48:01 -05:00
chailu1
b3de4df72d typec: improve rt1715 code
/* Release Version
+ * 2.0.16_G
+ * (1) Check the return value of wait_event_interruptible()
+ * (2) Revise *_get_cc()
+ * (3) Revise role_def
+ * (4) Fix COMMON.CHECK.PD.10

this changes come from richtek patch05

Change-Id: Ic9bc97a980859003bb8a4417bc76b1ec52a2dc46
Reviewed-on: https://gerrit.mot.com/2057498
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-09-02 00:34:49 -05:00
chailu1
6678d3f37e typec: remove qcom pmic code
Remove qcomp pmic code
this changes come from richtek patch06

Change-Id: Ia5a1dc44ecd5d2843f30951585144958f7de10da
Reviewed-on: https://gerrit.mot.com/2057499
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-09-02 00:34:20 -05:00
chailu1
bb11b88513 arm/dts: improve rt1715 typec and pd compatible
+ * 2.0.15_G
+ * (1) undef CONFIG_COMPATIBLE_APPLE_TA
+ * (2) Fix TEST.PD.PROT.ALL.5 Unrecognized Message (PD2)
+ * (3) Fix TEST.PD.PROT.ALL3.3 Invalid Manufacturer Info Target
+ * (4) Fix TEST.PD.PROT.ALL3.4 Invalid Manufacturer Info Ref
+ * (5) Fix TEST.PD.PROT.SRC.11 Unexpected Message Received in Ready State (PD2)
+ * (6) Fix TEST.PD.PROT.SRC.13 PR_Swap - GoodCRC not sent in Response to PS_RDY
+ * (7) Fix TEST.PD.VDM.SRC.2 Invalid Fields - Discover Identity (PD2)
+ * (8) Revise the usages of PD_TIMER_NO_RESPONSE
+ * (9) Retry to send Source_Capabilities after PR_Swap
+ * (10) Fix tcpm_get_remote_power_cap() and __tcpm_inquire_select_source_cap()
+ * (11) Increase the threshold to enter PE_ERROR_RECOVERY_ONCE from 2 to 4
+ * (12) Change wait_event() back to wait_event_interruptible() for not being
+ *     detected as hung tasks

this changes come from richtek patch04

Change-Id: Ida06c5af3df73a42ba140a5b5d10b97b739fe3fc
Reviewed-on: https://gerrit.mot.com/2057497
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-09-02 00:34:16 -05:00
qiurp1
18114899c1 hall pen kernel bringup
hallpen_sensor bringup

Change-Id: Iec39f4515a6ae090e811a6d8332155ef1403267e
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2055032
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
2021-09-01 04:52:46 -05:00
chailu1
2065b62ede typec: Add sgm7220 driver initial version
typec/sgm7220
Add sgm7220 driver initial version

Change-Id: I5b9582d369a574b16c5cf13a5016c0d51ddc9abf
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2041140
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-01 02:11:12 -05:00
mahj8
ca1e5cb306 charging: add bc1.2 feature
add bc1.2 feature for sgm41542
and do rerun apsd if required

Change-Id: I5b78941957a26187bad27f15714447b2031b1747
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2055145
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-31 04:12:24 -05:00
mahj8
85c89b9046 DLKM: force 5V/2A charging
in system bring up process, force 5V2A charging
firstly.

Change-Id: I8bf8119c5b907de0311449a0c969a87c01d69df8
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2049664
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-31 02:12:47 -05:00
mahj8
00d6b1a57f charging: fixed build error for sgm41542 default code
fixed build error for
sgm41542 default code got from vendor

Change-Id: If10d7e458f04af77282373a818b281e2b4a21859
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2042154
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-31 02:11:36 -05:00
mahj8
237792c95f charging: add SGM4154x charger basic driver
add SGM4154x charger IC basic driver
get from vendor

Change-Id: Ief05dfc4c7fac5a2c25b346449558b91555caf8f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2041011
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-31 02:11:29 -05:00
Konstantin Makariev
1bb8ed47e5 pct1812_mmi: self-test and sysfs interfaces
Added self-test capabilities: full raw data, SNR and draw line.
Added sysfs interfaces to support IC version and firmware update

Change-Id: I93359b60354e728853a7e43a3ca2fb71c1953987
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2041728
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-08-30 18:06:13 -05:00
liuyc20
5b16a0eba0 power: add detect sd77624 ic hw
if detect sd77426 hw fail then exit this driver.
To Compatible with other FG drivers.

Change-Id: I7a27a403965f9df9a350481a2107bf93cfa7f91c
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2054354
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-08-30 07:01:33 -05:00
litong20
50d5a673b2 goodix_brl_mmi: Add mmi status check.
TP:
1. Add "mmi,status" check to goodix driver's probe.
2. Add touch pinctrl settings.

Change-Id: I34581d199a80c4e03cd0e94332ca5cd8ad6d87e4
Reviewed-on: https://gerrit.mot.com/2053118
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-08-30 02:41:46 -05:00
litong20
9432419679 Modify the goodix driver code format
TP:
Delete the symbol ^M at the end of each line of the driver code.

Change-Id: Icf5b64b01ae3c27c1d942e0d0d02056f32cb41c8
Reviewed-on: https://gerrit.mot.com/2038562
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-08-30 02:41:38 -05:00
Yan Zhang
14e37d1dc7 Update the poll mask when polling is aborted by hal
Egis:
Update the poll mask when polling is aborted by hal to support polling
wait forever. do not impact previous 30ms polling mechanism.

Change-Id: I1f6a2adb38f0282e944dde60539cd51179f5c733
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053956
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-30 02:09:58 -05:00
Jichao Zou
ac31279ac7 mmi_sys_temp:fix compilation error.
motorola/kernel/modules/drivers/misc/mmi_sys_temp/mmi_sys_temp.c:118:23: error: implicit declaration of function 'compat_ptr' [-Werror,-Wimplicit-function-declaration]
        arg = (unsigned long)compat_ptr(arg);

Change-Id: Ifba590fd36a743e7d62df81c82fcc4839b7c816a
Signed-off-by: Jichao Zou <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/2053149
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-08-30 00:37:58 -05:00
liuyc20
39f07e421e power: update sd77624_fg driver
-Standard Code Writing Standard
-Remove unnecessary code
-Optimize driver loading time

Change-Id: I98ae5a17572cf1a12d9d20d85b671e056856a7da
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2049092
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-27 05:20:07 -05:00
xuwt2
6fc618d1a6 qti_glink_charger: Add sysfs node for factory wireless testing
1, USB_SUSPEND
2, WLS_EN
3, WLS_VOLT_MAX
4, WLS_CURR_MAX

Change-Id: I9d7f724657733cb158279cee175cf83af3813a70
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2051640
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-08-27 02:41:51 -05:00
chailu1
aa2cd50868 charge:Enable aicl at factory boot mode
If disable pm7250b aicl will cause a issue: battery voltage
will reverse to vbus side after remove usb cable.
so add a flag to enalbe aicl for some products.

Change-Id: Ide22d43546ffe8ad97b8179aede243f71fe1d246
Reviewed-on: https://gerrit.mot.com/2052603
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-26 22:13:03 -05:00
liaohj
aae469fe31 touchu:gc7372 tp modify for charger test and gesture
add charger test and gesture driver code.
charger test defaut set false .

Change-Id: If5f5776ea9add55ee768a4800f2a3413aa223262
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2051575
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-26 03:45:46 -05:00
a17671
c9837700df usbnet:USBLAN Super speed plus support
Set the ssp_descriptors as ss_descriptors
in Moto USBLAN driver, otherwise
panic will be triggered when connected
With super speed plus supported PC

panic trace:

configfs-gadget gadget: super-speed-plus config #1: b
 configfs-gadget gadget: usbnet_set_alt intf: 1 alt: 0
 configfs-gadget gadget: do_set_config ep ep2in
 configfs-gadget gadget: config_ep_by_speed ep ep2in
 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
 pstate: 60c00085 (nZCv daIf +PAN +UAO)
 pc : config_ep_by_speed_and_alt+0x90/0x308
 lr : config_ep_by_speed+0x14/0x20
 sp : ffffffc0131f3980
 x29: ffffffc0131f3990 x28: 0000000000000001 
 x27: 0000000000007fff x26: ffffffe13d3f3254 
 x25: ffffff81c041Montana0 x24: ffffff81c0504f00 
 x23: 0000000000000001 x22: ffffff81c07bf480 
 x21: 0000000000000001 x20: ffffff81c0504f00 
 x19: ffffff81c166ca00 x18: ffffffc012931080 
 x17: 0000000000000041 x16: ffffffe13d3e4b0c 
 x15: ffffffe13e0a9197 x14: 0000000000000050 
 x13: 0000000000001e06 x12: 00000000341555ac 
 x11: 00000000fffd4775 x10: 0000000000000000 
 x9 : 0000000000000001 x8 : ffffff81c0504f28 
 x7 : 0000000000000000 x6 : ffffffe13eb2592b 
 x5 : 0000000000000054 x4 : 0000000000000008 
 x3 : 0000000000000000 x2 : ffffff81d11d9e00 
 x1 : ffffff81c0504f00 x0 : ffffff81d11a93c8 
 Call trace:
  config_ep_by_speed_and_alt+0x90/0x308
  config_ep_by_speed+0x14/0x20
  do_set_config+0x70/0x2f8 [moto_f_usbnet]
  usbnet_set_alt+0x30/0x60 [moto_f_usbnet]
  set_config+0x29c/0x56c
  composite_setup+0x40c/0x188c
  android_setup+0x11c/0x180
  dwc3_ep0_set_config+0x548/0x830
  dwc3_ep0_inspect_setup+0x234/0x334
  dwc3_ep0_interrupt+0x98/0x338
  dwc3_process_event_entry+0x144/0x678
  dwc3_process_event_buf+0x68/0x580
  dwc3_bh_work+0x64/0xf8
  process_one_work+0x2cc/0x568
  worker_thread+0x28c/0x518
  kthread+0x160/0x170
  ret_from_fork+0x10/0x18


Change-Id: I68c8309ad81a36c4c40657e62c45a6902a17dde6
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2048201
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-08-24 09:50:48 -05:00
wangyq13
720f1980f5 dlkm/wl2866d: disable avdd1 when device shutdown
Disable avdd1 when device shutdown for peripherals stability and
current leak issue.

Change-Id: I596899cff45f7da15a5339a122b47c7ad4e6fd01
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2045126
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-20 04:03:32 -05:00
tanhua1
50da0f843a backlight: add aw99703 led boost configuration
support lm3697 led boost configuration
1.  boost ovp
2.  boost ocp
3.  default brightness

Change-Id: Ia6254adad216153fdcd1d7f1d40b9eb68d828acd
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2045770
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-19 03:54:13 -05:00
chailu1
910fe173b5 charge: define pps charge min out current
sometimes allow min pps charge dapter out current is not
same as typec_middle_current,so define a variable for
pps charge adapter allow min out current.

Change-Id: I2f303ec5040b0effd451917e16fffe75bc5932b3
Reviewed-on: https://gerrit.mot.com/2045078
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-08-19 02:19:57 -05:00
chailu1
f5fc959565 charge: add limit main charge flag
add limit main charge fcc flag
avoid limit main charge fcc confusion.

Change-Id: Ib024f3d995760df77c17f710c5938b9f3776c177
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2044854
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-19 00:32:06 -05:00
liuyc20
24f7e469fa DLKM: Update SD77426 driver
fix the DUT crash when insmod sd77426_fg_mmi.ko
splite the calcuate from bmulib.c
the rsense modify to 10

Change-Id: Id6a13b510fa66ebf6d56169a76708f797ef6af7d
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2044031
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-18 21:17:17 -05:00
Yan Zhang
9dd045ad16 : Add panel notification for egis rbs driver
Egis rbs:
Add panel notification for egis rbs driver to reduce nav mode
power consumption.

Change-Id: I9a6b4c5eb14d7b55eb72714521e3a821ddd6304a
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2042170
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-18 03:02:58 -05:00
tanhua1
039f998573 regulator: fix aw37501 gki build error
fix aw37501 gki build error for
xpeng

Change-Id: Ied9009373b6c8cdb33728c1bb41855ddef6cf9b2
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2043617
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-17 03:53:10 -05:00
tanhua1
5af825bc74 regulator: add aw37501 lcd bias power driver
add aw37501 lcd bias power driver
module

Change-Id: Ib9da8057bf0026096809e1f54835778c296c19c1
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2042517
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-08-16 22:34:25 -05:00
chailu1
94c57f4137 pd: Add rt1715 driver initial version
PD/rt1715 initial sample code from Richtek  

Change-Id: Ide34829746b768c5ed8e7bdd5efd3567d7dd7886
Reviewed-on: https://gerrit.mot.com/2038928
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-08-13 03:55:17 -05:00
wengjun1
ac23a64f12 Cypfq: dlkm: Gc7372 add enable/disable wake irq for single tap
- If we do not set the irq to wakeable, single tap to wake may not wake up the AP,
so add the corresponding change for fix this issue.

Change-Id: Ic44a6339d21c64e2d1ca456bc4e4f021aa11e2e7
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2038950
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-12 00:58:15 -05:00
litong20
f7b5112616 Support sensitivity mode function
TP:
1. Sensitivity mode off
1st finger filter 01, 2nd finger filter 03
C0 17 01 03 

2. Sensitivity mode on
C0 17 00 00


Change-Id: I69f01316a3354650026a37af69ef27f88a5716a6
Reviewed-on: https://gerrit.mot.com/2033528
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
2021-08-11 22:11:54 -05:00
liuyc20
8a5368ff08 power: introduce sd77426 fuel gauge driver
introduce SD77426 Fuel gauge driver.
add makefile to build it to sd77426_fg_mmi.ko

Change-Id: I12b0084b1b04a91e60ed7fb90e4985da71b98a9a
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2038654
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-11 04:20:10 -05:00
liuyc20
e7dde5a895 power: add rt9426a driver
add rt9426a driver from richtek.
add makefile building driver to rt9426a_fg_mmi.ko

Change-Id: Idca4e40121b4293fd5e12240dc6036a81362e0b0
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2037886
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-11 04:19:58 -05:00
yanyh2
0be96993e6 add glink oem command to get LPD info
Add glink oem command to get LPD info so as to show
the LPD information in AP log.

Change-Id: Ib9ce1fb89d626cde0465179a216028bd8abbdd5f
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2037809
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-08-11 00:45:57 -05:00
wangyq13
d7f95e4ccd focaltech_v2_mmi: keep rst high when config only for IDC
focaltech_v2_mmi:
Keep rst high when gpio config only for IDC, because non-IDC will
reset later, call fts_reset_proc.

Change-Id: If09a888df649f235f298e7fc9c20d40517414ca7
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2037778
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-10 21:45:00 -05:00
wangxs8
fe6a6213c0 mmi_info: Increase the MAX_BL_BUILD_SIG
8450 platform bl build sig num is 17.
xbl_config.git will be lost if MAX_BL_BUILD_SIG isn't increased.

Change-Id: I03f1830bf62d824d6618ef533aaa149aa5991c9b
Signed-off-by: wangxs8 <wangxs8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2037542
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-08-10 06:45:27 -05:00
wengjun1
96303e9db4 Cypfq: dlkm: Add power off process for ili9882a
- Since now we having display/touch current drain issue when suspend,
so need to set rst pin to low when suspend and add reset process to
change rst pin to high when resume.
- For compatibility with other projects, add macro ILITEK_SUSPEND_PWROFF
to control this function.

Change-Id: Iab7d65adf820ccfdb4c3e50d7a5bdff624097694
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2035322
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-08-09 05:05:52 -05:00