I want to add CAN bus to Rock Pi 4, but I’m not familiar with device tree.
MCP2515 is a SPI to CAN module with open document.
MCP2515 overlay help needed
Which HAT are you using? Maybe we can add a device tree overlay for that.
Any update? I would also like an overlay for MCP2515
Go to linux/arch/arm/boot/dts
and search for mcp2515
in *.dts
or *.dtsi
.
The results can be used as examples.
But be becareful with hardware difference like external clock input frequency for timing generation of MCP2515, SPI speed between MCP2515 and master, etc.