I need to enable the driver spi on interface 2 but i do not know which is the right compatible string to use and in which file is defined.
Thank you
Regards
Flavio
I need to enable the driver spi on interface 2 but i do not know which is the right compatible string to use and in which file is defined.
Thank you
Regards
Flavio
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 the SPI driver for interface 2! To provide you with the correct compatible string and specific guidance, could you let me know:
You can get this information by running the tdx-info command on your device. For more details, see: https://developer.toradex.com/software/development-resources/tdx-info/
The compatible string and configuration approach varies significantly between different Toradex modules and operating systems. For example:
Once I know your specific platform, I can provide you with the exact compatible string, device tree node reference, and the proper overlay configuration for enabling SPI interface 2 on your system.
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.
here the tdx-info:
root@colibri-imx8x-14791379:~# tdx-info
Kernel version: 6.6.101-6.6.101-devel-7.4.0-devel #1 SMP PREEMPT Thu Sep 25 07:49:28 UTC 2025
Kernel command line: root=PARTUUID=076c4a2a-02 ro rootwait net.ifnames=0 biosdevname=0
Distro name: NAME=“TDX Wayland with XWayland”
Distro version: VERSION_ID=7.4.0-devel-20251106113704-build.0
Distro variant: -
Hostname: colibri-imx8x-14791379
Toradex version: 0050 V1.0D
Serial number: 14791379
Processor arch: aarch64
Perfect! Thank you for the tdx-info output. Based on your setup - Colibri iMX8QXP running TDX Wayland 7.4.0-devel - I can provide you with the specific information for enabling SPI interface 2.
For your Colibri iMX8QXP module, the Colibri family provides one standard SPI interface(1):
The Colibri standard SPI interface uses these SODIMM pins(1):
| SODIMM Pin | Signal Name | Description |
|---|---|---|
| 86 | SSPFRM (SPI CS) | SPI Chip Select; SPI Enable Signal; SPI Slave Select |
| 88 | SSPSCLK (SPI CLK) | SPI Serial Clock (SCK) |
| 90 | SSPRXD | SPI Master Input/Slave Output (MISO); SPI DATA In (DIN) |
| 92 | SSPTXD | SPI Master Output/Slave Input (MOSI); SPI Data Out (DOUT) |
For your Colibri iMX8QXP, you’ll need to use the compatible string:
compatible = "toradex,colibri-imx8qxp";
Since you’re running a Yocto-based system (TDX Wayland 7.4.0-devel), you can enable SPI using a device tree overlay(2). The overlay should target the appropriate SPI controller node for your module.
Check if there are pre-built device tree overlays available for SPIDEV on your module(1). You can find these overlays in the overlays directory and enable them by adding to the overlays.txt file(2).
To check available overlays:
ls -l /dev/colibri-spi*
This will display the available Colibri pin-compatible SPIs and their corresponding device names(1).
Note: The actual SPI controller node names and compatible strings are defined in the device tree source files specific to your iMX8QXP module. You can find the exact controller definitions in the kernel device tree files for your platform.
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.
Hello @flavio,
As we spoke via email, this has been resolved.
I will close this thread then.
Best Regards,
Bruno