Welcome, Guest

Author Topic: No SPI  (Read 2268 times)

KNK

  • Newbie
  • *
  • Posts: 36
  • Karma: +5/-0
No SPI
« on: October 01, 2015, 04:59:26 PM »
Hello,
 the spidev module is loaded, but there is no /dev/spi0 created ... do i need to set something else or just the spi is broken on RT5350F

 I have also tried to install kmod-spi-gpio-custom, but the module is for kernel 3.18.17 while the one installed on the device is 3.18.19 and is missing the module, so my question is where can i obtain the module for 3.18.19, which repository should be added, because the ones listed in /etc/opkg.conf do not provide any 3.18.19 modules

KNK

  • Newbie
  • *
  • Posts: 36
  • Karma: +5/-0
No SPI
« Reply #1 on: October 05, 2015, 04:25:40 PM »
I have recompiled the module from Olimex/openwrt but after loading it there is still no /dev/spi
Code: [Select]
[    0.560000] rt2880-pinmux pinctrl: found group selector 1 for spi
[    0.560000] rt2880-pinmux pinctrl: found group selector 6 for spi_cs1
[    0.560000] rt2880-pinmux pinctrl: request pin 3 (io3) for 10000b00.spi
[    0.560000] rt2880-pinmux pinctrl: request pin 4 (io4) for 10000b00.spi
[    0.560000] rt2880-pinmux pinctrl: request pin 5 (io5) for 10000b00.spi
[    0.560000] rt2880-pinmux pinctrl: request pin 6 (io6) for 10000b00.spi
[    0.560000] rt2880-pinmux pinctrl: request pin 27 (io27) for 10000b00.spi
because spi0 is used for the flash it is not shown, but spi1 (using pin 27) is also not shown even it is detected and configured ... any hints ?

The good news is that the gpio-custom module works (used the JTAG pins for the test) or at least registers the device (not tested communicating yet):

Code: [Select]
modprobe spidev
modprobe spi_bitbang
modprobe spi_gpio
insmod /lib/modules/3.18.19/spi-gpio-custom.ko bus0=1,20,17,18,0,100000,19