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:
parent
bf830ba780
commit
bac9b73442
2 changed files with 27 additions and 0 deletions
|
@ -8,6 +8,9 @@ if BOARD_STM32F429I_DISC1
|
||||||
config BOARD
|
config BOARD
|
||||||
default "stm32f429i_disc1"
|
default "stm32f429i_disc1"
|
||||||
|
|
||||||
|
config INPUT
|
||||||
|
default y if DISPLAY
|
||||||
|
|
||||||
config MEMC
|
config MEMC
|
||||||
default y if DISPLAY
|
default y if DISPLAY
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,13 @@
|
||||||
led0 = &green_led_3;
|
led0 = &green_led_3;
|
||||||
sw0 = &user_button;
|
sw0 = &user_button;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lvgl_pointer {
|
||||||
|
compatible = "zephyr,lvgl-pointer-input";
|
||||||
|
input = <&stmpe811>;
|
||||||
|
invert-x;
|
||||||
|
invert-y;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&clk_lsi {
|
&clk_lsi {
|
||||||
|
@ -115,6 +122,23 @@
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
clock-frequency = <I2C_BITRATE_FAST>;
|
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 {
|
&spi5 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue