* [PATCH 1/2] arm64: dts: st: enable eMMC on stm32mp257f-ev1
@ 2026-11-15 16:34 Dario Binacchi
2026-11-15 16:34 ` [PATCH 2/2] arm64: dts: st: add mmc aliases " Dario Binacchi
2026-11-17 16:58 ` [Linux-stm32] [PATCH 1/2] arm64: dts: st: enable eMMC " Christophe KERELLO
0 siblings, 2 replies; 4+ messages in thread
From: Dario Binacchi @ 2026-11-15 16:34 UTC (permalink / raw)
To: linux-kernel
Cc: michael, linux-amarula, Dario Binacchi, Alexandre Torgue,
Conor Dooley, Krzysztof Kozlowski, Maxime Coquelin, Rob Herring,
devicetree, linux-arm-kernel, linux-stm32
Enable the eMMC connected to SDMMC2 with an 8-bit bus on the
STM32MP257F-EV1. VDDIO2 is tied to the 1.8 V rail on this board, so
the DDR52 and HS200 modes are enabled. Tested in HS200 mode at 100 MHz.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
index 782b4bb843ee..9c38c4fe0c1f 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
@@ -431,6 +431,23 @@ &sdmmc1 {
status = "okay";
};
+&sdmmc2 {
+ pinctrl-names = "default", "opendrain", "sleep";
+ pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
+ pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
+ pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
+ non-removable;
+ no-sd;
+ no-sdio;
+ st,neg-edge;
+ bus-width = <8>;
+ mmc-ddr-1_8v;
+ mmc-hs200-1_8v;
+ vmmc-supply = <&scmi_vdd_emmc>;
+ vqmmc-supply = <&scmi_vddio2>;
+ status = "okay";
+};
+
&spi3 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&spi3_pins_a>;
---
base-commit: 23c62304dde29abe92013d85910d03a77dada35d
branch: stm32mp257f-ev1-emmc-aliases
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 2/2] arm64: dts: st: add mmc aliases on stm32mp257f-ev1
2026-11-15 16:34 [PATCH 1/2] arm64: dts: st: enable eMMC on stm32mp257f-ev1 Dario Binacchi
@ 2026-11-15 16:34 ` Dario Binacchi
2026-11-17 16:58 ` [Linux-stm32] [PATCH 1/2] arm64: dts: st: enable eMMC " Christophe KERELLO
1 sibling, 0 replies; 4+ messages in thread
From: Dario Binacchi @ 2026-11-15 16:34 UTC (permalink / raw)
To: linux-kernel
Cc: michael, linux-amarula, Dario Binacchi, Alexandre Torgue,
Conor Dooley, Krzysztof Kozlowski, Maxime Coquelin, Rob Herring,
devicetree, linux-arm-kernel, linux-stm32
Add aliases for the mmc nodes, so that the SD card and eMMC host
controllers get enumerated in a consistent order on the
STM32MP257F-EV1.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
index 9c38c4fe0c1f..69e3ff4cecd4 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
@@ -22,6 +22,8 @@ / {
aliases {
ethernet0 = ðernet2;
ethernet1 = ðernet1;
+ mmc0 = &sdmmc1;
+ mmc1 = &sdmmc2;
serial0 = &usart2;
serial1 = &usart6;
};
---
base-commit: 23c62304dde29abe92013d85910d03a77dada35d
branch: stm32mp257f-ev1-emmc-aliases
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Linux-stm32] [PATCH 1/2] arm64: dts: st: enable eMMC on stm32mp257f-ev1
2026-11-15 16:34 [PATCH 1/2] arm64: dts: st: enable eMMC on stm32mp257f-ev1 Dario Binacchi
2026-11-15 16:34 ` [PATCH 2/2] arm64: dts: st: add mmc aliases " Dario Binacchi
@ 2026-11-17 16:58 ` Christophe KERELLO
2026-11-17 17:21 ` Dario Binacchi
1 sibling, 1 reply; 4+ messages in thread
From: Christophe KERELLO @ 2026-11-17 16:58 UTC (permalink / raw)
To: Dario Binacchi, linux-kernel
Cc: Rob Herring, Conor Dooley, devicetree, Maxime Coquelin,
Krzysztof Kozlowski, michael, linux-amarula, linux-stm32,
linux-arm-kernel
Hello Dario,
On 11/15/26 17:34, Dario Binacchi wrote:
> Enable the eMMC connected to SDMMC2 with an 8-bit bus on the
> STM32MP257F-EV1. VDDIO2 is tied to the 1.8 V rail on this board, so
> the DDR52 and HS200 modes are enabled. Tested in HS200 mode at 100 MHz.
>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> ---
>
> arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
> index 782b4bb843ee..9c38c4fe0c1f 100644
> --- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
> +++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
> @@ -431,6 +431,23 @@ &sdmmc1 {
> status = "okay";
> };
>
> +&sdmmc2 {
> + pinctrl-names = "default", "opendrain", "sleep";
> + pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
> + pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
> + pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
> + non-removable;
> + no-sd;
> + no-sdio;
> + st,neg-edge;
> + bus-width = <8>;
> + mmc-ddr-1_8v;
> + mmc-hs200-1_8v;
> + vmmc-supply = <&scmi_vdd_emmc>;
> + vqmmc-supply = <&scmi_vddio2>;
> + status = "okay";
> +};
This source code appears to come from ST's downstream Linux tree. When
upstreaming from that tree,
please preserve ST author and Signed-off-by tags.
https://github.com/STMicroelectronics/linux/commit/d00ddc95c630ebf948ebe9c22fcbca145d771afc
Regards,
Christophe Kerello.
> +
> &spi3 {
> pinctrl-names = "default", "sleep";
> pinctrl-0 = <&spi3_pins_a>;
> ---
> base-commit: 23c62304dde29abe92013d85910d03a77dada35d
> branch: stm32mp257f-ev1-emmc-aliases
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Linux-stm32] [PATCH 1/2] arm64: dts: st: enable eMMC on stm32mp257f-ev1
2026-11-17 16:58 ` [Linux-stm32] [PATCH 1/2] arm64: dts: st: enable eMMC " Christophe KERELLO
@ 2026-11-17 17:21 ` Dario Binacchi
0 siblings, 0 replies; 4+ messages in thread
From: Dario Binacchi @ 2026-11-17 17:21 UTC (permalink / raw)
To: Christophe KERELLO
Cc: linux-kernel, Rob Herring, Conor Dooley, devicetree,
Maxime Coquelin, Krzysztof Kozlowski, michael, linux-amarula,
linux-stm32, linux-arm-kernel
Hello Christophe,
On Tue, Nov 17, 2026 at 5:58 PM Christophe KERELLO
<christophe.kerello@foss.st.com> wrote:
>
> Hello Dario,
>
> On 11/15/26 17:34, Dario Binacchi wrote:
> > Enable the eMMC connected to SDMMC2 with an 8-bit bus on the
> > STM32MP257F-EV1. VDDIO2 is tied to the 1.8 V rail on this board, so
> > the DDR52 and HS200 modes are enabled. Tested in HS200 mode at 100 MHz.
> >
> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> > ---
> >
> > arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 17 +++++++++++++++++
> > 1 file changed, 17 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
> > index 782b4bb843ee..9c38c4fe0c1f 100644
> > --- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
> > +++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
> > @@ -431,6 +431,23 @@ &sdmmc1 {
> > status = "okay";
> > };
> >
> > +&sdmmc2 {
> > + pinctrl-names = "default", "opendrain", "sleep";
> > + pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
> > + pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
> > + pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
> > + non-removable;
> > + no-sd;
> > + no-sdio;
> > + st,neg-edge;
> > + bus-width = <8>;
> > + mmc-ddr-1_8v;
> > + mmc-hs200-1_8v;
> > + vmmc-supply = <&scmi_vdd_emmc>;
> > + vqmmc-supply = <&scmi_vddio2>;
> > + status = "okay";
> > +};
>
> This source code appears to come from ST's downstream Linux tree. When
> upstreaming from that tree,
> please preserve ST author and Signed-off-by tags.
I started from nodes already in mainline:
c5ce8d7bcc78 ("arm64: dts: st: support Engicam MicroGEA-STM32MP257 SoM")
94911ce62b45 ("arm64: dts: st: enable eMMC on stm32mp257f-dk")
and only adapted the pin groups and supplies to the EV1. The first
one is mine, as are the SDMMC2 controller node and the pin groups
this patch relies on:
513410ae43bc ("arm64: dts: st: add SDMMC2 support on stm32mp25")
17d813da1689 ("arm64: dts: st: add sdmmc2 pins for stm32mp25")
Given the hardware, I don't think there is much room for it to look different.
Thanks and regards,
Dario
> https://github.com/STMicroelectronics/linux/commit/d00ddc95c630ebf948ebe9c22fcbca145d771afc
>
> Regards,
> Christophe Kerello.
>
> > +
> > &spi3 {
> > pinctrl-names = "default", "sleep";
> > pinctrl-0 = <&spi3_pins_a>;
> > ---
> > base-commit: 23c62304dde29abe92013d85910d03a77dada35d
> > branch: stm32mp257f-ev1-emmc-aliases
> >
>
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-17 17:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-15 16:34 [PATCH 1/2] arm64: dts: st: enable eMMC on stm32mp257f-ev1 Dario Binacchi
2026-11-15 16:34 ` [PATCH 2/2] arm64: dts: st: add mmc aliases " Dario Binacchi
2026-11-17 16:58 ` [Linux-stm32] [PATCH 1/2] arm64: dts: st: enable eMMC " Christophe KERELLO
2026-11-17 17:21 ` Dario Binacchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®