From b71a17cddfdb93148c9620ba7df9459c81d11e6e Mon Sep 17 00:00:00 2001 From: Ioannis Karachalios Date: Wed, 31 Jan 2024 16:35:08 +0200 Subject: [PATCH] samples: modules: lvgl: Add support for Smartbond Pro DevKit. 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 --- .../boards/da1469x_dk_pro_mipi_dbi.overlay | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 samples/modules/lvgl/demos/boards/da1469x_dk_pro_mipi_dbi.overlay diff --git a/samples/modules/lvgl/demos/boards/da1469x_dk_pro_mipi_dbi.overlay b/samples/modules/lvgl/demos/boards/da1469x_dk_pro_mipi_dbi.overlay new file mode 100644 index 000000000000000..adf3a174c744bf2 --- /dev/null +++ b/samples/modules/lvgl/demos/boards/da1469x_dk_pro_mipi_dbi.overlay @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2023 Renesas Electronics Corporation + * + * SPDX-License-Identifier: Apache-2.0 + */ + + #include + #include + +/ { + 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 = ; + rotation = <0>; + }; +};