Skip to content

SPI issue on Jetson nano #1723

Answered by madisongh
Sarim-Jalil asked this question in Q&A
Discussion options

You must be logged in to vote

You missed removing the TEGRA_GPIO(C, pins from the gpio controller in your patch. Looks like that's still necessary with 32.7.5, I couldn't even get SPI working with the stock Jetson Linux without it. The attached patch includes the missing bits, and covers both -b00 and -a02 carriers. It also removes the SPI2 pins from the gpio controller, although it doesn't configure the function in the pinmux config.

0001-nvidia-platform-t210-configure-spi1-pins-on-40-pin-h.patch.txt

Here's the spidev_test output with this patch:

root@jetson-nano-devkit:~# modprobe spidev
root@jetson-nano-devkit:~# spidev_test -v -D /dev/spidev0.0 
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 KHz)
TX | FF…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Sarim-Jalil
Comment options

Answer selected by Sarim-Jalil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants