[00/33] Add Engicam MicroGEA-STM32MP257D-RMM board support

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

Message

Dario Binacchi Nov. 4, 2026, 8:49 a.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.

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


Dario Binacchi (33):
  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
  clk: stm32: propagate rate changes to the parent clock
  spi: stm32: ignore the cs-gpios polarity flags
  video: stm32: ltdc: fall back to a panel when no bridge is connected
  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
  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

 ...m32mp257d-engicam-microgea-rmm-u-boot.dtsi | 121 +++++++
 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  |  23 ++
 board/engicam/stm32mp2/stm32mp2.c             | 277 +++++++++++++++
 board/st/common/Makefile                      |   1 -
 board/st/stm32mp2/stm32mp2.c                  |  71 +---
 common/splash.c                               |   4 +-
 configs/stm32mp25-microgea-rmm_defconfig      | 128 +++++++
 drivers/clk/stm32/clk-stm32-core.c            |   7 +-
 drivers/spi/stm32_spi.c                       |   9 +-
 drivers/video/simple_panel.c                  |  19 +
 drivers/video/stm32/stm32_ltdc.c              |  69 +++-
 drivers/video/stm32/stm32_lvds.c              |   4 +-
 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 +
 33 files changed, 1641 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: ab4dc5aacf957835c295b59ef2dd28281839cb20
branch: engicam-microgea-stm32mp257-rmm

-- 
2.43.0
  

Comments

Tom Rini Nov. 4, 2026, 7:21 p.m. UTC | #1
On Wed, Nov 04, 2026 at 09:49:33AM +0100, Dario Binacchi wrote:

> 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.

What's the status on upstreaming all of the changes you're putting in
the -u-boot.dtsi files? Thanks.

-- 
Tom
  
Dario Binacchi Nov. 5, 2026, 7:12 a.m. UTC | #2
Hi Tom,

On Wed, Nov 4, 2026 at 8:21 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Wed, Nov 04, 2026 at 09:49:33AM +0100, Dario Binacchi wrote:
>
> > 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.
>
> What's the status on upstreaming all of the changes you're putting in
> the -u-boot.dtsi files? Thanks.

The -u-boot.dtsi contains:

- U-Boot specific nodes and properties: the environment partition, the
  FWU metadata and the bootph-all properties.

- The RGB and LVDS panels, with the LTDC and LVDS endpoints. These are
  already upstream in Linux, but in two devicetree overlays, one per
  display. Since the display is selected by the "display" environment
  variable, which is stored in the eMMC/SD and is not available yet
  when the U-Boot control devicetree is set up, both displays are
  described here and the board code keeps only the selected one.

- The LTDC "lcd" clock for the RGB output. This is not upstream yet:
  I sent it in an RFC series [1], and Gabriel is reworking the STM32MP25
  SYSCFG pixel clock support, which should cover it. I will drop it once
  it is merged in Linux.

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

Thanks and regards,
Dario
>
> --
> Tom



-- 
Dario Binacchi
Senior Embedded Software Engineer
M. +39 328 0625246
dario.binacchi@amarulasolutions.com
―――――――――――――――
Amarula Solutions SRL
 Via Felice Cavallotti 25D, 41012 Carpi, MO, IT
info@amarulasolutions.com
www.amarulasolutions.com
  
Tom Rini Nov. 5, 2026, 2:48 p.m. UTC | #3
On Thu, Nov 05, 2026 at 08:12:07AM +0100, Dario Binacchi wrote:
> Hi Tom,
> 
> On Wed, Nov 4, 2026 at 8:21 PM Tom Rini <trini@konsulko.com> wrote:
> >
> > On Wed, Nov 04, 2026 at 09:49:33AM +0100, Dario Binacchi wrote:
> >
> > > 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.
> >
> > What's the status on upstreaming all of the changes you're putting in
> > the -u-boot.dtsi files? Thanks.
> 
> The -u-boot.dtsi contains:
> 
> - U-Boot specific nodes and properties: the environment partition, the
>   FWU metadata and the bootph-all properties.

bootph is to be upstreamed,  I don't recall where the FWU stuff ended
up, and I'd need to double check the specific environment binding you're
referring to.

> - The RGB and LVDS panels, with the LTDC and LVDS endpoints. These are
>   already upstream in Linux, but in two devicetree overlays, one per
>   display. Since the display is selected by the "display" environment
>   variable, which is stored in the eMMC/SD and is not available yet
>   when the U-Boot control devicetree is set up, both displays are
>   described here and the board code keeps only the selected one.

You can't detect and apply the overlay instead?

> - The LTDC "lcd" clock for the RGB output. This is not upstream yet:
>   I sent it in an RFC series [1], and Gabriel is reworking the STM32MP25
>   SYSCFG pixel clock support, which should cover it. I will drop it once
>   it is merged in Linux.

OK, thanks.

-- 
Tom
  
Dario Binacchi Nov. 5, 2026, 3:39 p.m. UTC | #4
Hi Tom,

On Thu, Nov 5, 2026 at 3:48 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Thu, Nov 05, 2026 at 08:12:07AM +0100, Dario Binacchi wrote:
> > Hi Tom,
> >
> > On Wed, Nov 4, 2026 at 8:21 PM Tom Rini <trini@konsulko.com> wrote:
> > >
> > > On Wed, Nov 04, 2026 at 09:49:33AM +0100, Dario Binacchi wrote:
> > >
> > > > 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.
> > >
> > > What's the status on upstreaming all of the changes you're putting in
> > > the -u-boot.dtsi files? Thanks.
> >
> > The -u-boot.dtsi contains:
> >
> > - U-Boot specific nodes and properties: the environment partition, the
> >   FWU metadata and the bootph-all properties.
>
> bootph is to be upstreamed,  I don't recall where the FWU stuff ended
> up, and I'd need to double check the specific environment binding you're
> referring to.

I added the bootph-all properties to the -u-boot.dtsi because I saw
the same in the other STM32MP25 boards, e.g. the stm32mp257f-ev1. If
they should go to Linux instead, I will send them for this board.

The FWU metadata node and the environment partition use bindings which
are only in U-Boot: doc/device-tree-bindings/firmware/fwu-mdata-gpt.yaml
and u-boot,mmc-env-partition in doc/device-tree-bindings/config.txt.
They are not in dt-schema yet. Both are also used in the -u-boot.dtsi
of the other STM32MP boards.

>
> > - The RGB and LVDS panels, with the LTDC and LVDS endpoints. These are
> >   already upstream in Linux, but in two devicetree overlays, one per
> >   display. Since the display is selected by the "display" environment
> >   variable, which is stored in the eMMC/SD and is not available yet
> >   when the U-Boot control devicetree is set up, both displays are
> >   described here and the board code keeps only the selected one.
>
> You can't detect and apply the overlay instead?

No, the displays can't be detected. There is no EEPROM or other ID on
the board or on the displays indicating which one is connected. That is
why the selection is left to the user, by the "display" environment
variable. Since the environment is in the eMMC/SD, it is only loaded
after relocation, when the devices are already bound. Is there a way
to apply an overlay to the control devicetree at that point that I
missed?

Thanks and regards,
Dario

>
> > - The LTDC "lcd" clock for the RGB output. This is not upstream yet:
> >   I sent it in an RFC series [1], and Gabriel is reworking the STM32MP25
> >   SYSCFG pixel clock support, which should cover it. I will drop it once
> >   it is merged in Linux.
>
> OK, thanks.
>
> --
> Tom



-- 
Dario Binacchi
Senior Embedded Software Engineer
M. +39 328 0625246
dario.binacchi@amarulasolutions.com
―――――――――――――――
Amarula Solutions SRL
 Via Felice Cavallotti 25D, 41012 Carpi, MO, IT
info@amarulasolutions.com
www.amarulasolutions.com
  
Tom Rini Nov. 5, 2026, 5:26 p.m. UTC | #5
On Thu, Nov 05, 2026 at 04:39:17PM +0100, Dario Binacchi wrote:
> Hi Tom,
> 
> On Thu, Nov 5, 2026 at 3:48 PM Tom Rini <trini@konsulko.com> wrote:
> >
> > On Thu, Nov 05, 2026 at 08:12:07AM +0100, Dario Binacchi wrote:
> > > Hi Tom,
> > >
> > > On Wed, Nov 4, 2026 at 8:21 PM Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > On Wed, Nov 04, 2026 at 09:49:33AM +0100, Dario Binacchi wrote:
> > > >
> > > > > 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.
> > > >
> > > > What's the status on upstreaming all of the changes you're putting in
> > > > the -u-boot.dtsi files? Thanks.
> > >
> > > The -u-boot.dtsi contains:
> > >
> > > - U-Boot specific nodes and properties: the environment partition, the
> > >   FWU metadata and the bootph-all properties.
> >
> > bootph is to be upstreamed,  I don't recall where the FWU stuff ended
> > up, and I'd need to double check the specific environment binding you're
> > referring to.
> 
> I added the bootph-all properties to the -u-boot.dtsi because I saw
> the same in the other STM32MP25 boards, e.g. the stm32mp257f-ev1. If
> they should go to Linux instead, I will send them for this board.

Yes, there's many examples of needing to upstream this still.

> The FWU metadata node and the environment partition use bindings which
> are only in U-Boot: doc/device-tree-bindings/firmware/fwu-mdata-gpt.yaml
> and u-boot,mmc-env-partition in doc/device-tree-bindings/config.txt.
> They are not in dt-schema yet. Both are also used in the -u-boot.dtsi
> of the other STM32MP boards.

OK, thanks.

> > > - The RGB and LVDS panels, with the LTDC and LVDS endpoints. These are
> > >   already upstream in Linux, but in two devicetree overlays, one per
> > >   display. Since the display is selected by the "display" environment
> > >   variable, which is stored in the eMMC/SD and is not available yet
> > >   when the U-Boot control devicetree is set up, both displays are
> > >   described here and the board code keeps only the selected one.
> >
> > You can't detect and apply the overlay instead?
> 
> No, the displays can't be detected. There is no EEPROM or other ID on
> the board or on the displays indicating which one is connected. That is
> why the selection is left to the user, by the "display" environment
> variable. Since the environment is in the eMMC/SD, it is only loaded
> after relocation, when the devices are already bound. Is there a way
> to apply an overlay to the control devicetree at that point that I
> missed?

Maybe? How far down the path did you try going for using overlays here?
And then also, since both of the overlays are upstream, is there a real
penalty in applying both and then doing the fixup you do to remove the
unused one?

-- 
Tom
  
Patrice CHOTARD Nov. 6, 2026, 10 a.m. UTC | #6
On 11/5/26 16:39, Dario Binacchi wrote:
> Hi Tom,
> 
> On Thu, Nov 5, 2026 at 3:48 PM Tom Rini <trini@konsulko.com> wrote:
>>
>> On Thu, Nov 05, 2026 at 08:12:07AM +0100, Dario Binacchi wrote:
>>> Hi Tom,
>>>
>>> On Wed, Nov 4, 2026 at 8:21 PM Tom Rini <trini@konsulko.com> wrote:
>>>>
>>>> On Wed, Nov 04, 2026 at 09:49:33AM +0100, Dario Binacchi wrote:
>>>>
>>>>> 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.
>>>>
>>>> What's the status on upstreaming all of the changes you're putting in
>>>> the -u-boot.dtsi files? Thanks.
>>>
>>> The -u-boot.dtsi contains:
>>>
>>> - U-Boot specific nodes and properties: the environment partition, the
>>>   FWU metadata and the bootph-all properties.
>>
>> bootph is to be upstreamed,  I don't recall where the FWU stuff ended
>> up, and I'd need to double check the specific environment binding you're
>> referring to.
> 
> I added the bootph-all properties to the -u-boot.dtsi because I saw
> the same in the other STM32MP25 boards, e.g. the stm32mp257f-ev1. If
> they should go to Linux instead, I will send them for this board.
> 

Hi

Currently bootph properties are in -u-boot.dtsi for STM32MP platform, but 
it must be upstream in kernel DT. 
The bootph properties migration from -u-boot.dtsi files to kernel DT is on-going [1]
but need some rework (stm32f4/f7/h7 MCU support has been removed [2])

[1] https://lore.kernel.org/linux-arm-kernel/20260526-upstream_uboot_properties-v7-0-e17cd424d5db@foss.st.com/
[2] https://lore.kernel.org/linux-arm-kernel/2afd5f78-0174-4955-8c1b-be18aea3800b@app.fastmail.com/

Thanks
Patrice

> The FWU metadata node and the environment partition use bindings which
> are only in U-Boot: doc/device-tree-bindings/firmware/fwu-mdata-gpt.yaml
> and u-boot,mmc-env-partition in doc/device-tree-bindings/config.txt.
> They are not in dt-schema yet. Both are also used in the -u-boot.dtsi
> of the other STM32MP boards.
> 
>>
>>> - The RGB and LVDS panels, with the LTDC and LVDS endpoints. These are
>>>   already upstream in Linux, but in two devicetree overlays, one per
>>>   display. Since the display is selected by the "display" environment
>>>   variable, which is stored in the eMMC/SD and is not available yet
>>>   when the U-Boot control devicetree is set up, both displays are
>>>   described here and the board code keeps only the selected one.
>>
>> You can't detect and apply the overlay instead?
> 
> No, the displays can't be detected. There is no EEPROM or other ID on
> the board or on the displays indicating which one is connected. That is
> why the selection is left to the user, by the "display" environment
> variable. Since the environment is in the eMMC/SD, it is only loaded
> after relocation, when the devices are already bound. Is there a way
> to apply an overlay to the control devicetree at that point that I
> missed?
> 
> Thanks and regards,
> Dario
> 
>>
>>> - The LTDC "lcd" clock for the RGB output. This is not upstream yet:
>>>   I sent it in an RFC series [1], and Gabriel is reworking the STM32MP25
>>>   SYSCFG pixel clock support, which should cover it. I will drop it once
>>>   it is merged in Linux.
>>
>> OK, thanks.
>>
>> --
>> Tom
> 
> 
>
  
Dario Binacchi Nov. 7, 2026, 2:28 p.m. UTC | #7
Hi Tom,

On Thu, Nov 5, 2026 at 6:26 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Thu, Nov 05, 2026 at 04:39:17PM +0100, Dario Binacchi wrote:
> > Hi Tom,
> >
> > On Thu, Nov 5, 2026 at 3:48 PM Tom Rini <trini@konsulko.com> wrote:
> > >
> > > On Thu, Nov 05, 2026 at 08:12:07AM +0100, Dario Binacchi wrote:
> > > > Hi Tom,
> > > >
> > > > On Wed, Nov 4, 2026 at 8:21 PM Tom Rini <trini@konsulko.com> wrote:
> > > > >
> > > > > On Wed, Nov 04, 2026 at 09:49:33AM +0100, Dario Binacchi wrote:
> > > > >
> > > > > > 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.
> > > > >
> > > > > What's the status on upstreaming all of the changes you're putting in
> > > > > the -u-boot.dtsi files? Thanks.
> > > >
> > > > The -u-boot.dtsi contains:
> > > >
> > > > - U-Boot specific nodes and properties: the environment partition, the
> > > >   FWU metadata and the bootph-all properties.
> > >
> > > bootph is to be upstreamed,  I don't recall where the FWU stuff ended
> > > up, and I'd need to double check the specific environment binding you're
> > > referring to.
> >
> > I added the bootph-all properties to the -u-boot.dtsi because I saw
> > the same in the other STM32MP25 boards, e.g. the stm32mp257f-ev1. If
> > they should go to Linux instead, I will send them for this board.
>
> Yes, there's many examples of needing to upstream this still.
>
> > The FWU metadata node and the environment partition use bindings which
> > are only in U-Boot: doc/device-tree-bindings/firmware/fwu-mdata-gpt.yaml
> > and u-boot,mmc-env-partition in doc/device-tree-bindings/config.txt.
> > They are not in dt-schema yet. Both are also used in the -u-boot.dtsi
> > of the other STM32MP boards.
>
> OK, thanks.
>
> > > > - The RGB and LVDS panels, with the LTDC and LVDS endpoints. These are
> > > >   already upstream in Linux, but in two devicetree overlays, one per
> > > >   display. Since the display is selected by the "display" environment
> > > >   variable, which is stored in the eMMC/SD and is not available yet
> > > >   when the U-Boot control devicetree is set up, both displays are
> > > >   described here and the board code keeps only the selected one.
> > >
> > > You can't detect and apply the overlay instead?
> >
> > No, the displays can't be detected. There is no EEPROM or other ID on
> > the board or on the displays indicating which one is connected. That is
> > why the selection is left to the user, by the "display" environment
> > variable. Since the environment is in the eMMC/SD, it is only loaded
> > after relocation, when the devices are already bound. Is there a way
> > to apply an overlay to the control devicetree at that point that I
> > missed?
>
> Maybe? How far down the path did you try going for using overlays here?
> And then also, since both of the overlays are upstream, is there a real
> penalty in applying both and then doing the fixup you do to remove the
> unused one?

In v2, which I am about to send, a new option,
CONFIG_OF_UPSTREAM_CONTROL_DT_OVERLAYS,
applies the upstream overlays for both displays to the U-Boot
devicetree at build time, and the board
code keeps only the one selected by the "display" environment variable.
The panels are no longer described in the -u-boot.dtsi.

As for the bootph-all properties, I sent them to Linux [1].

So the -u-boot.dtsi now contains only:
- the environment partition and the FWU metadata, which use U-Boot
specific bindings
- the bootph-all properties, until [1] is merged
- the LTDC "lcd" clock, until the pixel clock support [2] is merged

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

Thanks and regards,
Dario
>
> --
> Tom



-- 
Dario Binacchi
Senior Embedded Software Engineer
M. +39 328 0625246
dario.binacchi@amarulasolutions.com
―――――――――――――――
Amarula Solutions SRL
 Via Felice Cavallotti 25D, 41012 Carpi, MO, IT
info@amarulasolutions.com
www.amarulasolutions.com
  
Tom Rini Nov. 7, 2026, 2:42 p.m. UTC | #8
On Sat, Nov 07, 2026 at 03:28:57PM +0100, Dario Binacchi wrote:
> Hi Tom,
> 
> On Thu, Nov 5, 2026 at 6:26 PM Tom Rini <trini@konsulko.com> wrote:
> >
> > On Thu, Nov 05, 2026 at 04:39:17PM +0100, Dario Binacchi wrote:
> > > Hi Tom,
> > >
> > > On Thu, Nov 5, 2026 at 3:48 PM Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > On Thu, Nov 05, 2026 at 08:12:07AM +0100, Dario Binacchi wrote:
> > > > > Hi Tom,
> > > > >
> > > > > On Wed, Nov 4, 2026 at 8:21 PM Tom Rini <trini@konsulko.com> wrote:
> > > > > >
> > > > > > On Wed, Nov 04, 2026 at 09:49:33AM +0100, Dario Binacchi wrote:
> > > > > >
> > > > > > > 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.
> > > > > >
> > > > > > What's the status on upstreaming all of the changes you're putting in
> > > > > > the -u-boot.dtsi files? Thanks.
> > > > >
> > > > > The -u-boot.dtsi contains:
> > > > >
> > > > > - U-Boot specific nodes and properties: the environment partition, the
> > > > >   FWU metadata and the bootph-all properties.
> > > >
> > > > bootph is to be upstreamed,  I don't recall where the FWU stuff ended
> > > > up, and I'd need to double check the specific environment binding you're
> > > > referring to.
> > >
> > > I added the bootph-all properties to the -u-boot.dtsi because I saw
> > > the same in the other STM32MP25 boards, e.g. the stm32mp257f-ev1. If
> > > they should go to Linux instead, I will send them for this board.
> >
> > Yes, there's many examples of needing to upstream this still.
> >
> > > The FWU metadata node and the environment partition use bindings which
> > > are only in U-Boot: doc/device-tree-bindings/firmware/fwu-mdata-gpt.yaml
> > > and u-boot,mmc-env-partition in doc/device-tree-bindings/config.txt.
> > > They are not in dt-schema yet. Both are also used in the -u-boot.dtsi
> > > of the other STM32MP boards.
> >
> > OK, thanks.
> >
> > > > > - The RGB and LVDS panels, with the LTDC and LVDS endpoints. These are
> > > > >   already upstream in Linux, but in two devicetree overlays, one per
> > > > >   display. Since the display is selected by the "display" environment
> > > > >   variable, which is stored in the eMMC/SD and is not available yet
> > > > >   when the U-Boot control devicetree is set up, both displays are
> > > > >   described here and the board code keeps only the selected one.
> > > >
> > > > You can't detect and apply the overlay instead?
> > >
> > > No, the displays can't be detected. There is no EEPROM or other ID on
> > > the board or on the displays indicating which one is connected. That is
> > > why the selection is left to the user, by the "display" environment
> > > variable. Since the environment is in the eMMC/SD, it is only loaded
> > > after relocation, when the devices are already bound. Is there a way
> > > to apply an overlay to the control devicetree at that point that I
> > > missed?
> >
> > Maybe? How far down the path did you try going for using overlays here?
> > And then also, since both of the overlays are upstream, is there a real
> > penalty in applying both and then doing the fixup you do to remove the
> > unused one?
> 
> In v2, which I am about to send, a new option,
> CONFIG_OF_UPSTREAM_CONTROL_DT_OVERLAYS,
> applies the upstream overlays for both displays to the U-Boot
> devicetree at build time, and the board
> code keeps only the one selected by the "display" environment variable.
> The panels are no longer described in the -u-boot.dtsi.
> 
> As for the bootph-all properties, I sent them to Linux [1].
> 
> So the -u-boot.dtsi now contains only:
> - the environment partition and the FWU metadata, which use U-Boot
> specific bindings
> - the bootph-all properties, until [1] is merged
> - the LTDC "lcd" clock, until the pixel clock support [2] is merged

Thanks for doing the rework.

-- 
Tom