Hi all,
I am trying to use MCP2517FD on SPI0-0 on the Raspberry Pi CM4 IO board, but there are some issues along the way. I have connected GPIO 22 from CM4 to INT of MCP2517FD.
What I have done to make it work:
Edited /boot/firmware/config.txt to include
/
dtparam=spi=on
dtoverlay=spi1-3cs
dtoverlay=spi0-0cs,cs0_pin=22
dtoverlay=mcp251xfd,spi0-0,oscillator=40000000,interrupt=22
/
The error message that I am facing:
/
dmesg | grep mcp
[ 4.166821] mcp251xfd spi0.0 (unnamed net_device) (uninitialized): Failed to read Oscillator Configuration Register (osc=0xffffffff).
[ 4.166851] mcp251xfd spi0.0: error -ENODEV: Failed to detect MCP251xFD.
/
What have I done wrong that made me unable to configure the MCP2517FD?
Much thanks in advance to anyone who attempts to help!
I am trying to use MCP2517FD on SPI0-0 on the Raspberry Pi CM4 IO board, but there are some issues along the way. I have connected GPIO 22 from CM4 to INT of MCP2517FD.
What I have done to make it work:
Edited /boot/firmware/config.txt to include
/
dtparam=spi=on
dtoverlay=spi1-3cs
dtoverlay=spi0-0cs,cs0_pin=22
dtoverlay=mcp251xfd,spi0-0,oscillator=40000000,interrupt=22
/
The error message that I am facing:
/
dmesg | grep mcp
[ 4.166821] mcp251xfd spi0.0 (unnamed net_device) (uninitialized): Failed to read Oscillator Configuration Register (osc=0xffffffff).
[ 4.166851] mcp251xfd spi0.0: error -ENODEV: Failed to detect MCP251xFD.
/
What have I done wrong that made me unable to configure the MCP2517FD?
Much thanks in advance to anyone who attempts to help!
Statistics: Posted by NavToLuck — Tue Dec 16, 2025 9:04 am — Replies 1 — Views 35