Using SPI on Jetson Nano

Hi. The hardware configuration shows that there are two spi ports available on the jetson nano that can be connected with external devices/modules, however, I couldn’t find any mention in the GPIO library. Is it something that has to be enabled as shown somewhere by adding it to the device tree and recompiling it to the jetson? Also, where can I find the support library to access the SPI hardware on the jetson board?

I just add “spi” tag, but it’s not showed at the topic list view

Hi, I used this script for modifying the Nano device tree to enable SPI1:

It should show up under /dev/spidev0.0 after compiling the new device tree and flashing it to microSD.

The pins for SPI1 should be J41 Pins 19, 21, 23, 24:

You can also refer to

Could you check if you can run below command

sudo find /opt/nvidia/jetson-io/ -mindepth 1 -maxdepth 1 -type d -exec touch {}/ ;
sudo /opt/nvidia/jetson-io/