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 overlay file to support the pro devkit. To build the sample
code, one should explicitly select the overlay file at
'west build' invokation via the DTC_OVERLAY_FILE system variable.

Signed-off-by: Ioannis Karachalios <[email protected]>
  • Loading branch information
ioannis-karachalios committed Mar 5, 2024
1 parent e62c84f commit bd8cdad
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions samples/modules/lvgl/demos/boards/da1469x_dk_pro_mipi_dbi.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Copyright (c) 2023 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

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

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

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

&i2c2 {
clock-frequency = <400000>;

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

&mipi_dbi {
reset-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
status = "okay";
spi-dev = <&spi2>;

ili9340: ili9340@0 {
compatible = "ilitek,ili9340";
mipi-max-frequency = <48000000>;
status = "okay";
reg = <0>;
width = <240>;
height = <320>;
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
rotation = <0>;
};
};

0 comments on commit bd8cdad

Please sign in to comment.