AnsweredAssumed Answered

SPI in /dev not showing in imx6ul custom board

Question asked by chandra sekhar on Nov 30, 2016
Latest reply on Dec 1, 2016 by chandra sekhar

Hi,

Below is my SPI DT entries 

&ecspi1 {
      fsl,spi-num-chipselects = <0>;
      pinctrl-names = "default";
      pinctrl-0 = <&pinctrl_ecspi1_1>;
      status = "okay";
      spidev@0 {
      compatible = "spidev";
      spi-max-frequency = <20000000>;
      reg = <0>;
      };

                              pinctrl_ecspi1_1: ecspi1grp {

                                             fsl,pins = <

                                                           

                                                            MX6UL_PAD_LCD_DATA22__ECSPI4_MOSI         0x100b1

                                                            MX6UL_PAD_LCD_DATA20__ECSPI4_SCLK    0x100b1

                                                          

                                             >;

                              };

 

i have no chip selects as I am using single slave connnected to SPI. 

My kernel version is Linux version 3.14.38-6UL_ga

 

below is the kernel log 

gpmi-nand 1806000.gpmi-nand: driver registered.
spi_imx 2008000.ecspi: cannot get the TX DMA channel!
spi_imx 2008000.ecspi: dma setup error,use pio instead
spi_imx 2008000.ecspi: probed
usbcore: registered new interface driver usb-storage
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
2184200.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: doesn't support host
ci_hdrc ci_hdrc.1: no supported roles
snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0

 

this is what I found when I searched spi after booting up.

imx6ulevk login: root
root@imx6ulevk:~# find / -name *spi*

/lib/udev/keymaps/acer-aspire_5920g
/lib/udev/keymaps/acer-aspire_5720
/lib/udev/keymaps/acer-aspire_6920
/lib/udev/keymaps/acer-aspire_8930
/sys/bus/spi
/sys/bus/spi/drivers/spidev
/sys/bus/platform/devices/2008000.ecspi
/sys/bus/platform/drivers/spi_gpio
/sys/bus/platform/drivers/spi_imx
/sys/bus/platform/drivers/spi_imx/2008000.ecspi
/sys/bus/platform/drivers/fsl_spi
/sys/bus/platform/drivers/fsl-quadspi
/sys/devices/soc0/soc.0/2000000.aips-bus/2000000.spba-bus/2008000.ecspi
/sys/class/spi_master
/sys/class/spidev
/sys/module/spidev
/proc/irq/63/2008000.ecspi

 

I am unable to find entry in my /dev folder 

Is everything correct or do I need to modify any thing.

Outcomes