How to use SPI

Mori Hiroki yamori813 at yahoo.co.jp
Wed Mar 8 10:01:26 UTC 2017


Hi.

FreeBSD SPI support don't have userland interface.

You must use device driver for SPI device. But MAX31856
driver isn't exist.

Hiroki Mori


----- Original Message -----
> From: Gergely Czuczy <gergely.czuczy at harmless.hu>
> To: freebsd-arm at freebsd.org
> Cc: 
> Date: 2017/3/7, Tue 19:31
> Subject: How to use SPI
> 
> Hello,
> 
> I've just got a Raspberry PI3, and I would like to use a couple of Adaruit 
> MAX31856 breakout boards with it, which are using the SPI bus. I've noticed 
> that it apparently has kernel level spi drivers:
> 
> # kldstat -v | grep spi
>                 259 simplebus/bcm2835_spi
>                 109 spi/spibus
>                 108 spi/ofw_spibus
> 
> However, I wasn't able to find anything in the userland which would explain 
> how to use it.
> 
> Currently I'm using a raspbsd image:
> 
> FreeBSD rpi3 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r313109M: Thu Feb  2 16:16:39 
> MST 2017 
> raspberry at hive.raspbsd.org:/usr/home/brd/rpi3/crochet/work/obj/arm64.aarch64/usr/src/sys/GENERIC 
> arm64
> 
> Could you guys please give me a hand on starting using the SPI bus? I've 
> tried googling around a bit, but unfortunately not much came up.
> 
> Best regards,
> Gergely
> 
> 
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> 


More information about the freebsd-arm mailing list