24 Commits

Author SHA1 Message Date
Surya Teja Kudiri
3638686626 Revert "input: touchscreen: focaltech: support FT5446DQS"
This reverts commit 56b48a4c084d81b2fc2e22e416282774821bf2be.

Change-Id: I6e9c377ec2a8dda0018cb73fcd37bfb9d25ee231
Signed-off-by: Ke Du <quic_kedu@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-08-21 15:52:17 +05:30
Surya Teja Kudiri
4729283adc Revert "input: touchscreen: focaltech: add a new property"
This reverts commit 32aeb3bff230729fc82d0e126e7162cd7172133a.

Change-Id: I51d7b75897b124e77f593fb03026127a21c66648
Signed-off-by: Fei Mao <feim1@codeaurora.org>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-08-21 11:29:39 +05:30
Surya Teja Kudiri
74cc467cf2 Revert "input: touchscreen: focaltech: Use disable/enable irq wake in LA to LE"
This reverts commit 88fed2127a9d4986f4e667ed247a4e8a4d3bc2d1.

Change-Id: I13161d319a96c338c759b2196857b2350a7b7de0
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-08-19 11:09:56 +05:30
qctecmdr
dd882b632d Merge "input: touchscreen: focaltech: Use disable/enable irq wake in LA to LE" 2022-08-08 03:37:12 -07:00
Ritesh Kumar
8c9a7926e9 input: touchscreen: focaltech: release i2c session early
Release I2C session lock before releasing IO regions in TVM
during trusted touch scenario.

Change-Id: If943165b687318eac6c5f7b734bc6dea4c0efa46
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-07-26 21:28:35 -07:00
Ritesh Kumar
49d92b68d6 input: touchscreen: focaltech: toggle reset gpio during error
Toggle reset gpio of touch controller during an error scenario
on Secondary Virtual Machine(SVM).

Change-Id: Id5fdbb8e0106e636676060edfb05b6219f7400c8
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-07-26 21:27:37 -07:00
Ritesh Kumar
b4d65de540 input: touchscreen: focaltech: TUI error handling state machine
Introduce state machine for various checkpoints in trusted touch
usecase. In error scenarios, this state machine helps driver to
rollback to previous state.

Change-Id: Ia9f9e01905b5d1561dd21ea782cf9f09001d35a7
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-07-26 21:26:00 -07:00
Satya Rama Aditya Pinapala
5d9381b0b5 input: touchscreen: focaltech: queue touch suspend work on workqueue
In case of continuous panel BLANK and UNBLANK, there is a possibility
of a race condition in the current sequence of operations. This change
ensures that suspend work is also queued on the same workqueue as the
resume work to ensure no race around and removes the need for having to
cancel touch resume work during a panel blank.

Change-Id: I1e0c64a7cd3e001c7224b2ea357877a45c1116e4
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-07-25 22:21:30 -07:00
Huadong Gao
2c2daabb3b input: touchscreen: focaltech: fix return value
When no touch panel, return proper value to exit driver probe.

Change-Id: I422f14ba6c942252346c46df5ccbc2f1f8be7731
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-07-25 22:20:44 -07:00
Murali Nalajala
0d4704a614 haven: irq_lend: add support for IRQ notifications
Currently IRQ APIs are combined with notifications to VMs for sharing the
handles. This limit the clients for managing the error handling from the
drivers. Hence separate the notifications from the actual APIs so that
clients manage the error handling better. Add support for notifications
like IRQ_LEND/ACCEPT/RELEASE from SVM to PVM when SVM accept the irq
handle shared by PVM.

Change-Id: I49999c2d9494c68b1542680e521c012a25e3f6a8
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-07-25 22:20:09 -07:00
Isaac J. Manjarres
28ca2b9d69 haven: Add support for the MEM_ACCEPTED notification
It's useful for other virtual machines (VMs) to know if another
VM has successfully received a resource that was shared with it
(e.g. state tracking can be controlled better with this sort of
information). Add support for the MEM_ACCEPTED notification, which
clients can use to notify the VM that owns the resource that was
shared with it that it has accepted the resource and is using it.
Also, add support in the mem-notifier driver to forward the
MEM_ACCEPTED notification to clients.

Change-Id: I05b9f1d37906d7c2aa729b97df2f8ceb78b560bd
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
2022-07-25 22:18:33 -07:00
qctecmdr
fc203b7cce Merge "input: touchscreen: focaltech: Add trusted touch support" 2022-07-05 00:25:41 -07:00
qctecmdr
f6695546a9 Merge "input: touchscreen: focaltech_touch: support dynamic report rate" 2022-07-04 19:20:41 -07:00
qctecmdr
ba47748c98 Merge "input: touchscreen: focaltech_touch: Remove vfs_read()" 2022-07-04 14:18:39 -07:00
qctecmdr
f78fe8957a Merge "input: touchscreen: focaltech_touch: Configure power supply" 2022-07-04 09:13:19 -07:00
Srikanth Katteboina
e1e159e423 input: touchscreen: focaltech: Add trusted touch support
Add Trusted touch support to lahaina QRD Touchscreen
driver. This feature enables driver to operate in
trusted touch mode in trusted virtual machine(TVM).
The primary virtual machine(PVM) lends resources such
as IO memory and touch irq to TVM prior to trusted touch
is initiated and reclaims those resources back after trusted
touch usecase finishes.The resource requirements of TVM
such as clock, regulators etc are taken care by PVM.

Change-Id: I19728218acd89cf26562c534c7e60f8fe081af3a
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
2022-07-01 15:39:24 +05:30
Srikanth Katteboina
fb21a186ec input: touchscreen: focaltech_touch: support dynamic report rate
Add a new sys node to support runtime dynamic report rate.

Change-Id: I291f3813f10eb54485a35fba3c5a5ae68183a1dc
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
2022-07-01 15:33:35 +05:30
Srikanth Katteboina
1a51ae0448 input: touchscreen: focaltech_touch: Remove vfs_read()
To request a firmware file by request_firmware() is preferred.

Change-Id: I80edcf28c06074620507d628e92ab0a581b20095
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
2022-07-01 15:27:30 +05:30
Srikanth Katteboina
2a63b90f22 input: touchscreen: focaltech_touch: Configure power supply
Configure proper voltage and load values for AVDD.

Change-Id: I972283ec44b0cbd76154031c6c47b54a6ebdb275
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
2022-07-01 15:20:08 +05:30
Srikanth Katteboina
e6b3a17167 input: touchscreen: Enable new Focaltech touch driver
Enable this new Focaltech touch driver for Lahaina device.

Change-Id: Idfac408417fc1356ae7afeea5fa62fa6a9c2f39f
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
2022-07-01 13:27:31 +05:30
Ritesh Kumar
88fed2127a input: touchscreen: focaltech: Use disable/enable irq wake in LA to LE
Touch uses gpio as irq in LA. As per latest change from pinctrl,
wakeup bit is disabled/enabled when disable_irq/enable_irq is called.
During transtion from LA to LE, disable_irq is called leading to
wakeup bit getting disabled and in LE Touch interrupts does not come.
So, use disable_irq_wake to disable Touch interrupts while transition
from LA to LE and use enable_irq_wake to enable back Touch interrupts
while transition from LE to LA.

Change-Id: I288bfbd26be9ff1da1b7e14104f98338eb8d8715
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-06-21 18:17:57 +05:30
Fei Mao
32aeb3bff2 input: touchscreen: focaltech: add a new property
Add a new property to indicate power's state when sleep.

Change-Id: Ic54fbbd0adee8716ad0b2d892814f8ac38b683c5
Signed-off-by: Fei Mao <feim1@codeaurora.org>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-06-21 17:38:51 +05:30
Ke Du
56b48a4c08 input: touchscreen: focaltech: support FT5446DQS
Support new FT5446DQS over I2C.

Change-Id: Ie5dd870101b2289b08fe9dea919bdccb6287591d
Signed-off-by: Ke Du <quic_kedu@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
2022-06-21 15:11:14 +05:30
chenx
76970c0c87 input: touchscreen: Add new Focaltech touch driver
This is the reference driver source code for Focaltech Touch Sensor.

Change-Id: I86e60f6774812d7a4e553530197d56b0276f2dab
Signed-off-by: chenx <chenxiang0527@thundersoft.com>
Git-commit: 54e1e61066d03e2a9dc46d928b2744713842b070
Git-repo: https://source.codeaurora.org/external/thundersoft/ihvjointlab/sensor-driver/commit/?h=Focaltech_touch
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
2022-06-14 22:29:31 -07:00