drivers: input: ft5336: Enable interrupts in conjunction with DT config
Enabling `CONFIG_INPUT_FT5336_INTERRUPT` if the ft5336 node in DT has `int-gpios` property. As a result of this change, some boards can eliminate lines that explicitly configure `CONFIG_INPUT_FT5336_INTERRUPT`. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
5d23996361
commit
ecefb5de5d
14 changed files with 1 additions and 63 deletions
|
|
@ -72,9 +72,6 @@ config BT_HCI_VS
|
|||
# https://www.buydisplay.com/2-8-inch-tft-touch-shield-for-arduino-w-capacitive-touch-screen-module
|
||||
if DISPLAY
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y
|
||||
|
||||
if LVGL
|
||||
|
||||
config LV_Z_VDB_SIZE
|
||||
|
|
|
|||
|
|
@ -23,9 +23,6 @@ config GPIO_AXP192_INIT_PRIORITY
|
|||
config REGULATOR_FIXED_INIT_PRIORITY
|
||||
default 75
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y if INPUT
|
||||
|
||||
config INPUT
|
||||
default y
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,6 @@
|
|||
|
||||
if BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y if INPUT
|
||||
|
||||
config INPUT
|
||||
default y
|
||||
|
||||
|
|
|
|||
|
|
@ -30,10 +30,6 @@ config LV_Z_FLUSH_THREAD
|
|||
|
||||
endif # LVGL
|
||||
|
||||
# Enable interrupt support when using FT5336 driver
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y if INPUT
|
||||
|
||||
if DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING
|
||||
|
||||
config NET_L2_ETHERNET
|
||||
|
|
|
|||
|
|
@ -29,9 +29,6 @@ endif # LVGL
|
|||
|
||||
if INPUT
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y
|
||||
|
||||
config LV_Z_POINTER_INPUT_MSGQ_COUNT
|
||||
default 70
|
||||
|
||||
|
|
|
|||
|
|
@ -5,14 +5,6 @@ if SHIELD_ADAFRUIT_2_8_TFT_TOUCH_V2 || SHIELD_ADAFRUIT_2_8_TFT_TOUCH_V2_NANO
|
|||
|
||||
if DISPLAY
|
||||
|
||||
if INPUT
|
||||
|
||||
# NOTE: Enable if IRQ line is available (requires to solder jumper)
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default n
|
||||
|
||||
endif # INPUT
|
||||
|
||||
if LVGL
|
||||
|
||||
config LV_Z_VDB_SIZE
|
||||
|
|
|
|||
|
|
@ -5,14 +5,6 @@ if SHIELD_BUYDISPLAY_2_8_TFT_TOUCH_ARDUINO
|
|||
|
||||
if DISPLAY
|
||||
|
||||
if INPUT
|
||||
|
||||
# NOTE: Enable if IRQ line is available (requires to solder jumper)
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default n
|
||||
|
||||
endif # INPUT
|
||||
|
||||
if LVGL
|
||||
|
||||
config LV_Z_VDB_SIZE
|
||||
|
|
|
|||
|
|
@ -5,14 +5,6 @@ if SHIELD_BUYDISPLAY_3_5_TFT_TOUCH_ARDUINO
|
|||
|
||||
if DISPLAY
|
||||
|
||||
if INPUT
|
||||
|
||||
# NOTE: Enable if IRQ line is available (requires to solder jumper)
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default n
|
||||
|
||||
endif # INPUT
|
||||
|
||||
if LVGL
|
||||
|
||||
config LV_Z_VDB_SIZE
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@ if LVGL
|
|||
config INPUT
|
||||
default y
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y
|
||||
|
||||
if MIPI_DSI_MCUX_2L
|
||||
# Enable color swap in driver
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@ if LVGL
|
|||
config INPUT
|
||||
default y
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y
|
||||
|
||||
# LVGL should allocate buffers equal to size of display
|
||||
config LV_Z_VDB_SIZE
|
||||
default 100
|
||||
|
|
|
|||
|
|
@ -24,13 +24,6 @@ config MEMC
|
|||
|
||||
endif # DISPLAY
|
||||
|
||||
if INPUT
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y
|
||||
|
||||
endif # INPUT
|
||||
|
||||
config DISK_DRIVER_SDMMC
|
||||
default y if DISK_DRIVERS
|
||||
|
||||
|
|
|
|||
|
|
@ -24,13 +24,6 @@ endif # DISPLAY
|
|||
config INPUT
|
||||
default y if LVGL
|
||||
|
||||
if INPUT
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y
|
||||
|
||||
endif # INPUT
|
||||
|
||||
config DISK_DRIVER_SDMMC
|
||||
default y if DISK_DRIVERS
|
||||
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@ if BOARD_STM32H7B3I_DK
|
|||
config INPUT
|
||||
default y if LVGL
|
||||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
default y if INPUT_FT5336
|
||||
|
||||
# MEMC needs to be enabled in order to store
|
||||
# display buffer to external SDRAM connected to FMC
|
||||
config MEMC
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ config INPUT_FT5336_PERIOD
|
|||
|
||||
config INPUT_FT5336_INTERRUPT
|
||||
bool "Interrupt"
|
||||
default y if $(dt_compat_any_has_prop,$(DT_COMPAT_FOCALTECH_FT5336),int-gpios)
|
||||
help
|
||||
Enable interrupt support (requires GPIO).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue