Gráfico de commits

133 Commits

Autor SHA1 Mensagem Data
Surya Teja Kudiri
d4a3f6dc49 touch: focal_tech touch driver upgrade
upgrading focal tech touch driver for kernel 5.15 on
kona target.

Change-Id: I21a1216e617d470f64f087f6c5b2b5ac619b2932
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2023-02-21 11:09:29 +05:30
Surya Teja Kudiri
552e89606c touch: raydium: NULL pointer from TOUCH driver
During reboot,disable irq in shutdown and remove callbacks.

Change-Id: Ifb2af617ae0ddffd9598c50320930319c6280e9b
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2023-02-16 01:53:37 -08:00
Surya Teja Kudiri
1966defdcf touch: raydium: NULL pointer panic from TOUCH driver
During Reboot,Cancel the work and destroy_workqueue and deallocate the
memory for g_raydium_ts in shutdown and remove callbacks.

Change-Id: I8ce1fa9814e3d85fde33d3241cec2f00755b9f06
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2023-02-16 01:14:24 -08:00
Surya Teja Kudiri
0ebf44a4f9 touch: raydium: Handle NULL reference
Handling NULL reference of input_dev during shutdown failure.

Change-Id: If303f4a4cb238272aa696617b57f9bbdd8959b55
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2023-02-13 10:35:45 +05:30
Surya Teja Kudiri
a69bc36df5 touch: raydium: Handling NULL reference
Handing NULL reference of input_dev during probe failure.

Change-Id: I1c41773d0fa4892940e6faae044c211d21095901
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2023-02-10 12:38:44 +05:30
Surya Teja Kudiri
2521a158df touch: raydium: Unregister of Panel_notifier
Implementation of Panel notifier callbacks and unregistration
of callback during touch probing.

Change-Id: I1706d01b99302125e37dd04c94597cf37e004cd0
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2023-02-10 11:36:18 +05:30
Raviteja Tamatam
4ca379016d touch: goodix: fix qts sequence in secure vm case
qts register is skipped when QTI_VM is defined. Fix the
sequence to allow qts register in secure vm cases.

Change-Id: Id9476de998d9598bab125795ad918a066ad7b15d
Signed-off-by: Raviteja Tamatam <quic_travitej@quicinc.com>
2023-01-30 15:22:09 -08:00
qctecmdr
f67743ba90 Merge "touch: remove raydium touch driver for Pineapple target" 2023-01-10 11:46:44 -08:00
qctecmdr
5a362e06c9 Merge "touch: goodix: move qts initialization to after touch power on" 2023-01-09 03:40:49 -08:00
qctecmdr
e27b47cbc1 Merge "touch: goodix: Sleep 100ms after reset operation" 2023-01-09 03:40:49 -08:00
Vara Reddy
d3292bde41 touch: remove raydium touch driver for Pineapple target
Change removes compilation of raydium touch driver which is
not needed for Pineapple.

Change-Id: Ie3088ab8426b855f20c265cde41f458a4105aabe
Signed-off-by: Vara Reddy <quic_varar@quicinc.com>
2023-01-04 15:15:30 -08:00
Surya Teja Kudiri
3574f26e7e touch: Add panel event notifier support
Add panel event notifier support for raydium driver.

Change-Id: I4ebe4ebf8522bb0ecc637aefec69f35a0d426c9e
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2023-01-03 11:02:02 +05:30
Yu Wu
3d03d5839e touch: goodix: Sleep 100ms after reset operation
It is found there might be some i2c NACK error after
power on and reset operation, from goodix datasheet
it is required to wait 100ms after reset operation
before I2C communication, so put a 100ms sleep after
reset.

Change-Id: I2601085f85c83a57bc895915506eaf0c29442678
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
2022-12-30 15:27:53 +08:00
qctecmdr
302815ce7e Merge "touch: add DRM for raydium for kernel 5.15" 2022-12-21 21:41:12 -08:00
qctecmdr
ed5a3894f6 Merge "touch: fix compilation errors due to kernel upgrade" 2022-12-20 14:51:16 -08:00
Vara Reddy
10ca119f57 touch: fix compilation errors due to kernel upgrade
The value returned by an driver's remove function is ignored
in 6.1 kernel. Modify the function's while keeping backward
compatibility.

Change-Id: I211e7ef822d9febe434b3ab45cd0c711617d85ea
Signed-off-by: jianzhou <quic_jianzhou@quicinc.com>
Signed-off-by: Vara Reddy <quic_varar@quicinc.com>
Signed-off-by: Kirill Shpin <quic_kshpin@quicinc.com>
2022-12-20 13:15:05 -08:00
ppadasal
786e437137 touch: add DRM for raydium for kernel 5.15
Updated panel_event_notifier_register
and panel_event_notifier_unregister
as per kernel 5.15

Change-Id: Ia2e31fa1a8ddd8b047891c2035dc89509f889b0b
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-12-19 02:38:08 -08:00
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
Yu Wu
f650cebc81 touch: goodix: move qts initialization to after touch power on
qts initialization will contain an event notifier, sometimes the
qupv engine init fail and causes goodix_ts_power_on failure, it
leads to touch probe function failure. In this case there is no
need to register this notifier, otherwise the resume function may
access resource like irqs, which are not ready because probe failure,
it may cause crash.

Change-Id: I65bf39ec3ca3e2ea92eb84366b75a98ba43b8816
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
2022-12-15 17:57:20 +08:00
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
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