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>
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>
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>
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>
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>
When no touch panel, return proper value to exit driver probe.
Change-Id: I422f14ba6c942252346c46df5ccbc2f1f8be7731
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
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>
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>
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>
Add a new sys node to support runtime dynamic report rate.
Change-Id: I291f3813f10eb54485a35fba3c5a5ae68183a1dc
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
To request a firmware file by request_firmware() is preferred.
Change-Id: I80edcf28c06074620507d628e92ab0a581b20095
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Configure proper voltage and load values for AVDD.
Change-Id: I972283ec44b0cbd76154031c6c47b54a6ebdb275
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Enable this new Focaltech touch driver for Lahaina device.
Change-Id: Idfac408417fc1356ae7afeea5fa62fa6a9c2f39f
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
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>
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>
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>