Scarthgap device tree for lpspi2

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:

  • Which Toradex SoM you’re using?
  • Which OS and version you’re running?

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:

  • Colibri modules use different device tree nodes and compatible strings than Verdin or Apalis modules (1)
  • Torizon OS has different overlay deployment methods compared to Yocto BSP images (2)(3)(4)
  • Each SoC family (iMX6, iMX7, iMX8, AM62, etc.) has specific pinmux configurations and SPI controller definitions

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.


Did you like my answer? :+1: :-1:

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

Software summary

Bootloader: U-Boot

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

Hardware info

HW model: Toradex Colibri iMX8QXP on DRTS

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.

SPI Interface Configuration for Colibri iMX8QXP

For your Colibri iMX8QXP module, the Colibri family provides one standard SPI interface(1):

Standard SPI Interface

  • Device node: /dev/colibri-spi-cs0(1)
  • Interface: SPI1 (General Purpose)(1)

Pin Mapping

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)

Compatible String and Device Tree Configuration

For your Colibri iMX8QXP, you’ll need to use the compatible string:

compatible = "toradex,colibri-imx8qxp";

Enabling SPI with Device Tree Overlay

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.

Pre-built Overlays

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.


Did you like my answer? :+1: :-1:

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