I want to enable slave mode for SPI0. But I am not able to find any references/resources for the SMARC version of the iMX8M Plus board. Can someone please help me figure this out?
Hi, I’m the Toradex AI Assistant.
I might make mistakes or occasionally get you wrong. Our support team will step in if needed.
I’d be glad to help you enable SPI slave mode! To provide the most accurate guidance, could you let me know which OS and version you’re running on your device? You can use the tdx-info command to get detailed information about your setup - more details available at tdx-info documentation.
General SPI Configuration on Toradex Modules
Based on the Toradex documentation, the approach for enabling SPI and configuring SPIDEV is consistent across Toradex modules (1). The documentation provides guidance for enabling SPI interfaces on various Toradex SoM families including Colibri, Apalis, and Verdin (1).
Key Information Needed
To provide specific instructions for your SMARC iMX8M Plus setup, I’ll need to know:
- Operating System: Are you using Torizon OS, Yocto BSP, or another Linux distribution?
- OS Version: What specific version are you running?
- Hardware Details: Confirm your exact SoM and carrier board configuration
Next Steps
Once you provide your system details, I can guide you through:
- Device Tree Configuration: How to modify or create device tree overlays for SPI slave mode
- SPI Interface Identification: Locating the correct SPI device nodes for your hardware
- Kernel Configuration: Any necessary kernel module or driver configurations
- Testing and Verification: How to verify that slave mode is working correctly
The documentation shows that Toradex provides comprehensive SPI support with clear device node naming conventions and pre-built overlays for many configurations (1).
Best regards,
Toradex AI Assistant.
If I answered your question, please tick the “Solution” checkbox.
For follow-up questions to me, please use @ToradexAI in your post.
Hi @pranav ,
you can download the source code from here.
SMARC iMX8MP related device tree & overlays are also available there.
Software summary
Bootloader: U-Boot
Kernel version: 6.6.101-rt59-7.5.0-devel #1 SMP PREEMPT_RT Mon Oct 27 12:24:20 UTC 2025
Kernel command line: root=PARTUUID=076c4a2a-02 ro rootwait console=tty1 console=ttymxc1,115200
Distro name: NAME=“TDX Wayland with XWayland RT”
Distro version: VERSION_ID=7.5.0-devel-20251118125654-build.0
Distro variant: -
Hostname: toradex-smarc-imx8mp-08664365
Hardware info
HW model: Toradex SMARC iMX8M Plus on Toradex SMARC Development Board
Toradex version: 0097 V1.1A
Serial number: 08664365
Processor arch: aarch64
I want to configure my SPI1 as an SPI slave
Hi @sahil.tx
the device tree and overlays don’t have any mention of whether they can be configured to work in slave mode
Hello @pranav ,
Device tree and overlays is not meant to have this information.
You should look at
Documentation/devicetree/bindings/spi/spi-controller.yaml
/documentation/spi
/drivers/spi
Additionally, you can check the SoC datasheet for all SPI features.