Commit graph

1,524 commits

Author SHA1 Message Date
Ryan Lattrel
c9d55c366a gpio: pcal6408: add initial module
Add gpio expander driver.  Supports both TCA6418E and
PCAL6408A chips.  Does not currently support interrupts.

Change-Id: I4c4e59dd2c392e1ec4296251cb26b9ec839144c6
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1810602
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-12-17 17:33:41 -06:00
litong
e78340eabb Modify compilation error of synaptics
TP:
(1) Modify compilation error of synaptics.
(2) When insmod the modules so that they can find the
Modules.symvers in the correct path.

Change-Id: I086cec560585a7e52eb350b036c70f35c23d1cba
Reviewed-on: https://gerrit.mot.com/1829612
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-12-17 06:40:52 -06:00
litong
2a5f15cbf1 Modify compilation error of sec_mmi
TP:
Modify compilation error of sec_mmi

Change-Id: I890ef01ad517b9bd02ecd8f02ba2ea37c42e7078
Reviewed-on: https://gerrit.mot.com/1829611
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-12-17 06:30:45 -06:00
litong
437457379d Modify compilation error of stmicro
TP:
  When insmod the modules so that they can find the
Modules.symvers in the correct path.

Change-Id: I36c7b0ac1a992ede402bce60f321054c01575c10
Reviewed-on: https://gerrit.mot.com/1829648
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-12-17 06:30:41 -06:00
xuwt2
da72e45eb2 qpnp-smbcharger-mmi: Add charge_full_design in battery psy
Add charge_full_design property to sysfs and uevent of battery power
supply so as to support access by userspace.

Change-Id: I672e3f7bd5cbfbfce87fd8338f94fa5043c082e0
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1829543
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-12-17 03:28:37 -06:00
jixj
e5d5b0953c mmi_sigprint: Fix CFI check failure
Kernel changes the signal callback function parameter
from "sigifno" to "kernel_siginfo" on kernel-5.4

change:
ae7795bc61 signal: Distinguish between kernel_siginfo and siginfo

Change-Id: If120a520bc949b354855f804fcfb3fca97224f47
Reviewed-on: https://gerrit.mot.com/1828677
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-17 01:44:58 -06:00
wangyq13
54c7234138 input: focaltech_v2_mmi: change some focal driver macros
- Disable debug message
- Enable POINT_REPORT_CHECK_EN for residual touch point
- Enable wait mechanism for I2C bus deep sleep
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: Ie25cdb4a59e0deddc88ea6e2ed38807f32f8ba84
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1828448
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2020-12-16 23:46:52 -06:00
Konstantin Makariev
4828b47192 synaptics_tcm_mmi: mmi status check
Added MMI status check to driver's probe. Kernel module will be loaded
only when MMI status check succeed. Driver node needs to have property
mmi,status in device tree for this to work.

Change-Id: I93a077aee70f45dde1aa6c760b7cd73ed7cf4b3e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1827965
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-12-16 15:42:25 -06:00
Konstantin Makariev
c06e44fe0f stmicro_mmi: mmi status check
Added MMI status check to driver's probe. Kernel module will be loaded
only when MMI status check succeed. Driver node needs to have property
mmi,status in device tree for this to work.

Change-Id: I5c904ed47ac382a758ff44b236a077038b8f1038
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1827964
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-12-16 15:42:20 -06:00
Konstantin Makariev
ca2c13ef09 sec_mmi: mmi status check
Added MMI status check to driver's probe. Kernel module will be loaded
only when MMI status check succeed. Driver node needs to have property
mmi,status in device tree for this to work.

Change-Id: Ie7dffc5e9bb4769492e5fd15f0da94908cf8ef79
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1827959
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-12-16 14:35:06 -06:00
Konstantin Makariev
24469e8156 stmicro_mmi: identify product by chip id
Use chip ID_0 reported in touch IC system information block
to represent the product. This will help distinguishing firmware
files for different ST chipsets

Change-Id: I250c6ae57411e6a3aca3f87c789379a048ccb0eb
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1825923
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-12-14 12:45:15 -06:00
Konstantin Makariev
8250cd3d74 stmicro_mmi: update driver to version 5.2.19
Added support for multiple ST chipsets

Change-Id: Iaf54dc69f28eaf90f0308028bde20e3a3af1fb84
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1824927
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-12-14 12:45:06 -06:00
Konstantin Makariev
1cb72c3447 stmicro_mmi: use with touscreen class driver
Use config option CONFIG_INPUT_TOUCHSCREEN_MMI to allow
touchscreen class driver handling suspend/resume.
Use DRM_PANEL_NOTIFICATIONS enviroment variable to enable
notifications from DRM. Multiple adjustments made to deviate
from the original path when used with MMI touchscreen class driver

Change-Id: Ica625a836b820c45564d51a4dfad5ebf224f83bc
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1780211
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-12-14 12:45:00 -06:00
wangyq13
9f48ad0ebd input: touchscreen_mmi: add palm detection sensor class
touchscreen_mmi:
Add palm detection sensor class.
NO_PROP_NEEDED: <New function for NPI>

Change-Id: I3ef215b92eba592c8452f347f4fbcb5ab58aab84
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1824129
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
2020-12-14 03:00:06 -06:00
wangyq13
f3ce156b78 input: focaltech_v2_mmi: add palm detection function
focaltech_v2_mmi:
Add palm detection function.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: Ic9f7766ad96ed39b7f652c44c3b9dc4b77389452
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1824128
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
2020-12-14 03:00:00 -06:00
huangys
c04d3e20e2 aw869xx: keep using default device name
if we set the device name, It would block the firmware downloading.
the reason is that the expected path is not correct.

Change-Id: I71244fab069c779842d9d3e9883fa30d0da9647a
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1776191
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-12-13 20:31:29 -06:00
yanyh2
be4f6e6ce6 dlkm: add qti_glink_charger driver
A low level charger driver qti_glink_charger to support battery
charging functions over glink and satisfy the interfaces requirements by
common charger driver mmi_charger.

Motorola charger driver architecture:
----------------------------------------------------------------------
Userspace  Common Interfaces for Charging Features and Factory Test
----------------------------------------------------------------------
Kernel           mmi_charger  (Motorola demo, step, flash-fast charging,
                      |        factory and debugging interfaces)
                      |
            qti_glink_charger (basic charging functions HW
                      |        specific factory debugging interfaces)
                      |
--------------------glink---------------------------------------------
                      |
                      |
                     ADSP

Change-Id: I255413442f2137ebeb6200c2e82b8086cc846e54
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1800646
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
2020-12-11 02:55:51 -06:00
yanyh2
6c2bbf2914 dlkm: charger driver for Moto common features
As a common charger driver mmi_charger inherits Motorola legacy battery
charging features, including Demo charging, Step charging, Flash Fast
charging, and common features for factory test support.

More importantly, it provides a cross-platform solution to support
various battery charging design, not only Qualcomm SoC but also Samsung,
MTK, even remote system over network, and especially suite multiple
battery packs and multiple charger ICs in one system.

To achieve this goal, besides mmi_charger driver, there need a low level
charger driver for each battery charging solution(a couple of charger IC
& battery pack) to register to mmi_charger driver with implementation of
required interfaces depending on their own HW design.

With mmi_charger driver, Motorola common features have been stripped
from the HW dependent charger drivers(older Motorola charger drivers),
in which all the common features have to be implemented by each driver
of its own. So a low level charger driver can focus on HW specific
features and function development.

Motorola charger driver architecture:
----------------------------------------------------------------------
Userspace  Common Interfaces for Charging Features and Factory Test
----------------------------------------------------------------------
Kernel           mmi_charger (Motorola demo, step, flash-fast charging,
                /     |      \ factory and debugging interfaces)
               /      |       \
    qti_glink_charger x_charger N_charger (basic charging functions HW
              |       |        | specific factory debugging interfaces)
              |       |        |
------------glink----i2c------spmi------------------------------------
              |       |        |
              |       |        |
            ADSP   i2c chip   PMIC

Benefit from this new Motorola charger driver design:
1. Easy upgrade, migration, and maintenance, as common driver is
   cross-platform and HW independent.
2. Reduce develop workload, as developers can pay more energy and
   efforts on HW or platform specific business logic.
3. Easy to support complex battery charging solution, as it can support
   N couples of charger IC & battery pack in one system at the same time
   theoretically.

Change-Id: Ie44a22a2c65ea01fd3930879aeb9aae1c44341e0
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1502333
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
2020-12-11 02:54:54 -06:00
mahj8
03346de658 DLKM: mmi charging LKM must probe after qpnp smb5
The unit will crash if mmi charging prob before qpnp smb5.
Because chip->qcom_psy = NULL.
When mmi charging probe failed, return -EPROBE_DEFER
to retry.

Change-Id: I05294dd9bcb8de652314d7441c1b12fed1632100
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1825319
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-11 01:47:59 -06:00
mahj8
1d2d1f5f14 DLKM: use new api in mmi-pmic-voter.c
Because GKI, export api move from pmic-voter.c to
mmi-pmic-voter.c and for compatible, use kernel version
to compatible with old product.

Change-Id: Ia2c74ae4447d0621ac5bced0f3355d868712ac24
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1823126
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-11 01:47:38 -06:00
mahj8
2084a42fc9 Revert "(CR): DLKM: build error on user build"
This change can't work in gki

This reverts commit b73cf109e9542740a16d35ce93484e5547c27650.

Change-Id: I42b678fb693d67bb5c7a3d87d631bf3812df39b0
Reviewed-on: https://gerrit.mot.com/1823125
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-11 01:47:32 -06:00
mahj8
70c53f4fd2 module: remove useless code in charging LKM
Remove EB mod battery charge functions, they are no longer in used.
and these functions and global variables are not exported in GKI.
such as:
alarm_try_to_cancel
power_supply_class
power_supply_notifier

Change-Id: I1da88b149ee377cfffffad7af1fd3c7b6d2620fe
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1814959
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-11 01:47:12 -06:00
wangyq13
be42617041 input: focaltech_v2_mmi: enable single tap function
focaltech_v2_mmi:
Enable single tap function.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I34f2dadcf2b9379a0516cec25d7f105b856e5e98
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1824127
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-12-10 02:30:47 -06:00
wangyq13
a587eada61 input: focaltech_v2_mmi: add usb charger detection
focaltech_v2_mmi:
Add usb charger detection function.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: Ia93898563a7247a0ab8ae7d1b1bdd83ad4dd912b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1824123
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-12-10 02:30:39 -06:00
wangyq13
c533055001 input: focaltech_v2_mmi: add sys node to upgrade firmware
focaltech_v2_mmi:
Use touchscreen_mmi sys node to upgrade touch firmware.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I2d2b462efe1777b3d45e0f7a9c40045fbf3d1cc7
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1824119
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-12-10 02:30:33 -06:00
jixj
6e9ed15514 mmi_sigprint: Use a new way to get kallsyms_lookup_name()
kallsyms_lookup_name() is not exported on kernel5.4,use register_kprobe()
to get kallsyms_lookup_name().
Also fix path incorrect issue on Android R.

Change-Id: I5e0fb8c3bd7a14c5bb8316635261f411c5952577
Reviewed-on: https://gerrit.mot.com/1820763
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-08 03:56:10 -06:00
xuwei9
c0c6a3a34f kernel:stop incresing vubs while charger plug out
Plug out charger when increasing vbus voltage
Stop the increasing algo otherwise phone can not charge
because of dp dm status remained at next charger plugged in.

Change-Id: I7f16054f5bef4996d629ddfe3b5fb05e21c92a88
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1816232
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-12-08 00:05:58 -06:00
liuyc20
3fd069ff0c usbnet: correct usb_ether_xmit return value
enum netdev_tx {
 NETDEV_TX_OK	 = 0x00,	/* driver took care of packet */
 NETDEV_TX_BUSY	 = 0x10,	/* driver tx path was busy*/
 };
typedef enum netdev_tx netdev_tx_t;

Change-Id: I8199a0c47b59149f679af5b77463d9e87885fc9c
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1820760
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-07 23:59:52 -06:00
chenglong1
50440059e7 aw8695: Add start/stop vibrating notification to actuator.
Vibrator on phone main board can disturb camera AF VCM when it's vibrating.
To avoid the camera lens str(CR) noise during vibrating, power on AF and
push lens to certain position (for Nio DAC 400) can greatly reduce the
noise.This change is for notifiying camera actuator that vibrator will start
or stop work, then camera can respond accordingly..



Change-Id: Ifa5dd445311867b581fa0498d67ebad31cb6b1fb
Reviewed-on: https://gerrit.mot.com/1817562
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-12-04 02:32:03 -06:00
yanyh2
70bbf3279e usbnet: fix CFI checking failure
Correct function usb_ether_xmit return value type to match
the prototype of the member ndo_start_xmit in struct net_device_ops
to avoid CFI checking failure.

Change-Id: I8439e967ee824bb5f0ac8447d79ae066379a6465
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1818255
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-12-04 00:44:57 -06:00
mahj8
8f7d8b9adb module: use orderly shutdown in factory mode
User an orderly shutdown for factory kill instead of a
kernel power off.  The orderly shutdown will attempt to
call the reboot binary from userspace first, and then
fallback to kernel power off if it fails.

Change-Id: Ie07e8786e34e1f9b38ca4b62085051bd89177054
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1817422
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-02 22:30:04 -06:00
weimh1
88ca43c251 denver/sensor: update sarsensor params
1.update params
  2.adjust driver for debug when necessary

Change-Id: If6d1cc18874b0787c16647beee028ef5f9699ac0
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1816424
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-02 02:47:37 -06:00
mahj8
1dcbeeda62 module: add address and data api for tcmd
use normal interface instead of debugfs interface in tcmd
smblib_mmi_address
smblib_mmi_data

Change-Id: I8a6093f419b33000d403066bebbe82c3a194383f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1813964
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-01 05:07:15 -06:00
wengjun1
d3a9845391 Chipone: Compatible with android R with 5.4.0
- Change rt_mutex api.
- Change input_get_new_minor.
 NO_PROP_NEEDED: needn't for shm2018

Change-Id: I07ee65f0d340d475936f6a81a7ced6c72753881f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1795715
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-30 01:03:12 -06:00
wengjun1
75c2e82f9c dlkm: bo: Improve novatek 0flash driver
- Since now nova_check_dt only possible return 0 or -ENODEV,
so if the driver can't get the active_panel_name properly, that means
no display panels are initialized, so need to return  -ENODEV on probe
in this case, otherwise, it may affect the initialization of other touch ICs.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I6148ac8b10f552f180696221b1517c5fb60915e0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1812635
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-29 21:18:41 -06:00
liaoxl
53d87d2508 FM: fix current leak on GPIO47
default state set as high will lead to ELNA module on, which will consume battery power.
turn it off as default settings to fix this issue.

Change-Id: I38421a6b7e8d62e17e851a6cfded48b4a030ab0f
Reviewed-on: https://gerrit.mot.com/1810804
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-25 19:26:06 -06:00
Yan Zhang
06f5b5afc1 add mmi_relay notify interface by conditional
goodix fps driver is used by capacitive fps sensor as well, however 
mmi_relay is required by FOD module only,  so add the mmi_relay module
under conditional.

Change-Id: Ib93a2a7f9f8c8254cd67b7882336e9b7751e9863
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1808891
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-24 00:58:08 -06:00
mahj8
371ccae267 module: removed nonstandard props
removed nonstandard props for GKI and there props
don't use in sm4350

Change-Id: I3582efcbb8d3ec2a27a0a3862b47ccaf1dfb862a
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1809696
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-24 00:03:41 -06:00
jixj
669ca8d8d6 qpnp-power-on-mmi: fix build error on user build
"kernel_halt" is not in Google's GKI whitelist, add modules.symvers of
QGKI to fix build error on GKI build.
This module is no must in GKI, it doesn't matter that fails to load

Change-Id: I77c89c1236bcd2352b85b69e180687744e1f59b4
Reviewed-on: https://gerrit.mot.com/1807425
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-20 04:09:37 -06:00
mahj8
023c9a3b89 mmi: fix power supply change frequently
fix typing error
vbus voltage can't be increased and load
power supply change frequently

Change-Id: Ie70f7b2b85f2b969ad95e1f02ffa3a6eb764318f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1806593
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-19 04:29:03 -06:00
weiweij
f20500f540 dlkm/qpnp-power-on-mmi: change vfs_write to kernel_write
For linux 5.4, vfs_write will not be used, and it is changed to kernel_write,
so, we add the version judgment for this.

Change-Id: Iec34f046e608ec42436a741784aeeb9a1f46f479
Signed-off-by: weiweij <weiweij@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1806106
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-19 03:49:23 -06:00
hujing3
52adf4eb13 ili9882_mmi: support panel gesture config
Capri ilitek touch:
some panel need enable partial gesture mode for ESD case
Add new panel config for gesture
NO_PROP_NEEDED

Change-Id: I4e0Montana83e9c36cb82f2eea6971797f67781d8f25
Reviewed-on: https://gerrit.mot.com/1789290
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-18 04:02:50 -06:00
chengql2
efda4a150a ets_fps_mmi: Register panel notifier for display on/off
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi/ets_fps.*:
Add panel notifier and ioctl command GET_DISP_PANEL_STATUS

To get the display panel status, register panel notifier to monitor the
events of PANEL_EVENT_DISPLAY_ON and PANEL_EVENT_DISPLAY_OFF.
And, add an ioctl command GET_DISP_PANEL_STATUS to support HAL service
querying for the panel status.

Change-Id: Ife5b6bc48517234b12c780af44dffaf4a1ad96e5
Signed-off-by: chengql2 <chengql2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1794293
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2020-11-17 23:58:45 -06:00
wangyq13
9e6672d390 input: focaltech_v2_mmi: Configure power supply
input/focaltech_v2_mmi:
Request the proper valotage and load values for AVDD.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I0265da2f6a3e7f5eb19e807e3f5eddd2ad37212d
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1804490
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-17 19:55:23 -06:00
wengjun1
c149726ca2 dlkm: bo: Support multi panel-supplier for novatek
- kernel 5.4.0 will use active panel name by default.
- Optimize code flow related to new drm notifier.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I80216596d7619c21f2f80fa0dc45ed92734fef26
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1803218
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-16 19:42:29 -06:00
zhangly19
b16994d232 DLKM/Sar:add abov 7ch driver
-add abov 7ch driver
-add abov 7ch header file

Change-Id: I0a7e5214c25157ae4fff07d22fd301b2e395637e
Reviewed-on: https://gerrit.mot.com/1803336
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-11-16 03:01:02 -06:00
wangyq13
64bab96fd4 input: focaltech_v2_mmi: add V2 version of i2c focal driver
Add V2 version of focaltech i2c driver.
Because first version focaltech_mmi is too old for new focaltech
i2c chip. And this is common codebase, old products also use this
bo branch, it change old focaltech_mmi codes, will impact old
products stability.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I46368ebf7d4d87c79c4c7283f2e220f0295a1a51
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1802966
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-15 23:34:42 -06:00
litong
775e6ed9c0 Register mmi_relay notification for touchscreen
TP:
Register mmi_relay notify in  touchscreen class to receive
FOD status change events.

Change-Id: I8d5f346b329e9dc8a2585e62506260706a308188
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1802938
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-14 19:57:24 -06:00
litong
63266f55f0 Register mmi_relay notification for FOD
Register the mmi_relay notify to send the FOD state change
events to touchscreen class.

Change-Id: I2c14322ce21ff69e3a921f38ee2784e8d23a7c65
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1802937
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-14 19:55:04 -06:00
litong
5d385bce9d An common module used for all of module communication.
The module encapsule a group of notification,
used for decoupling between modules, for example,
the touchscreen driver are coupling fingerprint
and display driver in the bring-up phase,
the dependencies between modules need to fixed
to avoid proceeding blocked,
This module is middle layer, it change a direct
dependece into an indirect dependence.

Change-Id: I4469dd70300fce2dc5d9af48e96d65755974ef9f
Reviewed-on: https://gerrit.mot.com/1802936
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-14 19:54:35 -06:00