I’m trying to connect a MCP2515 module to J21 expansion header.
My version of Jetpack already has a MCP2515 module, so:
sudo modprobe mcp251x
[ 3609.239709] CAN device driver interface
Now, based on https://elinux.org/Jetson/TX2_SPI, I’m trying to update the device-tree, using the instructions from @Atrer (from your link), but I got an error on “gpios = <TEGRA_MAIN_GPIO(R, 0) 0>;”
Error: extracted_proc.dts:10049.26-27 syntax error
FATAL ERROR: Unable to parse input tree
It’s not clear where I have to put the gpio-hog definition and clock definition.