The issue here divides into two parts:
- Enabling the spidev driver in the kernel.
- Accessing SPI1 using the
SpiDevice
APIs provided by Peripheral I/O.
Since you cannot see /dev/spidev1.x
in the kernel, both problems are at hand.
For issue #1, there seems to be a link between the usage of UART0 and SPI1 as noted in this RPi forum post. In the latest preview of Android Things (DP2), UART0 is currently shared with the console and routed to the GPIO header pins for use by apps. It's possible that you might have to disable UART0 in order to get SPI1 to work at the kernel level.
However, regarding issue #2, the Peripheral I/O APIs do not currently expose SPI1 in Android Things DP2. So even with the kernel issue resolved there would not be a direct way to access the port from an app. We are working on ways to enable additional ports outside of those pre-defined at build time, but do not have a solution at this time.