@marckleinebudde I have tested MCP2517FD and there is no problem. But there is something wrong with MCP2518FD. If you are willing to discuss this, I can provide you with any other information.
pi@raspberrypi:~/linux-mark $ sudo ip link set can0 up type can bitrate 1000000 dbitrate 8000000 restart-ms 1000 berr-reporting on fd on
RTNETLINK answers: Connection timed out
pi@raspberrypi:~/linux-mark $ dmesg | grep spi
[ 4.035135] spi_master spi0: will run message pump with realtime priority
[ 4.043169] mcp25xxfd spi0.1 can0: MCP2518FD rev0.0 (-RX_INT -MAB_NO_WARN +CRC_REG +CRC_RX +CRC_TX +ECC -HD m:20.00MHz r:18.50MHz e:17.85MHz) successfully initialized.
[ 4.058282] mcp25xxfd spi0.0 can1: MCP2518FD rev0.0 (-RX_INT -MAB_NO_WARN +CRC_REG +CRC_RX +CRC_TX +ECC -HD m:20.00MHz r:18.50MHz e:17.85MHz) successfully initialized.
[ 156.725121] mcp25xxfd spi0.1 can0: Controller failed to enter mode Mixed (CAN FD/CAN 2.0) Mode (0) and stays in Configuration Mode (4).
[67749.538453] mcp25xxfd spi0.1 can0: Controller failed to enter mode Mixed (CAN FD/CAN 2.0) Mode (0) and stays in Configuration Mode (4).
@marckleinebudde I have tested MCP2517FD and there is no problem. But there is something wrong with MCP2518FD. If you are willing to discuss this, I can provide you with any other information.