Files
zephyr/drivers/input/Kconfig.cst816s
Fabian Blatz a7659d8460 drivers: input: cst816s: Default to interrupt if irq-gpio available
Changes the default value of the INPUT_CST816S_INTERRUPT flag to default to
true if the there is a compatible with the irq-gpio property enabled.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-11-20 17:15:22 +00:00

34 lines
812 B
Plaintext

# Copyright (c) 2020 Qingsong Gou <gouqs@hotmail.com>
# SPDX-License-Identifier: Apache-2.0
menuconfig INPUT_CST816S
bool "CST816S capacitive touch panel driver"
default y
depends on DT_HAS_HYNITRON_CST816S_ENABLED
select I2C
help
Enable driver for hynitron cst816s touch panel.
if INPUT_CST816S
config INPUT_CST816S_PERIOD
int "Sample period"
depends on !INPUT_CST816S_INTERRUPT
default 20
help
Sample period in milliseconds when in polling mode.
config INPUT_CST816S_INTERRUPT
bool "Interrupt support"
default y if $(dt_compat_any_has_prop,$(DT_COMPAT_HYNITRON_CST816S),irq-gpios)
depends on GPIO
help
Enable interrupt support (requires GPIO).
config INPUT_CST816S_EV_DEVICE
bool "Device specific event support"
help
Enable device specific event support.
endif # INPUT_CST816S