Is the physical address mapping for this SPI controller correct?
Hi zhangpeng5,
Are you using the devkit or custom board for AGX Orin?
What’s the Jetpack version in use?
You can refer to https://elinux.org/Jetson/L4T/peripheral/#Mapping for SPI mapping.
AGX Orin has similar SPI address as Orin NX/Nano.
We are using custom board for AGX Orin
We wanted to use SPI2, so I added the following content to DTS, and /dev/spidev2.0 appeared. I used spidev_test to test, but the waveform output was not there. Please tell me where the problem lies.
the test command as below
sudo ./spidev_test -D /dev/spidev0.0 -v -p "HelloWorld123456789abcdef"
spi@c260000 {
status = "okay";
spi@0 {
compatible = "tegra-spidev";
reg = <0x00>;
status = "okay";
spi-max-frequency = <0x2faf080>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x00>;
};
};
};
There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks ~0408
Why you said that you are using /dev/spidev2.0 but you specified /dev/spidev0.0 in the test command?
Please share the full dmesg and the result of ls -l /dev/spidev* on your board.