Orin nano spi 功能调试

使用了orin nano 模组,自己制作的板子,使用spi1和spi3,但是CS引脚无电平变化,如何查看这几个引脚的功能是什么状态的,寄存器地址是多少?如何继续排查呢

*** Please note that this reply is generated by LLM automatically ***

Unfortunately, the provided context does not contain any information about the Jetson AGX Orin orin nano spi1spi3CS. The context appears to be related to the Jetson Linux Developer Guide, specifically the Boot Architecture and Board Configuration sections.

However, I can try to provide some general information about the Jetson AGX Orin module and its SPI interfaces.

The Jetson AGX Orin module is a System on Module (SOM) that is part of the Jetson AGX Orin Developer Kit. The SOM is connected to a carrier board, and it has various interfaces, including SPI (Serial Peripheral Interface) interfaces.

SPI is a synchronous serial communication interface that is commonly used to connect microcontrollers, sensors, and other peripherals. The Jetson AGX Orin module likely has multiple SPI interfaces, including spi1 and spi3, which are used to connect to different peripherals or devices.

The CS (Chip Select) signal is used to select the specific SPI device that the master device wants to communicate with. In the case of spi1 and spi3, the CS signal is likely used to select the specific SPI device connected to those interfaces.

However, without more information, it is difficult to provide a more detailed answer about the Jetson AGX Orin orin nano spi1spi3CS. If you have any specific questions or need more information, please let me know and I’ll do my best to help.

In comparison, the context does provide information about the Jetson AGX Orin Developer Kit, including the P3701 System on Module (SOM) and the P3737 carrier board. It also provides information about the Boot Architecture, including the BootROM, PSCROM, MB1, MB2, and UEFI. However, it does not provide any specific information about the SPI interfaces or the CS signal.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi 1457921946,

I’ve moved your topic to the correct category for Orin Nano.

How do you use SPI1 and SPI3?

Have you verified them in the SPI loopback test?
Do you also confirm that you measured the correct CS pin?

目前SPI1和SPI3不起作用的原因是引脚未配置为spi功能,通过SPI3_MISO:busybox devmem 0x0243d000 w 0x00000444
SPI3_MOSI:busybox devmem 0x0243d048
w 0x00000444
SPI3_SCK: busybox devmem 0x0243d030
w 0x00001444
SPI3_CS0: busybox devmem 0x0243d010
w 0x00000444寄存器写入spi功能后,spi3可以正常使用,我使用pinmux生成的3个设备树已经替换了bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi,bootloader/tegra234-mb1-bct-gpio-p3767-hdmi-a03.dtsi这两个文件,请问还需要配置哪个设备树文件,才能成功通过设备树配置成spi功能呢?

Please just confirm the following line has been included in your board config(e.g. jetson-orin-nano-devkit.conf)

PINMUX_CONFIG="tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi";

After you flash the board, the configuration will be flashed to MB1-BCT on the device as they will be loaded in early boot stage(i.e. MB1).

感谢您的回复,问题已经解决了

你好我现在又遇到了新的问题,调试SPI1时,使用的spi1 cs0片选,发送数据cs0不会被拉低,确认了gpio功能为spi1,请问什么原因呢?

What SPI device you connect for SPI1 CS0?

Do you mean there’s the expected data output from SPI1_MOSI but SPI1_CS0 keeps HIGH?

spi1 上连接了一个mcu,通信失败,MISO和MISO直连在一起,spi1 cs0一直是高电平,SCLK无时钟输出,发送数据时,CS0不会被拉低

Could you share the exact command you run to verify SPI loopback test?

./spidev_test -D /dev/spidev0.0 -v

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
~1217

Could you try running the following command instead?

$ sudo ./spidev_test -D /dev/spidev0.0 -v -p "HelloWorld123456789abcdef"

Do you have the devkit to clarify if the issue is specific to your custom board?