Hi.. community
Hope all are doing well
I'm dealing with the i.MX6 SOM from variscite
For the instance, I'm using Yocto BSP hardknott
My intend is to get the ecspi1 working, and that's how i have configure the kernel as follows
1. Activated all necessary drivers from the menuconfig
For ex
CONFIG_SPI=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_IMX=y
CONFIG_SPI_IMX_DMA=y
2. configured the device tree source file on the dedicated PADS as follows
&ecspi1 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 26 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1_1>;
status = "okay";
chip1: spidev@0 {
compatible = "var,spidev";
spi-max-frequency = <12000000>;
reg = <0>;
};
};
pinctrl_ecspi1_1: ecspi1grp {
fsl,pins = <
MX6UL_PAD_CSI_DATA07__ECSPI1_MISO 0x100b1
MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x100b1
MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x100b1
MX6UL_PAD_CSI_DATA05__GPIO4_IO26 0x100b1
>;
};
3. Installed the imx-sdma firmware with the custom image
which is appearing in /lib/firmware/imx/sdma directory in my custom image
CORE_IMAGE_EXTRA_INSTALL += " firmware-imx-sdma"
Problem statement
ecspi not getting activate, as /dev/spi* directory is not populating!
In kernel boot logs, i found some error logs for the SPI, which is mentioned here
[ 2.216962] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 3.538836] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 3.558381] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 3.564509] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
From where, i got to know that the TX DMA channel is not allocated to SPI
For your reference , i have attached the full kernel boot logs, defconfig file and .dts file
I need some support from the community
All suggestions and comments welcome
Thanks
Mahendra Sondagar