oresat / oresat-linux

OreSat Linux image builder and utilities.
13 stars 2 forks source link

Use spi-gpio for L band LO #48

Open ThirteenFish opened 4 months ago

ThirteenFish commented 4 months ago

The LO (a Si4133) for the L band down conversion on the C3 is configured via SPI. On the C3 these SPI lines (LBAND_SO_SCLK, LBAND_SO_SDATA, LBAND_SO_nSEN) are hooked up to GPIO and then bitbanged in Python. This is a bit slow and clunky but it turns out the Linux kernel already knows how to do bitbanged SPI. Using the kernel driver means we can drop some of our code and would present the LO as a standard SPI device.

This is a project in two parts: