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:
https://github.com/rt-net/JetsonNano_DT_SPI

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 https://github.com/gtjoseph/jetson-nano-support/tree/l4t_32.2.1

Could you check if you can run below command

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

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fhw_setup_jetson_io.html