mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-10-22 06:42:18 +02:00
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
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:
parent
03981f9365
commit
55cdc0341c
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user