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

From: Francesco Dolcini

Date: Thu Nov 12 2026 - 10:24:01 EST


From: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>

The OSM specification defines the module interfaces and their naming,
SPI_A and SPI_B being the SPI buses available to the carrier board,
implemented by lpspi4 and lpspi1 on Toradex OSM 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 follow the
OSM interface order, SPI_A being spi0 and SPI_B spi1.

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

diff --git a/arch/arm64/boot/dts/freescale/imx95-toradex-osm.dtsi b/arch/arm64/boot/dts/freescale/imx95-toradex-osm.dtsi
index 8eb7ea4ed9ee..dc2ef7035246 100644
--- a/arch/arm64/boot/dts/freescale/imx95-toradex-osm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95-toradex-osm.dtsi
@@ -30,6 +30,8 @@ aliases {
serial2 = &lpuart5;
serial3 = &lpuart3;
serial4 = &lpuart2;
+ spi0 = &lpspi4;
+ spi1 = &lpspi1;
usb0 = &usb2;
usb1 = &usb3;
};
--
2.47.3