Skip to content

How to enable SPI on Jetson Orin Nano Devkit #1604

Closed Answered by madisongh
noob502 asked this question in Q&A
Discussion options

You must be logged in to vote

Is the spidev kernel module loaded?

I've set this up on my Orin Nano dev kit with the following additions in my local.conf:

KERNEL_MODULE_AUTOLOAD:append = " spidev"
KERNEL_DEVICETREE_APPLY_OVERLAYS = "tegra234-p3767-0000-p3509-a02-hdr40.dtbo"
CORE_IMAGE_EXTRA_INSTALL = "kernel-module-spidev spidev-test"

These settings differ a bit from the ones in your original post.

This was for a build of the demo-image-base image out of the kirkstone branch of our demo distro. I flashed this to my dev kit, connected pins 19 and 21 on the 40-pin header, and ran:

# lsmod | grep spidev
spidev                 24576  0
# spidev_test -v -D /dev/spidev0.0
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz …

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@madisongh
Comment options

@noob502
Comment options

@noob502
Comment options

@madisongh
Comment options

Answer selected by noob502
@noob502
Comment options

@madisongh
Comment options

@noob502
Comment options

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