It seems to incorrect SPI configuration. In case for VIM3 spicc1 (not spicc0) was configured.
can.dts
...
target = <&spicc1>;
...
spi.dts
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&spicc1>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&pwm_ef>;
__overlay__ {
};
};
fragment@2 {
target = <&uart_C>;
__overlay__ {
status = "disabled";
};
};
};
In A311D2 datasheet I did not found chapter “GPIO Interrupt”, so configuration of gpio Interrupt maybe more complicated.
Despite this MCP2515 will work without this pin, but only as CAN data sender.
In right SPI configuration and wiring dmesg will out:
mcp251x spi1.0 can0: MCP2515 successfully initialized.