From cb07932e2ae057bbe39b2bd77ba8b114eeb57e86 Mon Sep 17 00:00:00 2001 From: Ioannis Karachalios Date: Sun, 25 Feb 2024 20:30:45 +0200 Subject: [PATCH] boards: renesas: smartbond: Add support for the display driver class. Update board's DTS configurations to support the Renesas LCD controller. (cherry picked from commit 4a83b9955af0c4205f69d3f93039bfb4e1c396ea) Original-Signed-off-by: Ioannis Karachalios GitOrigin-RevId: 4a83b9955af0c4205f69d3f93039bfb4e1c396ea Change-Id: I6ac6df3f97f77a613ba94c399c96704a612aed34 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5356058 Tested-by: ChromeOS Prod (Robot) Reviewed-by: Tristan Honscheid Tested-by: Tristan Honscheid Commit-Queue: Tristan Honscheid --- boards/renesas/da1469x_dk_pro/Kconfig.defconfig | 8 ++++++++ .../da1469x_dk_pro/da1469x_dk_pro-pinctrl.dtsi | 15 +++++++++++++++ boards/renesas/da1469x_dk_pro/da1469x_dk_pro.dts | 4 ++++ boards/renesas/da1469x_dk_pro/da1469x_dk_pro.yaml | 1 + 4 files changed, 28 insertions(+) diff --git a/boards/renesas/da1469x_dk_pro/Kconfig.defconfig b/boards/renesas/da1469x_dk_pro/Kconfig.defconfig index 90e48078674..c0f49a23a2e 100644 --- a/boards/renesas/da1469x_dk_pro/Kconfig.defconfig +++ b/boards/renesas/da1469x_dk_pro/Kconfig.defconfig @@ -14,6 +14,14 @@ config LV_Z_BITS_PER_PIXEL config LV_Z_AREA_X_ALIGNMENT_WIDTH default 2 +config LV_Z_FLUSH_THREAD + default y + +# Use double buffering to avoid visual artifacts as long as +# the DMA is copying data into driver's frame buffer. +config LV_Z_DOUBLE_VDB + default y + endif # LVGL if INPUT diff --git a/boards/renesas/da1469x_dk_pro/da1469x_dk_pro-pinctrl.dtsi b/boards/renesas/da1469x_dk_pro/da1469x_dk_pro-pinctrl.dtsi index 7fe5111302d..39daff3ff16 100644 --- a/boards/renesas/da1469x_dk_pro/da1469x_dk_pro-pinctrl.dtsi +++ b/boards/renesas/da1469x_dk_pro/da1469x_dk_pro-pinctrl.dtsi @@ -32,6 +32,21 @@ }; }; + display_controller_default: display_controller_default { + group1 { + pinmux = , + , + , + , + , + , + , + , + , + ; + }; + }; + spi_controller: spi_controller { group1 { pinmux = , diff --git a/boards/renesas/da1469x_dk_pro/da1469x_dk_pro.dts b/boards/renesas/da1469x_dk_pro/da1469x_dk_pro.dts index 826703c7c87..9c019fa3a0c 100644 --- a/boards/renesas/da1469x_dk_pro/da1469x_dk_pro.dts +++ b/boards/renesas/da1469x_dk_pro/da1469x_dk_pro.dts @@ -21,6 +21,10 @@ zephyr,code-partition = &slot0_partition; }; + lvgl_pointer { + compatible = "zephyr,lvgl-pointer-input"; + }; + leds { compatible = "gpio-leds"; red_led: led_0 { diff --git a/boards/renesas/da1469x_dk_pro/da1469x_dk_pro.yaml b/boards/renesas/da1469x_dk_pro/da1469x_dk_pro.yaml index 631615c6ffe..eb29fd6c559 100644 --- a/boards/renesas/da1469x_dk_pro/da1469x_dk_pro.yaml +++ b/boards/renesas/da1469x_dk_pro/da1469x_dk_pro.yaml @@ -20,4 +20,5 @@ supported: - crypto - dma - mipi_dbi + - display vendor: renesas