I am trying to connect a CSI camera and use SPI1 at the same the time.
The issue arises when I install the driver for the camera Arducam IMX519 it overrides the spi I had set on the jetso-io.py, leading to the camera working and the SPI not working. If I reconfigure the jetson-io for the spi, the spi works but the camera no. I am assuming the camera driver is changing the device tree and removes de spi of the 40 pin header. If this is the case, can I manually set the spi using busybox devmem?
Any answear is apreciated and if any extra info is needed please ask.
Tested on both Jetson Xavier NX and Jetson Orin NX, same results.
Link for the camera driver:https://docs.arducam.com/Nvidia-Jetson-Camera/Native-Camera/Quick-Start-Guide/#Software
We believe your hypothesis might be right.
It seems like the camera driver DTB is overriding the changes applied with Overlays with jetson-io.py
We would suggest you create a fixed DTB with all the changes, both the camera driver and the SPI changes, that way you would not require to run jetson-io tool to override anything.
Are you familiar with DTB customization?
The required changes should be fairly simple to apply.
Please let us know if you require us to give you some guidance on how to do it.
Also, if you require any help with anything else, please do not hesitate to reach out, we would be glad to help.
Those documents will give you a good idea of how the device tree is organized.
Then, on this other guide, you should find information on how to get the kernel and DTB sources.
This topic might be a bit dense, however, once you get going it becomes easier to work with.
Also, please let us know if you require further assistance, we could jump into a quick call with you for free so we can give you a bit of more in dept support.