-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spi: mraa does not support dynamic SPI bus enumeration (Linux Kernel 3.19) #316
Comments
My first question would be - where did you get a 3.19-based image for Galileos (or even Edison)? 😃, I haven't seen any official release with that one. |
Actually I have own release :) |
So essentially your spidev device is turning up on /dev/spidev169.0 instead of spidev0.0. I'm curious though why does yours turn up there? I guess the solution would be to check /sys for where the device node is and enumerate them dynamically. I'd be happy to take a patch to do this. |
spidev0.0 / spidev168.0 is used for ADC on Galileo board. spidev1.0 / spidev169.0 is used for an external SPI connection. Last kernel versions like 3.19 have a feature: NON-STATIC CONFIGURATIONS Developer boards often play by different rules than product boards, and one For those cases you might need to use spi_busnum_to_master() to look When Linux includes support for MMC/SD/SDIO/DataFlash cards through SPI, those There is a minimal core of SPI programming interfaces, focussing on /sys/devices/.../CTLR ... physical node for a given SPI controller /sys/devices/.../CTLR/spiB.C ... spi_device on bus "B", /sys/bus/spi/devices/spiB.C ... symlink to that physical /sys/devices/.../CTLR/spiB.C/modalias ... identifies the driver /sys/bus/spi/drivers/D ... driver for one or more spi_._ devices /sys/class/spi_master/spiB ... symlink (or actual device node) to Note that the actual location of the controller's class state depends http://lxr.free-electrons.com/source/drivers/spi/spidev.c#L52
|
There is no static SPI bus in Kernel 3.19. MRAA does not support a dynamic SPI bus enumeration.
Boards: Galileo Gen1 & Gen2
The text was updated successfully, but these errors were encountered: