Commit graph

1,930 commits

Author SHA1 Message Date
yanyh2
c86591b770 Add a new DLKM to support smart pen charger driver
Create a new DLKM smart_pen_charger.ko to be the driver
for smart pen charging management.

DeviceTree property:
mmi,pen-psy-name = "wireless";

module parameter:
/sys/module/smart_pen_charger/parameters/simulator_enabled
N: Use pen_data from ADSP over OEM glink
Y: Use the simulator_data from user input over sysfs nodes

sysfs path: /sys/class/power_supply/wireless/device/
pen_control: wo, u32 value range:
  PEN_CTRL_DETACHED,
  PEN_CTRL_ATTACHED,
  PEN_CTRL_CHG_EN,
  PEN_CTRL_CHG_DIS,
pen_id: rw, u32
pen_soc: rw, u32 value range: 0~100
pen_status: rw, string value range:
"detached", "attached", "ready", "charging", "discharging", "charged",
pen_mac: rw, string value format: xx:xx:xx:xx:xx:xx
pen_error: rw, u32

Uevent to HAL:
POWER_SUPPLY_PEN_ID=xx
POWER_SUPPLY_PEN_SOC=xx
POWER_SUPPLY_PEN_STATUS=xx
POWER_SUPPLY_PEN_MAC=xx:xx:xx:xx:xx:xx
POWER_SUPPLY_PEN_ERROR=xx

Change-Id: Ic3466d9bca7fa9b30ac7256f9e05dc1022a4c500
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2076942
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-27 04:49:37 -05:00
yanyh2
6f1bbe9f80 Add OEM glink notification and notifier call chain
Add OEM glink notification for qti glink charger and
add qti charger notifier call chain to extend the qti
glink charger to be as communication proxy between AP
and ADSP battery manager.

Change-Id: I4351e2842e5f2105461a0d1d4bd2e5c8cdcd5d3e
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2076935
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-27 04:48:24 -05:00
gongsc1
3c4fc7ac25 charger/bq25890: add usb properties
1.add more usb properties for bq25890;
2.define bq2589x_state struct to collect important status.

Change-Id: I4c61cecb763c6a63b7360eb0bfbb07513dc3a2a1
Reviewed-on: https://gerrit.mot.com/2072511
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-27 00:48:53 -05:00
litong20
94555cd54a Resolve compilation errors for unused functions
TP:
Resolve compilation errors for unused functions ts_mmi_kobject_get_path.

Change-Id: I22b213db2304f4c3c73867ad9625f20715a4a528
Reviewed-on: https://gerrit.mot.com/2077104
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-27 00:27:36 -05:00
xuwt2
18499521b5 qti_glink_charger: extend addr&data to UINT32
Read and Write up to 4 byte device's register
extend addr&data to UINT32

Change-Id: I08b0fea6b3abd3833515ba1a9827e29acf2dbb2c
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2076903
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-26 22:16:27 -05:00
chailu1
66984cdd1b typc: Open macro for TCPC
tcpc
pen macro for TCPC

Change-Id: Ic319d2ac613e5b864db2fd45f90bb9410326c83e
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2076631
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
2021-09-26 21:48:57 -05:00
mahj8
bba95008f0 charging: force 5V/2A
force 5V/2A charging
for bring up process

This is only a temp patch. We need revert it after
charging policy ready.

Change-Id: I3b05ee22b59ac8c2febf8b956fa051f8d6f0b334
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2076418
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-26 21:06:35 -05:00
litong20
a6e5f91024 solve the kobject_get_path undefined in gki build
TP:
The kobject_get_path function is not in Google's
whitelist, so reimplement the function.

Change-Id: I162e4d91cc5d8e918da1e7497fba7d48df9e86ef
Reviewed-on: https://gerrit.mot.com/2076930
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-26 21:02:55 -05:00
litong20
8fae36905f Only save test file in factory build
TP
The kernel_write is not in google white list, and we only need the test
data saved during the factory build.

Change-Id: Iad0cb0a32902af116425ef26d53397d53973f7db
Reviewed-on: https://gerrit.mot.com/2075505
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-26 21:02:46 -05:00
chailu1
1fb802d332 sgm7220: add sgm7220 pwr interface
sgm7220/power
add sgm7220 power on interface

Change-Id: I3b78a9f5ae126e3be5ce9638520d7093bd331dff
Reviewed-on: https://gerrit.mot.com/2075603
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-09-26 00:31:49 -05:00
gongsc1
e813af9664 charger/bq25890: force D+/D- detection for APSD
Improve BC1.2:
add force D+/D- detection in the end of rerun
autonomous power source detection.

Change-Id: I97a5666bf3354d19d70f106dac41b239b8d4d119
Reviewed-on: https://gerrit.mot.com/2075617
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-25 22:19:33 -05:00
chailu1
03113e5829 typec: Open pd dbg info
typec/pd
Open pd debug info

Change-Id: I8982ade46500ac402431eeeedc017bca5b6c4e60
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2074192
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
2021-09-23 20:45:15 -05:00
litong20
d0d2dc4963 Does not distinguish 9916 and 9916P touch chips.
Because 9916 and 9916P use the same firmware file and configuration file,
so the chip does not need to distinguish between 9916 and 9916P.

Change-Id: I08921833b01ee1700bd6c81bbf10e204e57b080a
Reviewed-on: https://gerrit.mot.com/2070699
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-23 07:37:18 -05:00
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