Gráfico de commits

114 Commits

Autor SHA1 Mensaje Fecha
ppadasal
20a6810dae touch: raydium touch driver upgrade
Upgrading raydium tech touch driver code from
kernel 5.4 to kernel 5.15.

Change-Id: I051065cadad60ea9428f38eb18bedbcb3af47797
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-12-19 13:54:37 +05:30
ppadasal
2892f00748 touch: enable raydium driver
Enable new raydium.
Configuration changes to pick raydium
for compilation.

Change-Id: If3a8f8c425d6702ee5e483a419aaa19907cfc013
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-12-07 17:23:33 +05:30
Kirill Shpin
f69760205e touch: removing pt touch for Pineapple target
Change removes compilation of pt touch driver which is
not needed for Pineapple.

Change-Id: Ie79fad0dea645ab9332490eb2bb8549228ad13b4
Signed-off-by: Kirill Shpin <quic_kshpin@quicinc.com>
2022-12-05 18:02:24 -08:00
qctecmdr
20663c4ba9 Merge "touch: goodix: Add more checks for brl_send_config function" 2022-12-01 03:23:31 -08:00
Yu Wu
8ef61bcc10 touch: goodix: Add more checks for brl_send_config function
Add more checks in brl_send_config to ensure the config
data sent by user is valid. Also add more parameter
checks in brl_read_config function.

Change-Id: I6ac69de62e8565dc4bee4befbe3124c60118f3a1
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
2022-11-30 14:28:45 +08:00
Ritesh Kumar
333d940f96 touch: goodix: fix suspend resume sequence for dual touch case
Touch resume and suspend is done only when core_module_prob_sate
global variable is set to probed state. In case of dual touch,
if secondary probe fails, core_module_prob_sate is updated to
probe failed state. Due to this, suspend or resume calls for
primary touch returns early even though primary touch probe is
successful. This leads to primary touch remain always on.

To fix this, add a new ready variable in touch data structure
and perform suspend or resume operations when ready flag is
set to true.

Change-Id: I7b93a5b3135736caa3e2b5aaf6ff7d8adf4dee9d
Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
2022-11-24 18:54:22 +05:30
qctecmdr
ca51d4f514 Merge "touch: fix compilation errors in touch drivers" 2022-11-17 16:09:29 -08:00
Surya Teja Kudiri
2148065228 touch: Fix regression issue
Fix regression issues for other SI.

Change-Id: I5d39dcc4981f0f5857b96389bfd19615b4a199a4
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-11-16 19:36:29 +05:30
Yu Wu
6b6fdc17bf touch: fix compilation errors in touch drivers
Remove the %s in pr_warn function which is not needed.

Change-Id: Idf8346b250a51763bdb270cfa36bda416650d91e
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
2022-11-15 21:34:39 -08:00
Surya Teja Kudiri
dd83644578 touch-driver: add KBUILD_OPTIONS for standalone kernel compilation
add KBUILD_OPTIONS for standalone kernel compilation.

Change-Id: I392f3eb1f9fb7414c888da720088de96bd487660
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-11-14 16:09:01 +05:30
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
4200da37ac touch: enable paradetech driver
Enable new paradetech driver.
configuration changes to pick paradetech
driver for compilation.

Change-Id: I70feb9c34857166a8be1e12a3e5d85f4f27bc679
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-11-11 21:50:57 +05:30
Simranjeet Thind
8664f210f6 touch: fix compilation errors in touch drivers
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>
2022-10-31 13:22:57 -07:00
Simranjeet Thind
3127a1879a touch: pineapple: enable touch drivers for pineapple
Add touch config files and enable for pineapple platform

Change-Id: Ibad6ce0e661a5d2c0e8794573e18abbf1fe2b88f
Signed-off-by: Simranjeet Thind <quic_sthind@quicinc.com>
2022-10-28 14:33:20 -07:00
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
704b21a096 touch: Fix L29 is OFF in TWM
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>
2022-10-17 00:38:34 +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
Surya Teja Kudiri
7e6fdfcf0e touch: Add the IRQF_NO_SUSPEND flag
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>
2022-10-17 00:13:59 +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
a362b27156 touch: pt: Add default log level
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>
2022-10-10 02:17:53 -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
Sayantan Majumder
78f5b6be0d touch: Adding default logging level
Updating the logging level to default from maximum

Change-Id: I25f822350d71e7349b9bc6337d754115d8fe0af1
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
2022-10-10 02:17:21 -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
qctecmdr
8988644ee3 Merge "touch: offload fw boot up to workqueue" 2022-10-10 00:25:41 -07:00
qctecmdr
a069f1dfd0 Merge "touchscreen: raydium: Lower log level" 2022-09-29 05:31:12 -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
Sachin Kumar Garg
c12b22927b touch: Inclusion of wakeup key
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>
2022-09-28 23:39:54 -07:00
qctecmdr
4905b5fd5e Merge "touch: Request firmware from userspace" 2022-09-27 21:45:21 -07:00
qctecmdr
8c92bcbbeb Merge "touch: goodix: Remove duplicate reset operation" 2022-09-27 21:45:21 -07:00
qctecmdr
6ad2b040d9 Merge "touch: Setting up of DRM notifier" 2022-09-27 21:45:21 -07:00
qctecmdr
0de2c30d0a Merge "touch: qts: handle errors in touch_abort case" 2022-09-27 21:45:21 -07:00
Yu Wu
bd4d865d2d touch: goodix: Remove duplicate reset operation
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>
2022-09-23 14:09:15 +08:00
ppadasal
6414fb04bf touchscreen: raydium: Lower log level
Lower log level in work handler.

Change-Id: Idcd1ce78ce979318542be5684fc286135af5d322
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-09-21 16:48:25 +05:30
ppadasal
558808c356 touchscreen: raydium: Change in Key event
Changed key event from KEY_POWER to KEY_WAKEUP in Probe Sequence.

Change-Id: Ifb93b0529af727443d86fd8fad47fed7c70ad48d
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-09-21 16:46:54 +05:30
ppadasal
73a5d93a4c touchscreen: raydium: Change Input Key event
Changed key event from KEY_POWER to KEY_WAKEUP.

Change-Id: Ifeed075504a72426af600291457b46f1d0b336ae
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-09-21 16:45:51 +05:30