I am trying to interface my can module with jetson nano since the sensors I am using are CAN based.
Here’s what I have done as of now:
Configured the jetson 40-pin header for the compatible hardware (MCP251x as CAN controller). This option was already available on /opt/nvidia/jetson-io/jetson-io.py.
However, based on the previous forums I have to set pin 31 as an interrupt using the DTS file.
I have made the below modifications in the dts file:
clock-frequency = <0xf42400>;
status = “okay”;
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(Z, 0) IRQ_TYPE_EDGE_FALLING>;
compatible = “microchip-mcp2515”;
status = “disabled”;
compatible = “tegra-spidev”;
but I get an error stating unable to parse the input tree.
I have mentioned only the changes I have made in the entire dts file, the rest of the values are set by default.
What are the changes I need to make to set pin 31 as the interrupt?