[v2,35/35] board: engicam: stm32mp2: enable simple framebuffer for the splash screen

Message ID 20261107143241.2236511-36-dario.binacchi@amarulasolutions.com
State New
Headers
Series Add Engicam MicroGEA-STM32MP257D-RMM board support |

Commit Message

Dario Binacchi Nov. 7, 2026, 2:32 p.m. UTC
Enable the simple-framebuffer node of the Linux devicetree to preserve
the splash screen until the Linux display driver takes over.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

---

Changes in v2:
- Drop a redundant comment

 board/engicam/stm32mp2/stm32mp2.c        | 17 +++++++++++++++++
 configs/stm32mp25-microgea-rmm_defconfig |  2 ++
 2 files changed, 19 insertions(+)

-- 
2.43.0
  

Comments

Patrice CHOTARD Nov. 16, 2026, 4:37 p.m. UTC | #1
On 11/7/26 15:32, Dario Binacchi wrote:
> Enable the simple-framebuffer node of the Linux devicetree to preserve
> the splash screen until the Linux display driver takes over.
> 
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> 
> ---
> 
> Changes in v2:
> - Drop a redundant comment
> 
>  board/engicam/stm32mp2/stm32mp2.c        | 17 +++++++++++++++++
>  configs/stm32mp25-microgea-rmm_defconfig |  2 ++
>  2 files changed, 19 insertions(+)
> 
> diff --git a/board/engicam/stm32mp2/stm32mp2.c b/board/engicam/stm32mp2/stm32mp2.c
> index e15141677775..64fb44fd7f02 100644
> --- a/board/engicam/stm32mp2/stm32mp2.c
> +++ b/board/engicam/stm32mp2/stm32mp2.c
> @@ -12,6 +12,7 @@
>  #include <env.h>
>  #include <event.h>
>  #include <extension_board.h>
> +#include <fdt_simplefb.h>
>  #include <fdt_support.h>
>  #include <log.h>
>  #include <splash.h>
> @@ -218,6 +219,22 @@ int splash_screen_prepare(void)
>  }
>  #endif
>  
> +#if CONFIG_IS_ENABLED(OF_BOARD_SETUP)
> +int ft_board_setup(void *blob, struct bd_info *bd)
> +{
> +	int ret;
> +
> +	if (IS_ENABLED(CONFIG_FDT_SIMPLEFB)) {
> +		ret = fdt_simplefb_enable_and_mem_rsv(blob);
> +		if (ret)
> +			log_warning("cannot hand over the framebuffer (%d)\n",
> +				    ret);
> +	}
> +
> +	return 0;
> +}
> +#endif
> +
>  #if CONFIG_IS_ENABLED(OF_BOARD_FIXUP)
>  /*
>   * The FWU metadata are stored in the boot device, the SD card or the
> diff --git a/configs/stm32mp25-microgea-rmm_defconfig b/configs/stm32mp25-microgea-rmm_defconfig
> index 73f8f7cf96b6..d5ae71354736 100644
> --- a/configs/stm32mp25-microgea-rmm_defconfig
> +++ b/configs/stm32mp25-microgea-rmm_defconfig
> @@ -24,6 +24,8 @@ CONFIG_EFI_CAPSULE_ON_DISK=y
>  CONFIG_FIT=y
>  CONFIG_DISTRO_DEFAULTS=y
>  CONFIG_BOOTDELAY=1
> +CONFIG_OF_BOARD_SETUP=y
> +CONFIG_FDT_SIMPLEFB=y
>  CONFIG_BOOTCOMMAND="run bootcmd_stm32mp"
>  # CONFIG_BOARD_INIT is not set
>  CONFIG_SYS_PROMPT="STM32MP> "


Hi Dario

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>

Thanks
Patrice
  

Patch

diff --git a/board/engicam/stm32mp2/stm32mp2.c b/board/engicam/stm32mp2/stm32mp2.c
index e15141677775..64fb44fd7f02 100644
--- a/board/engicam/stm32mp2/stm32mp2.c
+++ b/board/engicam/stm32mp2/stm32mp2.c
@@ -12,6 +12,7 @@ 
 #include <env.h>
 #include <event.h>
 #include <extension_board.h>
+#include <fdt_simplefb.h>
 #include <fdt_support.h>
 #include <log.h>
 #include <splash.h>
@@ -218,6 +219,22 @@  int splash_screen_prepare(void)
 }
 #endif
 
+#if CONFIG_IS_ENABLED(OF_BOARD_SETUP)
+int ft_board_setup(void *blob, struct bd_info *bd)
+{
+	int ret;
+
+	if (IS_ENABLED(CONFIG_FDT_SIMPLEFB)) {
+		ret = fdt_simplefb_enable_and_mem_rsv(blob);
+		if (ret)
+			log_warning("cannot hand over the framebuffer (%d)\n",
+				    ret);
+	}
+
+	return 0;
+}
+#endif
+
 #if CONFIG_IS_ENABLED(OF_BOARD_FIXUP)
 /*
  * The FWU metadata are stored in the boot device, the SD card or the
diff --git a/configs/stm32mp25-microgea-rmm_defconfig b/configs/stm32mp25-microgea-rmm_defconfig
index 73f8f7cf96b6..d5ae71354736 100644
--- a/configs/stm32mp25-microgea-rmm_defconfig
+++ b/configs/stm32mp25-microgea-rmm_defconfig
@@ -24,6 +24,8 @@  CONFIG_EFI_CAPSULE_ON_DISK=y
 CONFIG_FIT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
+CONFIG_OF_BOARD_SETUP=y
+CONFIG_FDT_SIMPLEFB=y
 CONFIG_BOOTCOMMAND="run bootcmd_stm32mp"
 # CONFIG_BOARD_INIT is not set
 CONFIG_SYS_PROMPT="STM32MP> "