Updated panel_event_notifier_register
and panel_event_notifier_unregister
as per kernel 5.15.
Change-Id: Icc6f78df492cb2381dfea598d8fa899ef65e48a2
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Change fixes compilation issues seen due kernel upgrade in touch driver
files with maintaining the backward compatability.
Change-Id: Iaa49186bd2c895850bc0349ccb695a2069cece84
Signed-off-by: Simranjeet Thind<quic_sthind@quicinc.com>
Applied all the changes from the patch.
Tested the code on target for touch to wake functionality.
Change-Id: I393b29ab570fc70c564dfc069864f1b627f5d389
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Add the shutdown callback() in i2c_driver struct.
Keep both regulators should be turn off in release sequence.
Change-Id: I82fb31a786ae7ff867b6727eb6fb5991842951a4
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
regulator count would be increment 1 for enable() and get decrement 1
for every disable().
Change-Id: I7c40e6363e1ffba035ab4b71e780856bcabbdc87
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Add the regulator_set_load() in pt_release().
Keep both regulators by using regulator_set_load API's
should be turn off in release sequence.
Change-Id: Ie041e7f8e666d1dae1d7a4e958e92ae8dcc32699
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Calling enable_irq_wake() causes suspend_device_irqs() to treat the
given IRQ in a special way.the IRQ remains enabled, by on the first
interrupt it will be disabled, marked as pending and "suspended"
so that it will be re-enabled by resume_device_irqs()
during the subsequent system resume.
Change-Id: Id129a8b4e0eddc07000793986b119a0a7b5530ef
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Add the IRQF_NO_SUSPEND flag in requested_thread_irq().
Enable Touch_to_wake feature during RBSC mode.
Change-Id: I7999b521bd88f4b92341eaa07ba6ed7a2d692132
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Change the log level from Maximum to default.
Change-Id: I61efe9747e18d8f1775a385cfb9187a1e5153a30
Signed-off-by: Zhenbin Tan <quic_zhentan@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
enable touch to wake feature for all power modes.
Change-Id: Ic12fb06cb3d436d41f373f57eaee91c5f20a11eb
Signed-off-by: Srinu Gorle <quic_sgorle@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
Set required current loads to LDO's for active and RBSC modes.
Change-Id: Ia4f338c6ca8fdaa981cd7dda959ac887b2fd4fbc
Signed-off-by: Srinu Gorle <quic_sgorle@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
In some scenarios, back to back suspend and resume calls causing
concurrency issues. This change cancel pending queued works before
executing current task.
Change-Id: I1c0971b68a08a4c634767ea1bb6d783f495a1093
Signed-off-by: Srinu Gorle <quic_sgorle@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
Updating the logging level to default from maximum
Change-Id: I25f822350d71e7349b9bc6337d754115d8fe0af1
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
If target already in easywake on mode then power suspend is
getting skipped. Corrected state checks in power suspend to
allow suspend on top of easywake.
Change-Id: I64decc54c4b6f0d7b15a4f687bf25ceb42150549
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
Enable and disable both LDO29 and LDO21 regulators during power suspend
and resume sequence.
Change-Id: I9e5058d6191d536bc80d5b59aa23a5dac9c9babb
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
touch faststartup is consuming more than 700ms during power on,
created workqueue to handle touch firmware boot up sequence.
Change-Id: I67a288f41001052e5dcdb2ed465055b3a23d3233
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
run time suspend and rum time resume used for DRM events callbacks,
which is updating suspend and resume count incorrectly.
Added workQueue support to avoid executing logic in
DRM event callback handler.
Change-Id: I2985fb83aec5a72a0b9a604b424c4f06bfc06956
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
Enablement of Touch to Wake when contextual mode is off.
Change-Id: I94df963268daae4c50798c43fcb7c151bb2b0186
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
Adding of wakeup key to wakeup the system during
touch after the display goes to ambient mode.
Change-Id: Ieceb63b093016eda71e1e053ccddce93bdf65447
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
In power_on function, it already contain reset operation,
so no need to do reset again after power_on, to save time
when do resume operation.
Change-Id: Iba0c5a666b3e25df1e85afa6d5812666ce273922
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
Changed key event from KEY_POWER to KEY_WAKEUP in Probe Sequence.
Change-Id: Ifb93b0529af727443d86fd8fad47fed7c70ad48d
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
Add the shutdown callback() in i2c_driver struct.
Keep both regulators should be turn off in release sequence.
Change-Id: Icbfa8d9c9226bce8bf2286f99a18d3385e3b4d45
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
New DRM events were added as a part of deep sleep features,
hence added changes to handle DRM events in callback function
and interrupt work handler.
Change-Id: If4ccfb12cb9c6df98eccc1ae5968be8e1225f711
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
wakeup gesture status is not observed during touch to wake, hence
simulating
power key for every interrupt.
Change-Id: I28143543b364786874b97b94ac0fe1774ea2dd26
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
Click should not report power key, trigger usercase open camera.
Change-Id: I255d072d1b4f532d6d9e3dbf50310f1bc96b3416
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
Active panel not select, display will probe first, then touch probe.
Change-Id: Ib303b87eb265c6c58b37fb1e631153321b282f4b
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
wakeup gesture status is not observed during touch to wake, hance
simulating
power key for every interrupt.
Change-Id: I1e0221bfbd7f1256971a679a055145c314235dff
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
Implementation of DRM notifier callbacks and registration
of callback during touch probing.
Fetching of the active DRM panel from the DSI panels in device
tree and storing in core platform data structure.
Change-Id: I392bd6df50ff5baadf0a13a1da9f61902e575eda
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>