boards: stm32l562e_dk: add support for touchscreen

The stm32l562e_dk board uses a ft6x06 i2c controller for the touchscreen.
The zephyr driver ft5336 can control it.

Signed-off-by: Luc BEAUFILS <luc.beaufils@savoirfairelinux.com>
This commit is contained in:
Luc BEAUFILS 2024-09-24 15:11:54 +02:00 committed by Benjamin Cabé
parent 04880448c7
commit fe41896475
2 changed files with 23 additions and 0 deletions

View file

@ -42,4 +42,14 @@ config COMMON_LIBC_MALLOC_ARENA_SIZE
endif # BUILD_WITH_TFM
config INPUT
default y if LVGL
if INPUT
config INPUT_FT5336_INTERRUPT
default y
endif # INPUT
endif # BOARD_STM32L562E_DK

View file

@ -42,6 +42,12 @@
chosen {
zephyr,bt-hci = &hci_spi;
};
lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&ft5336>;
invert-y;
};
};
&fmc {
@ -177,6 +183,13 @@ stm32_lp_tick_source: &lptim1 {
reg = <0x6a>;
irq-gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>;
};
ft5336: ft5336@38 {
compatible = "focaltech,ft5336";
reg = <0x38>;
int-gpios = <&gpiof 1 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
};
};
&rng {