Commit fe418964 authored by Luc BEAUFILS's avatar Luc BEAUFILS Committed by Benjamin Cabé
Browse files

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: default avatarLuc BEAUFILS <luc.beaufils@savoirfairelinux.com>
parent 04880448
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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
+13 −0
Original line number Diff line number Diff line
@@ -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 {