SPI activation and external device control with the TX2

Hi all, I am pretty new using the NVIDIA TX2 and after a good amount of time searching on the web and on this forum, I decided to create a new topic about the subject. I basically want to use the TX2 to control external devices like OLED screens and sensors. One of the sensors uses SPI to communicate so I thought it will be easy since the TX2 supports that type of communication but there are several unknowns after reading several posts about it in the forum, unknowns like:

1.- I see that at least for the TX1, one had to change the dtb in order to allow SPI communication. There is even a good elinux page about it: http://elinux.org/Jetson/TX1_SPI I tried to follow the steps with the TX2 but got stuck in locating the active dtb in the extlinux.conf file. I do not know if I have to even follow those steps since it seems to be major changes from the TX1 to the TX2 in the SPI area and if I have to, how could I do it?

2.- For both SPI and UART I have seen that most of the comments on the forum are more related to use it as a debugger tool with a USB to TTL adapter or similar, I have not seen anyone that has used it with c++ or python to control an external device. It could be really helpful if anyone has a relevant experience in that area. Especially because I am a little bit lost regarding the pin mapping on the actual code. I constantly use gpio libraries like the one with Raspberry Pi and I am not sure there is such thing yet for the TX2.

Finally, thank you very much for your assistance and sorry for the inconvenience but it will be extremely helpful to hear from much more experienced users.

I am too very much interested in this topic. Can someone please through some light on this? Thanks a ton!

Please refer to https://devtalk.nvidia.com/default/topic/1024806/jetson-tx2/how-to-enable-spi-spidev-on-28-1-on-target-/

As ‘Kayccc’ posted above, I’ve created that thread to help people make the move from http://elinux.org/Jetson/TX1_SPI to the TX2 under 28.1. I plan to refine the that post and tidy it up a bit, and add a guide for doing it on Host machine as well as on-target.

Thanks for sharing the experience and benefit to other developers.