[PATCH v1 05/11] arm64: dts: freescale: imx8mp-toradex-smarc: Add SPI aliases
From: Francesco Dolcini
Date: Thu Nov 12 2026 - 10:23:30 EST
From: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>
The SMARC specification defines the module interfaces and their
numbering, SPI0 and SPI1 being the SPI buses available to the carrier
board, implemented by ecspi1 and ecspi2 on Toradex SMARC iMX8MP.
Without aliases the Linux SPI bus numbers are assigned dynamically and
can change with the carrier board or probe order. Add spi0 and spi1
aliases so the bus numbers in sysfs and the spidev names match the
SMARC interface numbering. This replaces the spi0 alias imx8mp.dtsi
gives to flexspi, which is not used on Toradex SMARC iMX8MP.
Signed-off-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>
---
arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi
index eb8b9db7e3cd..f3d21d788b85 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi
@@ -20,6 +20,8 @@ aliases {
serial1 = &uart4;
serial2 = &uart2;
serial3 = &uart3;
+ spi0 = &ecspi1;
+ spi1 = &ecspi2;
};
chosen {
--
2.47.3