zephyr/drivers/kscan/Kconfig.cst816s
Kumar Gala 287043cddb drivers: kscan: Update Kconfig
* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers
* Move to using select I2C' instead of 'depends on'
  (see commit df81fef944 for
   more details)

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-09 23:37:46 -05:00

29 lines
626 B
Plaintext

# Copyright (c) 2020 Qingsong Gou <gouqs@hotmail.com>
# SPDX-License-Identifier: Apache-2.0
menuconfig KSCAN_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 KSCAN_CST816S
config KSCAN_CST816S_PERIOD
int "Sample period"
depends on !KSCAN_CST816S_INTERRUPT
default 20
help
Sample period in milliseconds when in polling mode.
config KSCAN_CST816S_INTERRUPT
bool "Interrupt support"
default y
depends on GPIO
help
Enable interrupt support (requires GPIO).
endif # KSCAN_CST816S