Skip to content

Commit

Permalink
samples: modules: lvgl: Add support for Smartbond Pro DevKit.
Browse files Browse the repository at this point in the history
Add configuration and overlay files to support the DA1469x development kit.

Signed-off-by: Ioannis Karachalios <[email protected]>
  • Loading branch information
ioannis-karachalios committed Jan 16, 2024
1 parent facface commit dff150c
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
13 changes: 13 additions & 0 deletions samples/modules/lvgl/demos/boards/da1469x_dk_pro.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright (c) 2023 Renesas Electronics Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
#
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_LOG_MODE_MINIMAL=y
CONFIG_DISPLAY_LOG_LEVEL_DBG=y
CONFIG_INPUT_FT5336_INTERRUPT=y
CONFIG_LV_Z_POINTER_INPUT_MSGQ_COUNT=70
CONFIG_LV_Z_BITS_PER_PIXEL=16
CONFIG_DMA_LOG_LEVEL_INF=y
59 changes: 59 additions & 0 deletions samples/modules/lvgl/demos/boards/da1469x_dk_pro.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright (c) 2023 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/display/panel.h>

/ {
chosen {
zephyr,display = &display;
};

lvgl_pointer {
input = <&display_touch>;
status = "okay";
swap-xy;
invert-x;
invert-y;
};
};

&dma {
status = "okay";
};

&i2c2 {
display_touch: ft6206@38 {
compatible = "focaltech,ft5336";
status = "okay";
reg = <0x38>;
int-gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
};
};

&display {
disp-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
status = "okay";
width = <480>;
height = <272>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;

/* Display settings for ST7282T2 conttoller */
display-timings {
compatible = "zephyr,panel-timing";
hsync-len = <2>;
hfront-porch = <2>;
hback-porch = <3>;
vsync-len = <2>;
vfront-porch = <2>;
vback-porch = <2>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <1>;
clock-frequency = <12000000>;
};
};

0 comments on commit dff150c

Please sign in to comment.