I am trying to use an e-paper display on the Jetson, and it uses the RPI 40pin header, which i read the Jetson supports as it matches the RPI pin mapping.
What do I need to do to enable SPI and I2C on the Jetson 40pin header so it matches the mapping of a RPI?
It does not seem to be enabled or mapped properly by default, as the screen is not updating when i run my demo but i confirmed the hardware is fine testing it on an RPI.
Essentially i am trying to port the touch version code base to use Jetson compatible code as demonstrated in the sample for the screen without touch above. My code runs on the jetson but is unable to find an SPI interface and it quits.
Are you using official Orin Nano devkit or the custom carrier board from Waveshare?
The link you shared is for Jetson Nano rather than Orin Nano.
I think you have to check Jetson Orin Nano Developer Kit Carrier Board Specification for the pin mapping on 40-pins expansion header as following.
If you want to use SPI interface for e-paper module, you should connect PIN19(SPI0_MOSI), PIN21(SPI0_MISO), PIN23(SPI0_SCK), PIN24(SPI0_CS0) to your module.
You may need to configure the pinmux for those pins before use.
I would suggest you verify SPI loopback test to confirm all the configurations are correct before you try to port for your e-paper module.
Thanks, since i am having issues with the jetson-io python tool, can you tell me which files i need to modify in the /Linux_forTegra/ build directory before i flash the device so it have the correct pin mappings?
I am using an offical devkit (Amazon.com), flashed with the default image provided by nvidia:
Flash Steps
Do some pre-config stuff…
What files do i need to modify to get the correct GPIO setttings?
What issue did you get?
Jetson-IO should work on the devkit.
Please run the following command to launch it.
$ sudo /opt/nvidia/jetson-io/jetson-io.py
It seems you’ve enabled the disk-encryption in your case. It won’t affect how you configure and the usage for the pins of 40-pins expansion header.
Please try using Jetson-IO tool to enable the SPI/I2C pins on 40-pins expansion header.
Or you can refer to Generating the Pinmux dtsi Files to configure pinmux before flash.