I have a Jetson Nano 2GB.
I want to evaluate the maximum data rate of the SPI interfaces of my Jetson Nano 2GB.
I used the following python code, and observed the clock signal of the SPI interface on oscilloscope (pin 23 on the 40-Pin Expansion Header).
In the Jetson Nano datasheet, it is mentioned that the SPI interfaces operate up to 65Mbps, i.e., 65MHz clock signal.
But in my test, any value higher than 25MHz results in a clock frequency of 25MHz.
The result was the same for both SPI0 and SPI1.
Can anyone help me to solve my problem?
Here is my python script:
import time
import spidev
# Enable SPI
spi = spidev.SpiDev()
# Open a connection to a specific bus and device (chip select pin)
spi.open(0, 1)
# Set SPI speed and mode
spi.max_speed_hz = 25000000
spi.mode = 0
while 1:
spi.xfer2([0x54])
I am newbie in Linux, and don’t exactly know how to manipulate the device tree.
Would you please provide a step-by-step guide about how to change the device tree in in Jetson Nano?