I want to use SPI1 on header J30 to control a sensor. For that I want to enable spidev and use spidev_test.c to test it out.
I follow the steps listed across many forums (particularly this one: https://devtalk.nvidia.com/default/topic/1061177/jetson-agx-xavier/flashing-xavier-with-modified-device-tree/post/5375515/#5375515)
yet I when I try lsmod I don’t see spidev being used.
Here are the steps I followed:
- Download kernel sources using ./source_sync.sh and the tag tegra-l4t-r32.2.0
- I follow the steps from kernel customization chapter to build the kernel and flash the xavier.
I think the dtsi file I am modifying is incorrect, so which dtsi file do I modify to enable spidev? Every forum has different answers and so I am not sure which one to modify and where to put it?