boards: arm: enable stmpe811 on stm32f429i_disc1

Enable STMPE811 driver on stm32f429i_disc1 board.

Signed-off-by: Brunon Blok <bblok@internships.antmicro.com>
Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com>
This commit is contained in:
Brunon Blok 2023-08-11 16:04:22 +02:00 committed by Carles Cufí
commit bac9b73442
2 changed files with 27 additions and 0 deletions

View file

@ -8,6 +8,9 @@ if BOARD_STM32F429I_DISC1
config BOARD
default "stm32f429i_disc1"
config INPUT
default y if DISPLAY
config MEMC
default y if DISPLAY

View file

@ -55,6 +55,13 @@
led0 = &green_led_3;
sw0 = &user_button;
};
lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&stmpe811>;
invert-x;
invert-y;
};
};
&clk_lsi {
@ -115,6 +122,23 @@
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
stmpe811: stmpe811@41 {
compatible = "st,stmpe811";
status = "okay";
reg = <0x41>;
int-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
screen-width = <240>;
screen-height = <320>;
raw-x-min = <240>;
raw-y-min = <200>;
raw-x-max = <3680>;
raw-y-max = <3800>;
panel-driver-settling-time-us = <1000>;
touch-detect-delay-us = <5000>;
touch-average-control = <8>;
tracking-index = <127>;
};
};
&spi5 {