AGX Orin 32G在自研主板上使用SPI2,SDK使用Jetpack5.1.5

我们自研的主板上使用了SPI2外挂了一个FRAM,上面这几个引脚已经在PINMUX中设置成SPI了

image

root@ubuntu:/sys/bus/spi/devices# ls

spi0.0 spi0.1 spi2.0 spi2.1

只看到了spi@3230000和spi@3210000的设备节点,现在想请教下,如何确定SPI2被正确配置了?如何测试SPI2上挂的这个FRAM?

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

The provided context appears to be a documentation for the Jetson Linux Developer Guide, specifically focusing on the Boot Architecture, Hardware References, and Board Configuration. I’ll provide a comprehensive answer to the question, comparing the relevant information when necessary.

The question seems to be asking about the Jetson AGX Orin image and its relation to the SPI (Serial Peripheral Interface) configuration. The provided text snippet shows a list of files and their sizes, followed by a directory listing of /sys/bus/spi/devices/.

To answer the question, I’ll break down the relevant information:

  1. Jetson AGX Orin Boot Flow: The Boot Flow section describes the boot process for the Jetson AGX Orin module. It mentions the BootROM, PSCROM, MB1, MB2, and UEFI stages. However, it does not directly relate to the SPI configuration.
  2. SPI Configuration: The spi directory listing shows several SPI devices, including spi0, spi1, spi2, and spi3. The spi2 device is specifically mentioned in the context of the Jetson AGX Orin image.
  3. Board Configuration: The Board Configuration section describes the Jetson AGX Orin Developer Kit, which consists of a P3701 System on Module (SOM) connected to a P3737 carrier board. The SOM and carrier board each have an EEPROM where the board ID is saved.

Comparing the information, it appears that the Jetson AGX Orin image is related to the SPI configuration, specifically the spi2 device. The spi2 device is likely used for communication between the SOM and the carrier board.

To provide a more specific answer, I would need more information about the context of the question. However, based on the provided text, it seems that the Jetson AGX Orin image is configured to use the spi2 device for communication, and the spi directory listing shows the available SPI devices on the system.

If you could provide more context or clarify the question, I’d be happy to provide a more detailed answer.

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

Hi 2799029655,

Int PU is invalid for the Output pin, please configure it as Z instead.

Could you reload spidev and check if there’s the node for SPI2?

请教下对于原理上的SPI2是否是spi@c260000

SPI2已经按照要求配置了,spidev后还是只有spi0.0 spi0.1 spi2.0 spi2.1;没有spi@c260000相关的节点生成

Correct.

Please share the full dmesg and device tree for further check.

抱歉,可能是我没有描述清楚;我们是在spi2上外挂了一个存储设备FRAM,现在看spi2@c260000已经使能成功了,需要在spi2@c260000下添加设备节点;是否有类似的例程可以参考

You can simply refer to the how SPI1(spi@3210000) configure for SPI device.
Please note that there’s only one CS available for SPI2(spi@c260000) and the voltage level is 1.8V since it is from SoM rather than 40-pins header.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.