[PATCH v1 06/11] arm64: dts: freescale: imx95-toradex-smarc: Add SPI aliases

From: Francesco Dolcini

Date: Thu Nov 12 2026 - 10:14:23 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 lpspi6 and lpspi4 on Toradex SMARC iMX95.

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.

Signed-off-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>
---
arch/arm64/boot/dts/freescale/imx95-toradex-smarc.dtsi | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95-toradex-smarc.dtsi b/arch/arm64/boot/dts/freescale/imx95-toradex-smarc.dtsi
index 671c4dce0a99..82e21986bf95 100644
--- a/arch/arm64/boot/dts/freescale/imx95-toradex-smarc.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95-toradex-smarc.dtsi
@@ -26,6 +26,8 @@ aliases {
serial2 = &lpuart6;
serial3 = &lpuart3;
serial4 = &lpuart5;
+ spi0 = &lpspi6;
+ spi1 = &lpspi4;
};

chosen {
--
2.47.3