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>;