Pinmux configuration for SPI1?

Dear forum,

I would like to configure the following pins of Jetson Orin NX to use its SPI1:

For the Customer Usage column, I hesitated between SPIx_SCK/MISO/MOSI/CS0/CS1 and **unused_**SPIx_SCK/MISO/MOSI/CS0/CSI1. Also, I don’t know exactly how to select for the other columns such as Pin Direction, Req. Initial State, Wake Pin, Initiator Target Mode, 3V3 Tolerance Enable . Please advice!

Also, is there any difference for SPI master mode vs slave mode in terms of pinmux, please? What I could see might be the direction of the pins, right?
Thank in advance,
Khang

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

I’d be happy to help you with configuring the SPI1 pins on the Jetson Orin NX.

Firstly, let’s break down the pin configuration process using the Jetson Orin NX and Orin Nano Series Pinmux document.

Column Selection:

For the column selection, you have two options: SPIx_SCK_MISO_MOSI_CS0_CS1 and unused_SPIx_SCK_MISO_MOSI_CS0_CS1.

  • SPIx_SCK_MISO_MOSI_CS0_CS1 is used when you want to configure the SPI pins for SPI communication. This is the correct option for your use case.
  • unused_SPIx_SCK_MISO_MOSI_CS0_CS1 is used when you want to configure the SPI pins for other purposes, such as GPIO or other peripherals.

Pin Configuration:

To configure the SPI1 pins, you need to select the correct pin configuration for each column. Here’s a brief explanation of each column:

  • SPI1_SCK: This is the clock pin for SPI communication. You can configure it as an input or output, depending on whether you’re using the Jetson Orin NX as a master or slave.
  • SPI1_MISO: This is the master-in-slave-out pin for SPI communication. You can configure it as an input or output, depending on whether you’re using the Jetson Orin NX as a master or slave.
  • SPI1_MOSI: This is the master-out-slave-in pin for SPI communication. You can configure it as an input or output, depending on whether you’re using the Jetson Orin NX as a master or slave.
  • SPI1_CS0: This is the chip select pin for SPI communication. You can configure it as an input or output, depending on whether you’re using the Jetson Orin NX as a master or slave.

SPI Master Mode vs Slave Mode:

Yes, there is a difference in pin configuration between SPI master mode and slave mode.

  • In SPI master mode, the Jetson Orin NX generates the clock signal and drives the SPI1_SCK pin as an output. The SPI1_MOSI pin is also driven as an output, while the SPI1_MISO pin is configured as an input.
  • In SPI slave mode, the Jetson Orin NX receives the clock signal and configures the SPI1_SCK pin as an input. The SPI1_MOSI pin is configured as an input, while the SPI1_MISO pin is driven as an output.

Additional Tips:

  • Make sure to configure the pin direction correctly, depending on whether you’re using the Jetson Orin NX as a master or slave.
  • You can use the GPIO tools to dynamically change the GPIO pin settings if needed.
  • Refer to the Jetson Orin NX and Orin Nano Series Pinmux document for more information on pin configuration and usage.

I hope this helps you configure the SPI1 pins on the Jetson Orin NX correctly!

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

Please refer to the following pinmux configuration for both SPI master and slave.

SPI Master

SPI Slave

1 Like

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