[v2,00/35] Add Engicam MicroGEA-STM32MP257D-RMM board support

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

Message

Dario Binacchi Nov. 7, 2026, 2:31 p.m. UTC
This series adds support for the Engicam MicroGEA-STM32MP257D-RMM
board, with its RGB and LVDS displays and the FWU A/B update.

The first patches pick the board devicetrees, merged for Linux v7.4,
from devicetree-rebasing. They can be dropped if dts/upstream is synced
with v7.4-dts first. Then come the fixes, the refactors moving the
STM32MP2 environment and FWU support to the SoC code, and the board
support. The displays are described by the upstream overlays, which a
new option applies to the U-Boot devicetree at build time. The
bootph-all properties of the board have been sent to Linux [1].

Tested on the board, booting from the SD card and from the eMMC.

[1] https://lore.kernel.org/all/20261107141353.2228391-1-dario.binacchi@amarulasolutions.com/

Changes in v2:
- Take the original patch from the ST downstream tree, keeping
  Gabriel's authorship
- New patch
- Add Reviewed-by tag
- Add Reviewed-by tag
- New patch
- Simplify the comments
- Apply the upstream display overlays to the U-Boot devicetree instead
  of describing the displays in the -u-boot.dtsi file
- Do not leave the LTDC RGB pins configured with the LVDS display
- Drop a redundant comment

Dario Binacchi (34):
  dt-bindings: arm: stm32: support Engicam MicroGEA-STM32MP257D-RMM
    board
  arm64: dts: st: add power-domains to sdmmc1 on stm32mp231
  arm64: dts: st: add power-domains to sdmmc1 on stm32mp251
  arm64: dts: st: add SDMMC2 support on stm32mp25
  arm64: dts: st: add CAN1 support on stm32mp25
  arm64: dts: st: add i2c1 pins for stm32mp25
  arm64: dts: st: add ltdc pins for stm32mp25
  arm64: dts: st: add can1 pins for stm32mp25
  arm64: dts: st: add pwm2/pwm4 pins for stm32mp25
  arm64: dts: st: add sai1 pins for stm32mp25
  arm64: dts: st: add sdmmc2 pins for stm32mp25
  arm64: dts: st: add spi1 pins for stm32mp25
  arm64: dts: st: add usart1 pins for stm32mp25
  arm64: dts: st: support Engicam MicroGEA-STM32MP257 SoM
  arm64: dts: st: support Engicam MicroGEA-STM32MP257D-RMM board
  arm64: dts: st: move Engicam MicroGEA-STM32MP257D-RMM display to an
    overlay
  arm64: dts: st: add Engicam MicroGEA-STM32MP257D-RMM LVDS display
    overlay
  arm: stm32mp: stm32mp2: fix off by one in mmc_get_boot()
  video: stm32: lvds: fix NULL pointer dereference on missing
    data-mapping
  spi: stm32: ignore the cs-gpios polarity flags
  video: stm32: ltdc: fall back to a panel when no bridge is connected
  video: stm32: ltdc: stop looking for the panel once found
  arm: stm32mp: stm32mp2: move boot device environment helpers to SoC
    code
  splash: make splash_video_logo_load() available to boards
  arm: stm32mp: move FWU multi-bank support to SoC code
  configs: stm32mp25: move FWU A/B boot environment to common settings
  video: simple_panel: add Ampire AM-1280800W8TZQW-T00H panel
  video: stm32: ltdc: select the pixel clock source on STM32MP25
  boot: extension: allow longer overlay file names
  dts: support applying DT overlays to the control DT with OF_UPSTREAM
  board: engicam: stm32mp2: add MicroGEA-STM32MP257D-RMM board
  board: engicam: stm32mp2: add splash screen
  board: engicam: stm32mp2: support FWU A/B bank bootup
  board: engicam: stm32mp2: enable simple framebuffer for the splash
    screen

Gabriel Fernandez (1):
  clk: stm32: fix set_rate propagation for parent clocks

 ...m32mp257d-engicam-microgea-rmm-u-boot.dtsi |  38 ++
 arch/arm/mach-stm32mp/Kconfig.25x             |  17 +
 arch/arm/mach-stm32mp/Makefile                |   1 +
 .../arm/mach-stm32mp/fwu.c                    |   0
 arch/arm/mach-stm32mp/stm32mp2/Makefile       |   1 +
 arch/arm/mach-stm32mp/stm32mp2/env.c          |  82 +++++
 board/engicam/stm32mp2/Kconfig                |  12 +
 board/engicam/stm32mp2/MAINTAINERS            |   7 +
 board/engicam/stm32mp2/Makefile               |   7 +
 board/engicam/stm32mp2/microgea-stm32mp2.env  |  13 +
 board/engicam/stm32mp2/stm32mp2.c             | 340 ++++++++++++++++++
 board/st/common/Makefile                      |   1 -
 board/st/stm32mp2/stm32mp2.c                  |  71 +---
 common/splash.c                               |   4 +-
 configs/stm32mp25-microgea-rmm_defconfig      | 129 +++++++
 drivers/clk/stm32/clk-stm32-core.c            |  11 +-
 drivers/spi/stm32_spi.c                       |   9 +-
 drivers/video/simple_panel.c                  |  19 +
 drivers/video/stm32/stm32_ltdc.c              |  71 +++-
 drivers/video/stm32/stm32_lvds.c              |   4 +-
 dts/Kconfig                                   |  10 +
 dts/Makefile                                  |   2 +
 dts/upstream/Bindings/arm/stm32/stm32.yaml    |   7 +
 dts/upstream/src/arm64/st/stm32mp231.dtsi     |   1 +
 .../src/arm64/st/stm32mp25-pinctrl.dtsi       | 328 +++++++++++++++++
 dts/upstream/src/arm64/st/stm32mp251.dtsi     |  17 +
 dts/upstream/src/arm64/st/stm32mp253.dtsi     |  16 +
 .../arm64/st/stm32mp257-engicam-microgea.dtsi |  63 ++++
 ...gea-rmm-overlay-am-1280800w8tzqw-t00h.dtso |  67 ++++
 ...icrogea-rmm-overlay-rk050hr345-ct106a.dtso |  68 ++++
 .../st/stm32mp257d-engicam-microgea-rmm.dts   | 275 ++++++++++++++
 include/configs/stm32mp25_common.h            |  20 ++
 include/configs/stm32mp25_st_common.h         |  15 -
 include/extension_board.h                     |   2 +-
 include/splash.h                              |   9 +
 scripts/Makefile.dts                          |   7 +
 36 files changed, 1637 insertions(+), 107 deletions(-)
 create mode 100644 arch/arm/dts/stm32mp257d-engicam-microgea-rmm-u-boot.dtsi
 rename board/st/common/stm32mp_fwu.c => arch/arm/mach-stm32mp/fwu.c (100%)
 create mode 100644 arch/arm/mach-stm32mp/stm32mp2/env.c
 create mode 100644 board/engicam/stm32mp2/Kconfig
 create mode 100644 board/engicam/stm32mp2/MAINTAINERS
 create mode 100644 board/engicam/stm32mp2/Makefile
 create mode 100644 board/engicam/stm32mp2/microgea-stm32mp2.env
 create mode 100644 board/engicam/stm32mp2/stm32mp2.c
 create mode 100644 configs/stm32mp25-microgea-rmm_defconfig
 create mode 100644 dts/upstream/src/arm64/st/stm32mp257-engicam-microgea.dtsi
 create mode 100644 dts/upstream/src/arm64/st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtso
 create mode 100644 dts/upstream/src/arm64/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso
 create mode 100644 dts/upstream/src/arm64/st/stm32mp257d-engicam-microgea-rmm.dts

---
base-commit: feb8913982e4462c01fd914271f92254a25dc101
branch: engicam-microgea-stm32mp257-rmm

-- 
2.43.0