Hello,
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:
clocks
{
can_clock{
clock-frequency = <0xf42400>;
};
};
spi@7000d400{
spi@0{
status = “okay”;
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(Z, 0) IRQ_TYPE_EDGE_FALLING>;
compatible = “microchip-mcp2515”;
};
spi@1{
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?
Thank You