How to create a Device Tree Overlay for CANBus on SPI Board?


I have mikroBUS Cape board from

and I use DTS file from

I tested reading data from spi 1-1 device and it works.

I am connecting a CANBus interface card

This CANBus board has MCP2551 can transciever and I cannot figure out how to change my DTS file to describe CANBus board.

I found examples of PIN reconfiguration for P8 and P9, but no example how to configure SPIDEV nested device. Can you help?

Thank you