Commit graph

1,019 commits

Author SHA1 Message Date
haojl2
0844bfbb61 sec_mmi: report major and minor value in pixel unit.
If dts defined size to pixel factor, report those two value in pixel
unit.

Change-Id: Ie89e8d9427cc80d82a742e4ab2efbe8c468ac16e
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1493096
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-02-06 20:05:49 -06:00
litong
ebdae4dd88 Solve I2C error in the first suspend
TP:
Initializing the touch PM_MODE is PM_ACTIVE when registering the 
notification chain, to solve I2C error in the first suspend.

Change-Id: I80e6a20484cba58dd1f8a25c0b0707d0b8a95eb7
Reviewed-on: https://gerrit.mot.com/1493127
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-02-05 07:07:33 -06:00
Ryan Lattrel
cb0a7042c1 p938x_charger: Force dcin-en on when attached
Force dcin-en on in the 8150b pmic when a wireless charger
is attached. There appears to be a hardware glitch where
an undervoltage event will cause the feedback enabling dcin-en
to stop, which prevents us from charging even though the charger
is attached and working.

With this change, we have to determine if we are connected based
on whether the attach detect gpio is on instead of a voltage
at VRECT, because VRECT will always be high when we force dcin-en
to be on.

Change-Id: I887266b9316b556a3b1dd12997ae67b5c7a324d9
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1491980
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-02-04 10:51:52 -06:00
chailu1
d60d0e493f charge:real time check weak charge
PMIC receive usbin OV events, OV IRQ triggers for
very small duration in interim periods sometimes.
while this periods check charge type will judge inbox
charger adapter as  weak charge. now logic is always
recognize weak charge even if OV event disappear.
So add real time check weak charge type mechanism.

Change-Id: I18072c56b505f2508292d6b335f71a646d48b6d7
Reviewed-on: https://gerrit.mot.com/1486223
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-02-03 00:29:23 -06:00
Andy White
64b289fbc6 aw8697: Add error checking to RTP mode
Error status bits weren't being checked, so RTP mode
would attempt to continue despite errors being present,
causing occasional lock-ups and delays

Change-Id: I9de871e3e2e0ba2255e621b5a8505e87edd90f1e
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1491069
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-31 14:09:17 -06:00
litong
b1d61265f5 touchscreen_mmi: Modify the process of panel off and on
1. Process of panel off and on
   Panel OFF:
(pre_suspend)->IRQ_OFF->INTO_MODE ->(post_suspend)->PINCTRL_OFF->POWER_OFF
   Panel ON:
POWER_ON->RESET->PINCTRL_ON->(pre resume)->MODE->IRQ_ON->(post resume)
2. Only when both the sensor and the gesture are enabled can the
   gesture mode be entered.
3. Interrupt will be turned on only in gesture mode.
4. Turn off the power only when Power_off_suspend is set
   and not in gesture mode

Change-Id: I962cde8711333a4f213b01dccc99a3268e3ca519
Reviewed-on: https://gerrit.mot.com/1479065
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-30 01:17:03 -06:00
haojl2
a3810fae2e sec_mmi: add delay if power supply off
To meet IC power on sequence, if IC power is not always on, need to wait
for 70ms before checking IC status. If no delay added, I2C communication
may fail sometimes. This is copied from sec_ts_probe.

Change-Id: I85b3a8a2b444ea2e3e77a60e2fcc45c8b976bc6c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1489000
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-01-30 01:16:55 -06:00
Ryan Lattrel
eca836551e p938x_charger: protect fw flash and handle reboot case
Add disconnect mutex guard to tx mode and flashing
the firmware to prevent unexpected racing.

Add a check_status on probe in case we are starting from
a reboot attached to a pad and have already handled the IRQ.

Change-Id: I5c6a4fad548e2e7b6847ec51da6791b51dd71e98
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1489666
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-29 15:14:07 -06:00
Konstantin Makariev
783a66af57 touchscreen_mmi: secondary touch panel supplier
Extract panel supplier name from different properties for primary
and secondary touchcsreens.

Change-Id: I1fcf162bb9f2090ef967343467aa1bbf2803a35a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1489322
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-29 09:04:57 -06:00
Konstantin Makariev
7fff1f29a3 synaptics_mmi_class: fix firmware file name
Firmware file name was truncated causing update to fail.

Change-Id: Ibccd02705d4778653db1f147ff7a4fe91de95bec
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1489162
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-28 09:51:40 -06:00
timwang
0dedfa732b Add Build Flags for Data Width Change
Add build flags to cci_intf so that only kernel versions 4.19 and above
will have this functionality. This is because older kernel versions will
use a different cci_intf header and will not build.

Change-Id: I69111b4161734303e8a1c99223623896ac5d112b
Reviewed-on: https://gerrit.mot.com/1488924
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2020-01-27 16:10:07 -06:00
liuwang2
fd7c4a8b01 Add Data Width to CCI_intf
Main OIS requires 16 bit writes. cci_intf only supports 8 bit writes
currently. Add a field to allow user to specify data width. Add logic to
proccess data according to that width.

Change-Id: I5da72399d9060ab60775488f36c5f72262a105a9
Reviewed-on: https://gerrit.mot.com/1488484
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jian Luan <jamesluan@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 63e2369c5c00ed0a504f9a45e0a3be381faafd55)
Reviewed-on: https://gerrit.mot.com/1488831
2020-01-27 12:10:26 -06:00
Ryan Lattrel
0145dd0928 p938x_charger: Wait for LDO to report charging
There are too many cases of a wireless charger showing as
charging when it is not.  Only show when LDO is turned on
even if it sacrifices some detection speed.

Change-Id: I9bd1cb03428f4be4fcd2847b50fd7f0e9122154e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1488807
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-01-27 12:00:16 -06:00
Ryan Lattrel
5260ae84e6 p938x_charger: Update detection algorithm
Show that we are charging when VRECT_ON is triggered.
This unfortunately leads to some edge cases where we will
toggle the charger on and off if on the edge of the pad.

Additionally clean up the remove function so that we
do not race with the status interrupt in any context.

We will process the removal of a charger if (1) detect
IRQ goes low (2) we fail to read I2C or (3) the heartbeat
function reads there is no voltage at VRECT.

Change-Id: Ieec364bfa2a7bac8966dea3951d913ad7bdefee9
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1487527
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-01-24 16:01:17 -06:00
Konstantin Makariev
1c0beef3e2 fixup! (CR) sec_mmi: update Kbuild
Config option PANEL_NOTIFICATIONS only set for products using
touchscreen_mmi class code.

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I01d82a3a8df2a5684b70675c0676ff29aa7cbdc5
Reviewed-on: https://gerrit.mot.com/1488434
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-24 15:53:37 -06:00
Konstantin Makariev
c8b1751705 synaptics_mmi_class: start using touchscreen_mmi class
Synaptics driver code aligned with touchscreen_mmi class code. Despite
changed directory name, module name is still synaptics_mmi. Synaptics
driver with class support will build whenever touchscreen_mmi.ko
exists in the list of product DLKMs.

Change-Id: I7aabf417292981d09f4c431d45815ff16e80ba62
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1472910
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-24 13:25:13 -06:00
Konstantin Makariev
5c64bb1f67 touchscreen_mmi: match panel notifier with control dsi
In multiple display configuration, panel notifier will be called for
each display. Control DSI associated with display is passed as a
parameter to panel notifier and will only be actionable in the case
when notification belongs to display.

Change-Id: I6abbf2d34aaedd230ac1de79100babed20ed712b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1482868
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-24 13:24:13 -06:00
Konstantin Makariev
2cd3a2c96a synaptics_mmi: add touchscreen_mmi class check
This DLKM will only be built if touchscreen_mmi class is not used
for backward compatibility.

Change-Id: Iced4457c6f87faa726ea6de44f9f625955d646fb
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1479387
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-24 13:24:06 -06:00
Konstantin Makariev
757e284aca sec_mmi: update Kbuild
Need to build DLKM using touchscreen_mmi class code as well as old
fashion way.

Change-Id: I2013c074b603ac1e048fc2c59dc19efc853808d5
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1486524
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-24 13:23:37 -06:00
Konstantin Makariev
e757546214 sec_mmi: do not calibrate on firmware update
Enforced calibration on firmware update might cause problems when
something is touching the screen while it runs.

Change-Id: I7296d3c00881ed482cfa5dadd16de2d09c935230
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1487884
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-24 11:42:28 -06:00
awhite6
071e0b2d8b aw8697: Move RTP update work out of irq handler
The vast majority of RTP work was being done directly in
the irq handler. Occasionally, it would take eight or more
seconds to return from the irq.

Change-Id: I7332b9746efcfaac1d09b8c1cc8116da59138cd0
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1487522
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-23 16:43:57 -06:00
Ryan Lattrel
5b11693dcc p938x_charger: remove unneeded resets
Remove the reset on init, it was initially used when the
interrupt did not function properly in early firmware.

Also remove the reset in disconnect, and instead just check
the status.  And add a mutex to prevent the disconnect irq
from running concurrently with the status irq to prevent
races.

The VOUT and VRECT handlers in the IRQ were flipped in case they
are both true.  We should make sure we handle it in the expected
order.

Change-Id: Ib835d1ba85127a69dfed3c08821aa928e9c0bf9e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1487334
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-22 13:55:46 -06:00
Ryan Lattrel
9e6b681df3 p938x_charger: Remove thermal message print
The thermal subsystem will call this function on every
wake up or failed sleep attempt.  Do not spam the log,
instead only report if the state changed.

Change-Id: I5c5f2b30333c754b334028444b93c8dcf5af32c7
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1486519
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-21 14:23:42 -06:00
linhonglei
f018b2e344 add sar svdd regulator in kernel driver
kernel module
add sar svdd regulator
sar sensor has tow power vdd and svdd regulator,now add svdd

Change-Id: Ia8d0c8a24f9d633e323d69da846ed1d19e0a7580
Reviewed-on: https://gerrit.mot.com/1484941
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-01-19 20:19:48 -06:00
John Ratke
400ae84eb1 Change dt-gesture sensor to SPECIAL_REPORTING mode
dt-gesture sensor was previously an ON_CHANGE sensor. This is
generally okay, but it can lead to the Sensor Service sending out
an old event to a new (second, third, etc..) client if there was
already a previous client registered for the sensor, and this is
not the behavior that is desired.

Change-Id: I3bc91c5271fedc83b11ee5028980cfea99dd6732
Reviewed-on: https://gerrit.mot.com/1484754
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-17 17:01:51 -06:00
Ryan Lattrel
df42a488f3 p938x_charger: Update tx mode fault handling
Add TX FOD write: write up to 6 bytes starting at register 0x00AC.
Configure tx parameters on mode change IRQ & bit 2 of mode reg set:
-write TX_FOD if configured
-write EPTRMPWRTGL to SYS_CMD (moved from p938x_set_tx_mode function)

Add handling for EPT modes. Reset after 3 POCP events, or 3 FOD
events.  OTP will turn off on first event.  All others will reset
the IC.

Additionally, if tx mode has recovered 10 times without being
turned off by the user, disable it.

Change-Id: I2e5d2b00e34d29225347964434f4a4dd0b898d6b
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1484737
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-17 14:54:25 -06:00
Cesar Santos
70214ca74d modules: power: Updating chg-iterm spec on documentation
Most MOT batteries has 4.4V, but newer ones are 4.45V. Charging termination
current ("taper") is dependent on battery specification plus capacity testing
made by EE Team. So it can be something different than 97mA.

Change-Id: Idecf02dc8d7175ae803f093ca02164de8e6673d6
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1484667
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-01-17 07:22:04 -06:00
haojl2
fa376c6ac2 sec_mmi: Get finger size from dts
Get max finger siza major and minor value from dts.
If this is not set, use default value 255.

Change-Id: Ide50ca02521acdb02529764e061deb689956197f
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1484433
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-16 19:31:29 -06:00
Konstantin Makariev
20f126bfcb sec_mmi: grip suppression control interface
Adding sysfs interface to control grip suppression in run time
into LSI DLKM.

Change-Id: Id7a9e8df73c815e56093acdbb1dd5602358f58eb
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1482861
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-16 15:15:35 -06:00
Ryan Lattrel
f872c49225 p938x_charger: Update rx_connected with tx mode work
With the new firmware we no longer get an interrupt on
rx connected changes.  Instead poll for changes in the
output current to determine whether we are charging a
client device.

Also add an overheat state to rx connect to report to
the upper layers when we are disabled.

Change-Id: Ie643bd821f2266a7e2be615ca800c95d983db23f
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1482096
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-16 11:36:16 -06:00
Weilong Wu
c78eab44a5 dlkm: ets_fps: fix build issue on kernel 4.19
New kernel change some API and we need to make some
change on Ets fps driver to match it.

Change-Id: Ia16be9e8e02f99ebfee723644ed1d98abc6356e0
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1483695
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-01-16 00:07:23 -06:00
xuwt2
34ee4922f1 p938x_charger: change tm mode address
-1, tx_mode_reg address is 0x69,
the value of enable is 3, and disable is 0
-2, add TX_RM_POWER_TOGGLE setting in tx_mode
the tx mode will shut itself down whenever OVP or OCP excetion occrs
-3, change SYS_CMD_REG to 0x4e

Change-Id: I15e94cc4f944ef94f60b87c3de1415b397e768ed
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1480220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-01-15 15:15:37 -06:00
xuwt2
0329269ee2 p938x_charger: change the length of memcpy in fod_store
change the length of memcpy in fod_store

Change-Id: Ibdcedf3ae2afd1e12548a1916e69a49f67de9977
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1479581
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-01-15 15:15:32 -06:00
xuwt2
6b6a1d0b9c MMI: Add DC psy notifier
The tree modules(p938x, smbcharger-mmi, qpnp-smb5) work
togegher to handle the logic of wireless charging.
In smbcharger-mmi, MMI_HB_VOLTER will hold dc suspend until
heartbeat work detect DC present,
In qpnp-smb5, dcin-plugin irq handle DC present status.
they are all triggered asynchronously in parallel,
and the DC present is always active after p938x VOUT_ON has been set
for a while.
And yet, at this point, smbcharger-mmi's heartbeat work has been
triggered by wireless psy change when p938x is VOUT_ON.
This leads to MMI_HB_VOLTER hold dc suspend in a minute to wait
heartbeat schedule again by itself

Change-Id: Idc8b62fa47975daeba3f0875d7715771fa8141a8
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1479568
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-01-15 15:15:27 -06:00
Cesar Santos
e3f32778f7 modules: power: Adding documentation to SMBMMI driver
Charger driver has a lot of specifics that having a documentation would
heavily support understanding. This is a first version, describing
which DT properties are used by it, as well as explaining the
JEITA/IEEE Thermal Charging Limitation compliance algorithm.

Change-Id: I2418d84378c2430596b0eb6d8456a207860fc09f
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1481730
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-01-15 06:52:50 -06:00
Cesar Santos
dad532f85a modules: power: Change Heartbeat delay for fast mitigation
Original heartbeat delay was 60s, which makes thermal mitigation while
charging too slow. Changing it to 5s makes it notice battery
temperature change and limit charging current and voltage much faster.

Change-Id: Ib43dba3db18f3509afe1ab448d5f35c9bd33a16e
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1483570
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-01-14 15:46:36 -06:00
wengjun1
2f9acaba4b DLKM: Nairobi NT36672c touch bringup
- Add BOARD_USES_PANEL_NOTIFICATIONS for enable panel
notifications feature to fit for new display notifier callchain.

Change-Id: I16c7fef774d0b76d4a4d23ad39673f85bfff582b
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1481808
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-01-10 01:09:18 -06:00
Ningkai Zhuang
a25f827835 Update driver version to 2.0.4
Support new ioctl command and compatibale with old one
Add interrupt control to solve int can not wake up system issue

Change-Id: I3229f343c359ec6075739ea3e2d30554b07052a4
Signed-off-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1481162
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-01-09 01:19:30 -06:00
haojl2
86d76624d7 syna_tcm_mmi_v2: Fix build ID and config ID
TP:
Fix build ID and config ID format.

Change-Id: I6577d3ce6e5c8b2471898bb1da74e6f6fd197dd7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1480187
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-01-07 22:12:44 -06:00
zhucc2
e50168cc66 Exfat:fix compile fail on kernel-4.19
For Kernel-4.19 add some new APIs, Exfat-nofuse need apply some patches,
or compile will fail.
patch list:
f93a47e641
e95c8847b0
Change-Id: Ic1737e3ea09ece27fce7cb969b838e50d9569ffe
Reviewed-on: https://gerrit.mot.com/1478458
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-01-07 00:43:11 -06:00
Konstantin Makariev
7f7f562b77 aw8697: boost ram loop mode playback
Awinic suggested to boost RAM loop mode haptics playback.

Change-Id: I7b9ac1368809360ed6c38d3a624aeee9d24c1846
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1479394
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-01-03 16:38:31 -06:00
wangyq13
ebbb8b02c3 input: himax_v2_mmi: change factory self test codes
- Check himax criteria csv file first, if check error, then don't load
  factory firmware, exit self test process.
- Don't output massive logs, reduce factory test time.

Change-Id: I861b56433381cfb5c5c0c929203eb04f187808f1
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1478907
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-01-03 02:21:29 -06:00
liuwang2
43f6332b18 regulator: modify slg5bm43670 to support interrupt
modify slg5bm43670 driver to support interrupt process.
config its gpio1 as interrupt pin.

Change-Id: I13f658953865f0c65b49543d164bfbfa5f38f3c4
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1478954
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-01-03 00:43:50 -06:00
haojl2
f62becd435 sec_mmi: Fix zero tap gesture coordinate.
TP:
LSI firmware changed zero tap gesture coordinate. Update drive code to
meet firmware..

Change-Id: Id2df36b58f8efeeb2c4f58228542c705ca3f7644
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1478947
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-01-03 00:15:15 -06:00
wengjun1
d7da292cbb ft8756: Compatible with the way of gesture to report key
- Since we noticed that some projects need to report not only one type
of touch gesture and touch hal has been changed on bq branch, so if
we still report instance the single tap should not be work properly. So
add report function key to fit for the hal's change.

Change-Id: I14511e3cb95dfda2f188ad587ffedd300579384a
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1477339
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-01-02 00:14:43 -06:00
wengjun1
4254e14398 novatek: Compatible with the way of gesture to report key
- Since we noticed that some projects need to report not only one type
of touch gesture and touch hal has been changed on bq branch, so if
we still report instance the single tap should not be work properly. So
add report function key to fit for the hal's change.

Change-Id: I8cf83493db1d1ff20ee40bbd8414f0130d1bde1e
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1477814
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-01-02 00:14:35 -06:00
ontim5
99014c1e2b input: himax_v2_mmi: add hx83102d driver
input/himax_v2_mmi:
Add HX83102D driver. HX83102D is different from others, so need
to add CODE_OVERLAY and its own drivers.

The first TP is hx83102D without flash

Change-Id: I68df2f1cc365041367de75ef8b52cecf677c70d0
Reviewed-on: https://gerrit.mot.com/1478452
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-01-01 08:45:06 -06:00
zhouwl
aa3a6cf3d8 ASoC: add Awinic aw882xx driver
Astro uses aw882xx chip for driving loudspeaker,
add its driver.

Change-Id: I28273397535050ce50a62ea14d14bb71749fb696
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1476953
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-01-01 05:53:41 -06:00
chenglong1
32c8429b8d regulator: Add wl2864c driver.
Add driver for wl2864c which will be used as camera/glance external
power supply.
Device tree please refer to:
https://gerrit.mot.com/#/c/1477679/4/qcom/lito-nairo-common-overlay-base.dtsi

Change-Id: Ic852a9cfd7c3fcae76d5449cd458363e336eaf20
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1477678
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shenhuai Huang <huangsh4@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-12-31 03:10:38 -06:00
linhonglei
1ac4f19994 kernel/sar: update a96t driver to support two channel
Modify driver files and read properity channel number node
Distinguish two channel number or three channel number

Change-Id: I9a00992c9875e94fe00711e92d6f74121327fb6b
Reviewed-on: https://gerrit.mot.com/1478286
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <honglei.lin@ontim.cn>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-12-31 02:48:08 -06:00