Gráfico de commits

31 Commits

Autor SHA1 Mensaje Fecha
Surya Teja Kudiri
e74f386766 touch: Add panel event notifier support
Add panel event notifier support for parade
tech driver.

Change-Id: I347f9805b19bcd03b23a8ad34130dc1f5b05b3e8
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-12-08 02:03:56 -08:00
Surya Teja Kudiri
ba902f4726 touch: add DRM support for paradetech driver
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>
2022-11-11 21:51:56 +05:30
Surya Teja Kudiri
3958a8c601 touch: paradetech touch driver upgrade
Upgrading parade tech touch driver code from
kernel 5.4 to kernel 5.15.

Change-Id: I0052e905813f0dc2c3a374b10cd6bcb243502673
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-11-11 21:51:33 +05:30
Surya Teja Kudiri
32642e58bc touch: KW patch has been fixed
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>
2022-10-17 01:14:53 +05:30
Sayantan Majumder
7d31f1b40b touchs: Adding synchronization for interrupt handling
Depending on the device state, adding proper synchronization for
interrupt handling.

Change-Id: Id7cbbb02f1b06bd01fe66a208b6484a415e90b14
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-10-17 00:45:50 +05:30
Srikanth Katteboina
d02718230b touch: irregular count on deep sleep feature
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>
2022-10-17 00:34:21 +05:30
Srikanth Katteboina
acf59ba335 touch: Fix L29 is ON in TWM
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>
2022-10-17 00:30:45 +05:30
Srikanth Katteboina
bd6a84f669 touch: Fix Touch_to_wake during RBSC mode
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>
2022-10-17 00:23:50 +05:30
Anand Abhishek
a3036855e2 touch: pt: Suspend using debugfs
Enablement of debugfs manual POWER mode suspend for touch

Change-Id: I21c20f07b89db5135e43373ef0eaa2d76d26d6ef
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
2022-10-10 02:17:57 -07:00
Anand Abhishek
85f841d111 touch: pt: deep sleep feature
Enabled deep sleep feature for pt touch sensor.

Change-Id: If598192b2e1fc3535c4f9c9e0a6c56bd712af005
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
2022-10-10 02:17:49 -07:00
Anand Abhishek
9ec2c285b6 touch: pt: disable power off feature
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>
2022-10-10 02:17:44 -07:00
Anand Abhishek
9837fef63e touch: pt: set active current
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>
2022-10-10 02:17:40 -07:00
Anand Abhishek
b29e79f702 touch: pt: cancel all pending works
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>
2022-10-10 02:17:33 -07:00
Zhenbin Tan
34a4271847 touch: device exit TWM probe fail
When device exit TWM mode, poweron init wait for
reset timeout, casue probe fail, add probe retry.

Change-Id: I2b323eb57cd04bfcc64f136a389b0af49f8b0162
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
2022-10-10 02:17:26 -07:00
Srinu Gorle
c54d687364 touch: Add workqueue for suspend
Added work Queues to handle suspend functionality.

Change-Id: I1a7799056cd31d29b36172b5a0c509c9f6312dcd
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
2022-10-10 02:17:16 -07:00
Srinu Gorle
9fbc77acce touch: Fix easywake and suspend concurrencies
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>
2022-10-10 02:17:08 -07:00
Srinu Gorle
55fb326d70 touch: disable both LDO29 and LDO21 regulators
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>
2022-10-10 02:00:44 -07:00
Srinu Gorle
0bc0c0ab12 touch: configure regulators individually
added support to configure touch regulators individually

Change-Id: Ie0fea5717e6f0ecedcb52f38cd7985922ca0243c
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
2022-10-10 02:00:14 -07:00
Sachin Kumar Garg
a6675f0aee touch: offload fw boot up to workqueue
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>
2022-09-28 23:42:16 -07:00
Sachin Kumar Garg
13fe897650 touch: fix suspend resume issues
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>
2022-09-28 23:41:48 -07:00
Sachin Kumar Garg
36097dc556 touch: Enabling Touch-to-Wake when AOD off
Enablement of Touch to Wake when contextual mode is off.

Change-Id: I94df963268daae4c50798c43fcb7c151bb2b0186
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
2022-09-28 23:41:26 -07:00
Sachin Kumar Garg
9beefc5e6f touch: Correct return codes for S/R
Adding correct condition of return codes for
core suspend and resume.

Change-Id: I6b9bf0fa1032f2d717535c48ec5e3ba5711b7d90
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
2022-09-28 23:41:07 -07:00
Sachin Kumar Garg
01206d278d touch: Correct handling of core suspend issue
Added correct handling of return codes and retrying for successful
core suspend.

Change-Id: I1c8f19fa55f5d51b5195242fb308f59f08330789
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
2022-09-28 23:40:42 -07:00
Surya Teja Kudiri
03a5e19b61 touch: Setting up of DRM notifier
Implementation of DRM notifier callbacks and registration
of callback during touch probing.

Change-Id: I56e6d19708e207cee4d63089a73725be30f9cd84
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-09-19 15:40:00 +05:30
Surya Teja Kudiri
f8c8176c7a touch: Pull down GPIOs during SUSPEND
Enablement and disablement of GPIO pins along with LDOs
during RESUME and SUSPEND state respectively.

Change-Id: If24272ca1410ac583ba9ea6792c44459a8429334
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-09-19 15:22:20 +05:30
Surya Teja Kudiri
0fb4da9875 touch: fix parade driver deinit sequence
driver context is freed before calling power off sequence,
which is resulting invalid memory access causing system crash.

complete power off sequence before free up driver context.

Change-Id: Ib6665d904d2747ec87a62b47cfadcb91f713ffe6
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-09-19 15:17:27 +05:30
Surya Teja Kudiri
9f8b0948ed touch: fix regulator min voltage during deinit
voltage range should fall in between regulator supported range.
updated min voltage from zero to regulator min voltage.

Change-Id: I3df1e2638d69348b0550d175063df2e3ac65cf0d
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-09-19 15:12:05 +05:30
Surya Teja Kudiri
24ad9327a2 touch: Enable and Disable voltages
Added regulator API's for enablement and disablement of voltages for touch
during SUSPEND and RESUME state.

Change-Id: Idcf4148d59c6fb23cc1942818585cac19834e4f9
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-09-19 15:06:40 +05:30
Surya Teja Kudiri
857b6fc994 touch: Adding of voltage regulators APIs
Inclusion of API's for enablement and disablement of voltages for touch
and enabled defconfig for Power APIs.

Change-Id: I677b05d472bb9ce4c1ffa9443dc8256721d1a502
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-09-19 15:00:44 +05:30
Surya Teja Kudiri
85276af664 touch: fix for the errors
This change fixes all the errors of dependent change

Change-Id: Ic52cfcf8dfbd38188573b64299f0500002579588
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-09-19 14:53:16 +05:30
Parade-Github
b0e4b1c194 touch : Add files via upload
Removed example files and move source to /pt/
Git-commit: e2e4bb9eacc2406cb0351d15e478e68249d5f625
Git-repo: https://github.com/Parade-Github/TTDL/tree/main

Change-Id: I07f3464718058d5bba76b7d5be486a79934db354
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-09-08 22:27:01 -07:00