| Message ID | 20261104085036.4012238-1-dario.binacchi@amarulasolutions.com |
|---|---|
| Headers |
Delivered-To: michael@amarulasolutions.com
Received: by 2002:a05:7301:6783:b0:36a:3487:1c26 with SMTP id qo3csp68367dyb;
Wed, 4 Nov 2026 00:50:48 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AKwUvBzMv2XFrk/ITz59HkIxVWRVeSHMRDieKAw8QBw3m1yrFuOUmpks1r9wZ1/NpJATEstPA9EgWn7B@amarulasolutions.com
X-Received: by 2002:a05:6000:29d6:b0:48e:3fc:e393 with SMTP id
ffacd0b85a97d-48e6e2c2f66mr22018452f8f.6.1793782247824;
Wed, 04 Nov 2026 00:50:47 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1793782247; cv=none;
d=google.com; s=arc-20260327;
b=ERwu8lMXLcHjvoTmO8GvJu3+L63FjR5/gQLGYDOdECO/16b1S9Cv3khVVlhiZbwADw
GJ63kjbMGONrSU+0FsMXbBb8s3IqrfmpBx+hyp6W1ilJuV5wsahm7cBKR2dY39Ptukrq
75pCtikJt5+K+/vfT9krYE5XV8CCZKJuFuVXaoV/d8G3mYia0xJ6Y3kE6Siz2RtPdW2j
+ThXytx0bR5OKiFXMv83NycmDdM8qOs6Ye6JaejqCuwxJvwbMeCgJ25SSEaIVnDFLP1M
XeWXtTvbQA4DwJN+YAWXeCAOdtNYaSY5yhiU0/noadRGwKGNcaG5BxZr1Fy1uZIZQVs5
tJgQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=vvn+ox0349MhalDnHMekPVs9ZJ1OSe/wAWDGVs+vwJo=;
fh=z2KA3+Ge+oZfY12r/RJ8s0471Yh2yRRo7Pb7EI/AUoc=;
b=dGT3thTQ7rENpbUbOzuktVaUcaKP7okMTVBb5+8HiPy1yOzvOM5r3xDoBY4rVli3DK
zB93QojjbVirZI6oB1fr09duILShOGPDCU8l7IpQSxGGD1RrG5x/lw/k3MyK++SzkFeb
xC7eXKqWGymU//K8cD5nqpJvW/3pAK6ZwNFZhjB//rKpxg27qQSeUgq6JuPR0w+C3VWS
dixG30gzlfJCBN/NQtM9UJP/CfHa7oSqeUC85qiN+u/C7KTHCLaqzTd/YtoXxrt/dCbQ
Yl5ZPoKs3Ck1QEPftVDdUYtIim/xvADJNlp4+5aaa65YYPIiP48sa/0RPVVVImbXlg+9
9jfg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=pQ5J1eHp;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
ffacd0b85a97d-48fed179ff6sor182196f8f.3.2026.11.04.00.50.47
for <michael@amarulasolutions.com>
(Google Transport Security);
Wed, 04 Nov 2026 00:50:47 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
Authentication-Results: mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=pQ5J1eHp;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1793782247; x=1794387047;
darn=amarulasolutions.com;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=vvn+ox0349MhalDnHMekPVs9ZJ1OSe/wAWDGVs+vwJo=;
b=pQ5J1eHpJoOYaeXgeXMLSpBYJ8Tf6Jz09K26LOLwNfKF/JX9bguESNgy9RPBktB5a8
oFZYA5KuvEZxejIMKqOq8BlbNy7L0LnmaOEnkfRAMCfMZAgpEaxmMoNzklOLJjGYBh7f
IinhxrR4MJ+dhUHv2tWE9Vc5XZIWQYebkbs/0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793782247; x=1794387047;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=vvn+ox0349MhalDnHMekPVs9ZJ1OSe/wAWDGVs+vwJo=;
b=iNIdFDguBpYfUcJyDANK9lWIRQw1PHHU/Zfd8OY65tdJJZiamILyD6hXPaxsstqJQ0
7vqUpQA1WYl8dOWJPJjsoY6TAwGSzdLVLY3V2CLntNBTTpTG+Viy1UpM+KAwnr30j10s
fCgBE1syzdyg4GhLOr3IhJHQ38seWlMoXe4NF1BdU3wZgrQnQxR2sZWmyt41Uv7ljzk+
3J3pTkyuIUQBAKtip8a0hqy0ysmJpo9MET8s1k4Hp1FwEQqLhdkFHFaKbrWgPhf5M0yt
EaDMI854dyNI3nvOK0RRVjubNJjyoIm6kdu6Y/qS+LT/nQJWmhZbBfc7DRkCuCbA9c4W
8IFw==
X-Forwarded-Encrypted: i=1;
AKwUvBz2wqaPuNlM8hK3IPQ4hFYcU4CxEFhKsFKUU7u5Uojk83e7hBn1ZXD36dZ+XCRVjOPujANPR/CA@amarulasolutions.com
X-Gm-Message-State: APuU4Z+r4mhRRPtl8WsqwIP6Om7R+d5ulYhvoNXZeqtiKbZBlUL4QuzX
rAXHIanp0ql7tufWG7JL6791ONqpsAGmK2gykjCaGyjRPXLTFd7ftEnu5LNWu6QPlSq0UQ==
X-Gm-Gg: AYBFou1E/u4tVHGPLK+MiVhZ1VImNw0u5fu6u8dYv96a6K8Gi6VFeLqGm9Q5jx970e2
JSzqtag+tnBWDEFym9qE5TAzOwjQuyviqKW5PqhCidi1i8Tl1EOhpV+0R5XuNr858E137gGwyFk
r6ytkPPBA2KbLz2O8peIEezq6ZhItQj3CIM6x+BAnOV90nqJg2S/Ols0u2T3SZ9BRqpNNt1Yuzl
VnQ32IJgwd2/My/fInV4YH6TVPumJM0RuLzV8iqvnfkXSDYzCM5lkanTO83rvOQaAmgWx+9iTKb
ZGalWZ8NpeUVUW+nIVKmlBsK/78haP3ZgHUXDkCymjtMhUmwQPNjgyV5n6RVnD+vrJRS0ZoxN1v
a6aAF6YOInJa92s/KLqNPmC0E6Y4244q6npTAYe+5ppVRx4iWKvgyc3UWw+b4/Krfe20qzfuALa
CKbphUJQOz+nShGs60b43Q1XodIYweWrgH9cjI8sf3WYKAXVZdgnLx8ALeOT7ePv4Bx2GZJlCiH
j70/f7HdsVQTynzCIspUEpSY5P+JnFd7Do0b/HDQvCmRuOPavI2vks1Zr5EZBEGiM++mK+rUn6U
flvcu7NoLdr4oCX0KP/VBkz7BSm9w+HZO2WxtjTaOBjZ+mNYD82DTAVIRty5OBfFOzMD9H6kTfQ
qSRkGouOJoUsnR0MtMpprzfadCvk=
X-Received: by 2002:a05:600c:a00b:b0:4a7:b304:253e with SMTP id
5b1f17b1804b1-4ac1765d8abmr356469295e9.22.1793782247148;
Wed, 04 Nov 2026 00:50:47 -0800 (PST)
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from dario-ThinkPad-P14s-Gen-5.. ([109.54.139.206])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-4b413312a4fsm20555915e9.1.2026.11.04.00.50.43
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 04 Nov 2026 00:50:46 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: linux-amarula@amarulasolutions.com,
michael@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Anatolij Gustschin <ag.dev.uboot@gmail.com>,
David Lechner <dlechner@baylibre.com>,
Gabriel Fernandez <gabriel.fernandez@foss.st.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Jagan Teki <jagan@amarulasolutions.com>,
Kory Maincent <kory.maincent@bootlin.com>,
Lukasz Majewski <lukma@nabladev.com>,
Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>,
Sumit Garg <sumit.garg@kernel.org>,
Tom Rini <trini@konsulko.com>,
Yannick Fertre <yannick.fertre@foss.st.com>,
u-boot@lists.denx.de,
u-boot@lists.u-boot-project.org,
uboot-stm32@st-md-mailman.stormreply.com
Subject: [PATCH 00/33] Add Engicam MicroGEA-STM32MP257D-RMM board support
Date: Wed, 4 Nov 2026 09:49:33 +0100
Message-ID: <20261104085036.4012238-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
|
| 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
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
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
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
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
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
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 > > >
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
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