Skip to content

Commit

Permalink
drivers: input: ft5336: Enable interrupts in conjunction with DT config
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
soburi committed Dec 28, 2024
1 parent 73af324 commit 17612e3
Show file tree
Hide file tree
Showing 14 changed files with 1 addition and 63 deletions.
3 changes: 0 additions & 3 deletions boards/ezurio/bl5340_dvk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions boards/m5stack/m5stack_core2/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions boards/m5stack/m5stack_cores3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions boards/nxp/rd_rw612_bga/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions boards/renesas/da1469x_dk_pro/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ endif # LVGL

if INPUT

config INPUT_FT5336_INTERRUPT
default y

config LV_Z_POINTER_INPUT_MSGQ_COUNT
default 70

Expand Down
8 changes: 0 additions & 8 deletions boards/shields/adafruit_2_8_tft_touch_v2/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions boards/shields/g1120b0mipi/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions boards/shields/rk043fn02h_ct/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions boards/st/stm32f746g_disco/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 0 additions & 7 deletions boards/st/stm32f7508_dk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions boards/st/stm32h7b3i_dk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions drivers/input/Kconfig.ft5336
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down

0 comments on commit 17612e3

Please sign in to comment.