Increasing the load current for touch IC to 30mA from 14mA to avoid
the regulator from going into LPM, as some touch panels are drawing
more power.
Change-Id: I0f2551e91ce0d33904f4874173e3af00c2ecbc58
Signed-off-by: Simranjeet Thind <quic_sthind@quicinc.com>
Add support for touch modules to be built with Bazel for pineapple.
Change-Id: Idf7527318a36ea33e60ba95aadb03a107f2e7205
Signed-off-by: Simranjeet Thind <quic_sthind@quicinc.com>
disable_irq ensures existing instances of the IRQ handler have
completed before returning which may create a deadlock if the handler
doesn't find the resource.
Change-Id: I7010d2a415f97de5ece8119b855c169ffba665b7
Signed-off-by: Simranjeet Thind <quic_sthind@quicinc.com>
Accounts for touch panel current load in L12B regulator,
for enable and disable states.
Change-Id: Ie3668b878ccc5fe3a325e93042d3241ac6787ed1
Signed-off-by: Rohith Iyer <quic_rohiiyer@quicinc.com>
As we are merging upstream patches, resolve conflicts of namespaces in
downstream modules.
Change-Id: I09f4930534b5242335c4884822c5110ca6e8ba8a
Signed-off-by: Prakruthi Deepak Heragu <quic_pheragu@quicinc.com>
Signed-off-by: Raviteja Tamatam<quic_travitej@quicinc.com>
During reboot,disable irq in shutdown and remove callbacks.
Change-Id: Ifb2af617ae0ddffd9598c50320930319c6280e9b
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
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>
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>
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>
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>
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>
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>
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>
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>
Enable new raydium.
Configuration changes to pick raydium
for compilation.
Change-Id: If3a8f8c425d6702ee5e483a419aaa19907cfc013
Signed-off-by: ppadasal <quic_ppadasal@quicinc.com>
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>
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>
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>
Remove the %s in pr_warn function which is not needed.
Change-Id: Idf8346b250a51763bdb270cfa36bda416650d91e
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>