Jetson Xavier nx mcp2515 can-bus

I have successfully recognised the mcp2515 and the can0 interface, but I have been unable to receive data in the loopback test. can0 show clock: 8000000hz, but the mcp2515 chip requires 16mhz, and I have written 16mhz in the device tree, here is my device tree configuration.
can_clock {
#clock-cells = <0x00>;
clock-frequency = <0xf42400>;
compatible = “fixed-clock”;
phandle = <0x46d>;
mcp2515@0 {
interrupts = <22 0x02>;
clocks = <0x46d>;
clock-names = “osc”;
clock-frequency = <16000000>;
spi-max-frequency = <10000000>;
interrupt-parent = <0x0c>;
compatible = “microchip,mcp2515”;
reg = <0x00>;

                    controller-data {
                            nvidia,enable-hw-based-cs;
                            nvidia,tx-clk-tap-delay = <0x00>;
                            nvidia,rx-clk-tap-delay = <0x10>;

Hi jiaqiao.liu,

Are you using the devkit or custom board for Xavier NX?
What’s the Jetpack version in use?

Please refer to Jetson/L4T/peripheral/ - eLinux.org to port and verify MCP2515 module on Jetson device.

i used devkit board and the jetpack version is 5.0

Please share the result of cat /etc/nv_tegra_release on your board.

Have you referred to the link I shared to port MCP2515 module on Jetson?

@ubuntu:~$ head -n 1 /etc/nv_tegra_release

R35 (release), REVISION: 5.0, GCID: 35550185, BOARD: t186ref, EABI: aarch64, DATE: Tue Feb 20 04:46:31 UTC 2024

Can you give me a link to the one you shared?

Jetson/L4T/peripheral/ - eLinux.org

There’s an example for the verification steps with JP5.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.