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?
I was able to get spidev1.0 to show up on the xavier. I modified the pinmux configuration using devmem2 on the xavier itself.
When I use spidev_test.c in order to test the Rx and Tx, I notice that the RX line does not receive anything despite connecting Rx and Tx. My oscilloscope supports this as well.
I have a couple of questions:
Is SPI1 on header J30 supposed to be spidev0.0 instead of 1.0? if so, how do I enable that?
Is there anything else I need to add to the dtsi in order for this to work?
J30 connector pins for SPI are:
SPI_CLK - Pin 23 connected to ball/pin J57
SPI_MISO - Pin 21 connected to ball/pin A56
SPI_MOSI- Pin 19 connected to ball/pin D55
SPI_CS0 - Pin 24 connected to ball/pin E55
SPI_CS1 - Pin 26 connected to ball/pin B56
This is according to pinmux excel sheet, so I assume that this is the SPI1 controller on Xavier SoC which actually is the SPI@3210000 not the c260000, am I right?