Hi ,
We are currently evaluating the CAN bus architecture for a carrier board design using the Jetson AGX Thor T4000 SOM.
We would like to inquire about the feasibility, driver support, and recommendations for using an external SPI-to-CAN / CAN-FD controller IC (with integrated transceiver), such as the TI TCAN4550 or Microchip MCP2518FD / MCP2515.
Could you please clarify the following questions:
- Driver & Kernel Support: Does JetPack / Jetson Linux for Thor include built-in kernel driver support (e.g., SocketCAN driver modules like
mcp251xfd or tcan4x5x) for SPI-based CAN controllers?
- Interrupt & SPI Performance: Are there any specific hardware design guidelines, recommended SPI clocks, or dedicated GPIO interrupt latency considerations when routing SPI and interrupt lines from the T4000 SOM to an external CAN controller?
- Native CAN vs. SPI-based CAN: Given that Thor SOM provides native CAN interfaces, is it recommended to use Thor’s native CAN controller (with an external standard transceiver) instead of an SPI-based solution, unless extra CAN channels are required?
- Reference Design: Does NVIDIA provide any reference device tree overlay (DTS) or reference schematic for connecting an SPI CAN controller to the Thor platform?
Any recommendations or documentation pointers would be greatly appreciated.
Thank you for your support!
Best regards,
hello eric.ch.chen,
>> Q1
Linux provides SocketCAN drivers for these controllers. (such as.. mcp251x, mcp251xfd, tcan4x5x)
may I double check the actual JetPack and Jetson Linux/L4T versions you plan to use.
>> Q2
please follow the Thor module design guide for electrical requirements and the selected controller’s data-sheet for SPI timing, clock, power, and interrupt connections.
the kernel DT bindings specify a maximum SPI clock of 18 MHz for TCAN4x5x and 20 MHz for MCP251xFD.
>> Q3
it recommend starting with native CAN when the available channels meet your requirements, because it avoids additional SPI transfers and associated servicing overhead.
see-also developer guide, Controller Area Network (CAN).
>> Q4
unfortunately, no.
please dig into the public kernel source provides generic DT binding.
for instance,
$public_sources/r39.2.1/Linux_for_Tegra/source/kernel_src/kernel/kernel-noble/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
$public_sources/r39.2.1/Linux_for_Tegra/source/kernel_src/kernel/kernel-noble/Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml
Hi Jerry,
Thank you for the detailed feedback and for pointing out the SPI clock constraints and kernel documentation paths.
To answer your question regarding software versions:
We plan to use JetPack 7.2.1 (Jetson Linux r39.2.1) on the Thor T4000 platform.
Regarding the CAN implementation, due to our system architecture and multi-channel CAN bus requirements on the T4000 carrier board, we will indeed implement the CAN bus interface via SPI using an external SPI-to-CAN/CAN-FD controller IC (e.g., TCAN4x5x or MCP251xFD).
We will adhere to the maximum SPI clock limits specified in the DT bindings (18 MHz for TCAN4x5x / 20 MHz for MCP251xFD) and follow the kernel documentation paths you provided (bindings/net/can/tcan4x5x.txt and bindings/net/can/microchip,mcp251xfd.yaml) to prepare our custom device tree overlay.
Thank you once again for your valuable guidance!
Best regards,
I’ve used the MCP on other boards, the spi controller will likely be pretty much the same so that should work
Do note that you’ll need to best disable SPI PM with a udev rule, it absolutely kills SPI performance as the clock enable takes very long