Official Omega2 Hardware SPI driver for C?
I need to use the HARDWARE SPI in the OMEGA2+ to constantly read A/D data at a very high sample rate from this 8-bit A/D converter chip (the SPI timing diagram for the chip is in this document):
Before i start writing code I just wanted to find out which is the "official" "C" language driver for the HARDWARE SPI in OMEGA2+
I found 2 sources, does anyone know which of these "C" drivers below is the best one, or maybe there is a better one that you know of?
@nsmith You'll want to use the SPIdev interface for your userspace programs.
spi-mt7621is the hardware specific kernel layer and can't be directly accessed from userspace.
EDIT: forgot to mention, spidev definitely works. It's used under the hood in our python-spidev implementation
DumTux last edited by
In my opinion, it is
kmod-spidev), as it is the working module on OpenWrt 22.03 build for Omega2.
I could see hardware SPI driver is present under
/dev/spi*after installing it.
Havent tested it yet by myself, though.
This post is deleted!