Commit graph

1,917 commits

Author SHA1 Message Date
xizx
c6c98fe6ef touchscreen: dynamic check the goodix device status
Kernel should not allow two drivers to assign same irq resource,
or else it will cause unknown irq storm issue.

For goodix touch driver, the i2c device driver will always match
device tree node and request irq resource even goodix touch doesn't
exist at all. When the kernel always loads another touch driver,
such as stmicro fts driver, they will compete the irq responsing and
cause lots of cpu hang issue.

Dynamically check the goodix sensor device status according dts config
to avoid the uncessary register driver.

Change-Id: I0c087d2aeaf5ebd04adddb8cbeabae27048fcb92
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2074007
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2021-09-23 05:08:25 -05:00
xizx
60f1afce76 touchscreen: dynamic check the stmicro device status
Kernel should not allow two drivers to assign same irq resource,
or else it will cause unknown irq storm issue.

For stmicro fts touch driver, the i2c device driver will always match
device tree node and request irq resource even fts touch doesn't
exist at all. When the kernel always loads another touch driver,
such as goodix driver, they will compete the irq responsing and
cause lots of cpu hang issue.

Dynamically check the sensor device status according dts config
to avoid the uncessary register driver.

Change-Id: I23b694e17f84e1e612f706dce9b2d3f6cf587c11
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2074098
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-09-23 05:08:16 -05:00
xizx
4717829e9a mmi_info: provide check dynamic device status interface
To avoid uncessary register driver, a dynamic check device status
interface can be used to judge before register driver.

Change-Id: I07d61a80ca46b955110c37588a1a466b0b4f2922
Reviewed-on: https://gerrit.mot.com/2074097
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
2021-09-23 05:08:14 -05:00
dengwei1
08d0ce4187 xpeng: input touch add wait when single tap
input touch
add wait when single tap

Change-Id: I11e11de6d4d96e28606a50b13f88b769159d4ced
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2069935
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-22 22:14:09 -05:00
qianlong
65fce26b52 mmi_info: Get bootconfig from device tree
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so we get bootconfig from device tree.

Change-Id: I186a4b059fcbf55f2006e946677f5f6cbd59aefe
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2073134
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-09-22 21:19:18 -05:00
qianlong
6180117a2e utags: read utag block device path in bootconfig from device tree
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so we get the block device path in bootconfig from device tree.

Change-Id: I8601a35f88344eb5ba7601fc302eb1b846e945a0
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2072437
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-09-22 21:18:31 -05:00
jixj
aaa2820ec1 utags: Use bio to replace kernel_read and write API
GKI2.0 doens't allow to export kernel_read and kernel_write api,
so use regular bio intefaces to read and write utag block device.

Ugprade products which kernel is 5.4, can use the BIO to replaced
kernel_read/kernel_write block device interface with kernel config
CONFIG_MMI_UTAG_RW_BIO.

Change-Id: I74780733c05ae6d992d3ae07dc33bd1e352590d8
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2056920
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Submit-Approved: Jira Key
2021-09-22 19:37:17 -05:00
gongsc1
2907dd4530 charger/bq25890:add BC1.2 feature
1. add prefix devm in front of some functions;
2. update irq devname and update setinputcurrent instead of
   setchargecurrent;
3. add BC1.2 check feature;

Change-Id: I82b94e8e9d1968a7a8e5e85d176077ab5611bba8
Reviewed-on: https://gerrit.mot.com/2071524
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-21 22:05:12 -05:00
chailu1
aea27f6f32 rt1715:add debugfs interface for dump reg
typec/rt1715
Add debugfs interface for dump reg

Change-Id: Ib706ae82b3e6dd108b835e84d1362a69600c8728
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2071490
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-21 02:13:23 -05:00
gongsc1
42596aeee9 power/charger: add init bq25890 driver
add init bq25890 driver from github
https://github.com/tibms/kernel-4.4/tree/release/drivers/power/bq2589x-master
for milanf

Change-Id: Icb7b25364a4af1e01644286dbad2f0dda5038840
Reviewed-on: https://gerrit.mot.com/2069663
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-21 00:45:45 -05:00
liuyc20
c919713499 power: rt9426a_fg add soh api
add soh api for batt_health server get bttery age
.

Change-Id: I51746d1b669acc103eefaac5426c0041363bbed3
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2070565
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-20 22:13:55 -05:00
liuyc20
438b232d16 power: introduce fuel gauge cw2217b driver
add cw2217b driver
make it to cw2217b_fg_mmi.ko

Change-Id: Icde16219b460d3787244eaa2880968d0c2defa37
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2068437
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-20 22:12:16 -05:00
tanhua1
c7fa6f5281 backlight: support backlight current align configuration for exp mode
lm3697 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

Change-Id: Ib6ac8dc3bb36389ba2c885c3e4b986ac9316bdc4
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2045773
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-09-18 01:29:55 -05:00
tanhua1
09c5081ba2 backlight: add lm3697 map type for linear or exponential mode
add aw99703 map type configuration to support
linear or exponential mode.

Change-Id: I9f7c0f4ac004e9f53bcf949b9c1c5ca9bbed61cd
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2034925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-09-18 01:29:16 -05:00
tanhua1
051bd1e0f8 backlight: add aw99703 map type for linear or exponential mode
add aw99703 map type configuration to support
linear or exponential mode.

Change-Id: Ie9ea130f1c6bbc6b3029520ccf8bd7e59a934cb2
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2034924
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-09-18 01:28:45 -05:00
litong20
4094cad855 goodix: support factory tcmd test.
TP:
1. support matching limit files of multiple panels.
2. save the test results, and the file name contains the test time
and panel name.

Change-Id: Ife15047d24b39680a1c0c94f9c405796c35be47d
Reviewed-on: https://gerrit.mot.com/2068602
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-17 04:20:11 -05:00
litong20
84617eb200 goodix: update test file to 1.2.2 version
TP:
Add goodix berlinD related test in 1.2.2 version.

Change-Id: I25e6e5e4e93b2d3155f2dd76fd017074fb13ec2c
Reviewed-on: https://gerrit.mot.com/2066818
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-17 04:18:54 -05:00
mahj8
e7bf9d5b7f charging: detect hw chip id before do any action
need to detect hw chip id before do any action,
such as another ic also need gpio resource.

Change-Id: I0f6526a9dfd4e0e4216ac6b0c706274f6e02caf2
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2069805
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
2021-09-17 03:57:53 -05:00
liuyc20
3d01101447 Power: enable rt9426a fg parse dts function
all parameter was config in rt9426.dts
enable this parse dts function

Change-Id: Ibaf3ae13d8f2d8f3aa9ce946b58c14f89fb23ed6
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2066935
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-15 20:19:30 -05:00
gongsc1
c5cc7422a4 power/charger: add walkaround to fix REGN side effect
The REGN wake-up time is 500ms, and REGN will provide power for
CBL_PWR_N, so press PWR key will make system reboot all the time.
This walkaround is add 500ms at the end of rt9467 shutdown function
to create a release window for I2C of rt9467.

Change-Id: Ib428c31a718ac27bfc0ce077d5e7aa481e7fe648
Reviewed-on: https://gerrit.mot.com/2067201
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-15 04:07:24 -05:00
gongsc1
8daf230501 power/charger: add free IRQ before reset
add free IRQ before reset to stop
thread IRQ.Prevent async action to
call I2C.

Change-Id: I9499ace1f54969802cae6d3ee5cd3f62b593d405
Reviewed-on: https://gerrit.mot.com/2066499
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-15 04:07:09 -05:00
litong20
3b040bb312 goodix: enable stylus clock on Rogue project.
TP:
Enable stylus clocks as touchIC external clock for active pen.

Change-Id: I213a83cbe0384a0fa8f77342a1225b6d92a63f71
Reviewed-on: https://gerrit.mot.com/2063784
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-15 03:54:45 -05:00
mahj8
f7e987797f charging: add HVDCP detected function
add HVDCP detected function
for SGM41542

Change-Id: I43409b0d4dc9f3db77310c0ba9aec49ce20dcfdc
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2056343
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-15 01:37:10 -05:00
tanhua1
b99a531f4f backlight: don't enable aw99703 backlight while brighness level 0
while brightness level 0 is set, needn't enable the aw99703
backlight driver.

Change-Id: I50edc50e8dd43bb0f0349dbf21e3b3dc08f11290
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2065839
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-09-14 21:11:44 -05:00
Konstantin Makariev
a8e63fa964 pct1812_mmi: properly fail probe on i2c error
When I2C bus is unavailable, waiting for ready state will fail due to
I2C error and not just time out. In that case probe shall fail
gracefully and exit immediately.

Change-Id: Ida7e1877de0893d2d0e0941dbc3ef082ef7ba36f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2066631
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-14 14:00:59 -05:00
Yonghua Yan
1b05406882 Revert "(CR): mmi_charger: Fix battery_supply_init, batt_psy."
This reverts commit 993a25647b7c117aa576684ea553a62c00fe7b66.

This change does not match the purpose of mmi_charger design, it will
get mmi_charger controlling logic mess and break the exist factory
test rule and method.

Mot-CRs-fixed: (CR)

Change-Id: I8b44d53f4f2a24bc9b3035a2e776f91503b3de23
Reviewed-on: https://gerrit.mot.com/2066277
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-09-14 06:37:42 -05:00
gongsc1
98882c1062 power/charger: add rt9467 charger driver
add rt9467 charger driver
for milanf

Change-Id: Iec8ba3d1bec5a94d7f213820da0798f2490fa80e
Reviewed-on: https://gerrit.mot.com/2065160
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-13 21:33:18 -05:00
Bernie Moreno-BERNIEM
50c3111d3c mmi_charger: Fix battery_supply_init, batt_psy.
batt_psy needs to get mmi_battery, rather than 'battery'. This fails
probe due to unfound batt_psy_check, and therefore no mmi_battery/
device nodes are created.

Change-Id: I50abe327b36f7dcd914e488bd31fa4ea351acf3e
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2065404
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ling Jin <lingjin@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-09-13 11:08:27 -05:00
litong20
f243369174 Support loadding multiple config files
TP:
Support loading different configuration files according to
the panel name.

Change-Id: Ibe6d99c99f08951b35100921c4eaa587048aee1f
Reviewed-on: https://gerrit.mot.com/2062784
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-09-10 05:47:38 -05:00
jixj
605998546f 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.

Time of "make bootimage" on user build:
- without change: 23 mins
- with change: 9 mins

Change-Id: Icf0cd01b318a17457336dc7627cbf1ab3a8c78b8
Reviewed-on: https://gerrit.mot.com/2057699
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-09 21:54:53 -05:00
Konstantin Makariev
b6b760eef7 pct1812_mmi: control debug messages
Added sysfs interface to control in run time the amount of debug
messages generated by the driver.

Change-Id: Ie07140e460a4e7f7b2d8a3033226e7900a594cd2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2063420
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-09-09 15:57:16 -05:00
Konstantin Makariev
88d9863a7a pct1812_mmi: added input device
Added input device support to send touch events to Android

Change-Id: I62108c2c1e861bee7a8a111ee581ecc78bf607ea
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2062416
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-09-09 10:49:06 -05:00
Konstantin Makariev
76e8e2daeb pct1812_mmi: firmware update feature
Adding missing components to support firmware update from the file

Change-Id: I5b36476e0e3d6320d2961542ca08b02ee0f3bc4b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059355
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-09-09 10:48:52 -05:00
wuwl10
0411fbfbcd dlkm: add new silead fps driver
Silead fingerprint sensor is a new chipset and vendor
Add new driver to support it.

Change-Id: Ibbad53b820b527e4d4e42af9c6f7ec5718d1d6dd
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2062795
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Zhong <zhongl1@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-09-09 04:22:44 -05:00
yanyh2
853d4cf831 Add sysfs to support force disable charging
Add sysfs force_charging_disable to support disabling
charging from user.

Change-Id: Iaef5d4adbb3d069f19526a089d6a52fa87b6d541
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2062175
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-09-09 03:43:12 -05:00
xuwt2
42766db15e qti_glink: Add sysfs node to get wireless chip id
From factory test requirement
Add sysfs node to get wireless chip id

Change-Id: Ic24b4ac33a2231f2f580917fcfa9ca0f9fd4e65e
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2062214
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-09-09 01:38:51 -05:00
yanyh2
6949e07285 add lpd and vbus present state
Save lpd and vbus present state in charger info data
structure.

Change-Id: Ic2ee432ff24669ae9d9412c8efdc58297fecb40c
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2061925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-09-08 04:55:45 -05:00
yanyh2
2e9f46e6c7 Send LPD and VBUS uevent for LPD alarm feature
Send LPD and VBUS present state uevent to inform frameworks
for LPD alarm feature.

Change-Id: I1200b0c5cbcee88e4f9e7c78486c78d13eb65f89
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2061924
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-09-08 04:55:36 -05:00
wuwl10
5eb31957f9 vibrator: add new ldo vibrator driver
For Milan 5G, it is first time to use and external LDO
to driver the vibrator instead of PMIC.
Add new driver to support it.

Change-Id: Id9d3ecfc408c71747f5ea536b404a9ef707e59f0
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2056348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-08 02:55:48 -05:00
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