docs, conf/machine/include/rpi-base.inc, rpi-config: added seeed-can-fd-hat-v2.dtbo
Some checks failed
Mirrors / Yocto Git Mirror (push) Has been cancelled

I needed support of the seeed-can-fd-hat-v2 Can Shield

Added the seeed-can-fd-hat-v2.dtbo device tree overlay to the rpi-base.inc and added the parameter for the CAN shield under the rpi-config so it can be easily enabled as a parameter from e.g. the local.conf and is added to the /boot/config.txt of the Pi. I also added the changes to the documentation.

Signed-off-by: Moritz Boesenberg <moritz@techmountain.dev>
This commit is contained in:
Moritz Boesenberg 2025-07-04 12:36:00 +02:00 committed by Khem Raj
parent 03981f9365
commit 55cdc0341c
3 changed files with 11 additions and 0 deletions

View File

@ -51,6 +51,7 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
overlays/iqaudio-dacplus.dtbo \
overlays/mcp2515-can0.dtbo \
overlays/mcp2515-can1.dtbo \
overlays/seeed-can-fd-hat-v2.dtbo \
overlays/mcp3008.dtbo \
overlays/miniuart-bt.dtbo \
overlays/pitft22.dtbo \

View File

@ -354,6 +354,12 @@ Tested modules:
* WaveShare RS485 CAN HAT (8 MHz or 12 MHz crystal): <https://www.waveshare.com/rs485-can-hat.htm>
* PiCAN2 Duo (16 MHz crystal): <http://skpang.co.uk/catalog/pican2-duo-canbus-board-for-raspberry-pi-23-p-1480.html>
To enable the 2-Channel CAN-BUS(FD) Shield (MCP2518FD), set:
ENABLE_DUAL_CAN_SEED_FD_HAT_V2 = "1"
* Seed Studio (2-Channel CAN-BUS(FD) Shield): <https://wiki.seeedstudio.com/2-Channel-CAN-BUS-FD-Shield-for-Raspberry-Pi/>
## Enable infrared
Users who want to enable infrared support, for example for using LIRC (Linux

View File

@ -270,6 +270,10 @@ do_deploy() {
echo "# Enable DUAL CAN" >>$CONFIG
echo "dtoverlay=mcp2515-can0,oscillator=${CAN_OSCILLATOR},interrupt=${CAN0_INTERRUPT_PIN}" >>$CONFIG
echo "dtoverlay=mcp2515-can1,oscillator=${CAN_OSCILLATOR},interrupt=${CAN1_INTERRUPT_PIN}" >>$CONFIG
# Enable DUAL CAN FOR SEED CAN FD HAT V2
elif [ "${ENABLE_DUAL_CAN_SEED_FD_HAT_V2}" = "1" ]; then
echo "# Enable DUAL CAN FOR SEED CAN FD HAT V2" >>$CONFIG
echo "dtoverlay=seeed-can-fd-hat-v2" >>$CONFIG
# ENABLE CAN
elif [ "${ENABLE_CAN}" = "1" ]; then
echo "# Enable CAN" >>$CONFIG