This commit adds support for the Parade Tech TMA525B capacitive touch controller. The driver supports both interrupt-driven and polling modes, and can handle up to 4 simultaneous touch points. Key features: - I2C communication interface - Multi-touch support (up to 4 touch points) - Interrupt mode with GPIO callback support - Polling mode with timer - Power management support with PM notifier - Reset and power control via GPIO - Touch event tracking (down, contact, up) Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Copyright (c) 2025 NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig INPUT_TMA525B
|
|
bool "TMA525B capacitive touch controller"
|
|
default y
|
|
depends on DT_HAS_PARADE_TMA525B_ENABLED
|
|
select I2C
|
|
select INPUT_TOUCH
|
|
help
|
|
Enable support for Parade Tech TMA525B capacitive touch controller.
|
|
|
|
if INPUT_TMA525B
|
|
|
|
config INPUT_TMA525B_INTERRUPT
|
|
bool "Interrupt mode"
|
|
default y if $(dt_compat_any_has_prop,$(DT_COMPAT_PARADE_TMA525B),int-gpios)
|
|
help
|
|
Enable interrupt mode for TMA525B touch controller. If disabled,
|
|
the driver will use polling mode.
|
|
|
|
config INPUT_TMA525B_PERIOD_MS
|
|
int "Polling period (ms)"
|
|
default 10
|
|
depends on !INPUT_TMA525B_INTERRUPT
|
|
help
|
|
Polling period in milliseconds when the controller is in polling mode.
|
|
|
|
config INPUT_TMA525B_MAX_TOUCH_POINTS
|
|
int "Maximum number of touch points"
|
|
default 1
|
|
range 1 4
|
|
help
|
|
Maximum number of touch points supported by the controller.
|
|
|
|
config INPUT_TMA525B_RETRY_TIMES
|
|
int "Retry times for controller to enter application mode"
|
|
default 10
|
|
help
|
|
Retry times for controller to enter application mode after power up.
|
|
|
|
endif # INPUT_TMA525B
|