shields: lcd_par_s035: Add touch and LVGL

- Add touch info in dts
 - Add LVGL configuration

Signed-off-by: Jason Yu <zejiang.yu@nxp.com>
This commit is contained in:
Jason Yu 2024-04-18 10:27:01 +08:00 committed by Carles Cufí
commit 3b82edbf71
2 changed files with 32 additions and 0 deletions

View file

@ -11,6 +11,21 @@ config LV_Z_DOUBLE_VDB
config LV_Z_BITS_PER_PIXEL
default 16
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16
endchoice
# VDB size is 10% of the full screen size
config LV_Z_VDB_SIZE
default 10
# Configure LVGL to use touchscreen
config INPUT
default y
config INPUT_GT911_INTERRUPT
default y
endif # LVGL
endif # SHIELD_LCD_PAR_S035

View file

@ -10,6 +10,23 @@
chosen {
zephyr,display = &st7796s;
};
lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&gt911_lcd_par_s035>;
swap-xy;
invert-y;
};
};
&nxp_8080_touch_panel_i2c {
status = "okay";
gt911_lcd_par_s035: gt911-lcd_par_s035@5d {
compatible = "goodix,gt911";
reg = <0x5d>;
alt-addr = <0x14>;
irq-gpios = <&nxp_lcd_8080_connector 9 GPIO_ACTIVE_HIGH>;
};
};
&nxp_flexio_lcd {