SPI device is not creating on imx6ull-colibri-eval board

We are trying to bring up the SPI interface on the IMX6ULL Colibri evaluation board. As mentioned in the document we have modified the device tree file to disable the internal spi CAN interface and enabled “ecspi1”, (which is used with external CAN Controller).
&ecspi1 {
compatible = “fsl,imx6ul-ecspi”;
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio3 26 GPIO_ACTIVE_LOW>;
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1_cs>;
status = “okay”;

    chip1: spidev@0 {
           compatible = "var,spidev";
           spi-max-frequency = <10000000>;
           reg = <0>;
           status = "okay";


With above modification the /dev/spi devices is not getting created.

Further we have enabled SPI_DEBUG in kernel configuration. While booting we are getting the following error:

spi_imx 2008000.spi: can’t get the TX DMA channel, error -517!

The build environment used is yocto kirkstone (kernel version 6.1.2). We even tested with yocto dunfell and the issue remain same.

Can someone tell what is the issue?

Hi @Dipin,

Thanks for writing to Toradex community.

Kindly share complete hardware and software version you are running. This will help us understand your setup and help in better response.

Module: Colibri iMX6ULL 1GB V1.0A
Baseboard: Colibri evaluation board 3.2B

Since you are running BSP 6 it is now easier to get software and hardware details using tdx-info command

torizon@colibri-imx6ull-emmc-07201292:~$ sudo tdx-info 

Software summary
Bootloader:               U-Boot
Kernel version:           6.1.14-6.2.0-devel+git.7d54cb2c26da #1-TorizonCore Thu Jan 26 11:54:38 UTC 2023
Kernel command line:      user_debug=30 root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.0/torizon/4c1bd132704ac424e007b2abadef9d005496edc387efe98ac032eaea35b9bde7/0
Distro name:              NAME="TorizonCore Upstream"
Distro version:           VERSION_ID=6.2.0-devel-202303-build.6
Hostname:                 colibri-imx6ull-emmc-07201292

Hardware info
HW model:                 Toradex Colibri iMX6ULL 1GB (eMMC) on Colibri Evaluation Board V3
Toradex version:          0062 V1.1A
Serial number:            07201292
Processor arch:           armv7l

That said please check below link for device tree overlay to enable spi dev. You can also make same changes in device tree and check.

Let me know if you still face issue
Best Regards
Ritesh Kumar