summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-raspberrypi
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-04-06 11:21:38 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-04-06 11:21:38 +0200
commitaa8ffd740bba3db2a3a7ee9efa46258b69fb53ce (patch)
tree092cbef3c2e9ac376188c11d63fe48c628def3ef /meta-agl-bsp/meta-raspberrypi
parente7f263d097155cfbc7ade1eda3ff08ceb90b9266 (diff)
Change-Id: I424065c1385c2a2656b4efe2796f5efd6d59171e Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-agl-bsp/meta-raspberrypi')
-rw-r--r--meta-agl-bsp/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend9
-rw-r--r--meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend2
2 files changed, 10 insertions, 1 deletions
diff --git a/meta-agl-bsp/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend b/meta-agl-bsp/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend
index 248623699..233132911 100644
--- a/meta-agl-bsp/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend
+++ b/meta-agl-bsp/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend
@@ -4,10 +4,17 @@ TOTAL_BOARD_MEM = "3072"
do_deploy:append:raspberrypi4() {
# ENABLE CAN
if [ "${ENABLE_CAN}" = "1" ]; then
- echo "# Enable CAN" >>${DEPLOYDIR}/bootfiles/config.txt
+ echo "# Enable CAN" >> ${DEPLOYDIR}/bootfiles/config.txt
echo "dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25" >>${DEPLOYDIR}/bootfiles/config.txt
fi
+ # ENABLE DUAL CANFD
+ if [ "${ENABLE_DUAL_CAN_FD}" = "1" ]; then
+ echo "# Enable CANFD" >> ${DEPLOYDIR}/bootfiles/config.txt
+ echo "dtoverlay=mcp251xfd-can0,oscillator=16000000,interrupt=25" >> ${DEPLOYDIR}/bootfiles/config.txt
+ echo "dtoverlay=mcp251xfd-can1,oscillator=16000000,interrupt=24" >> ${DEPLOYDIR}/bootfiles/config.txt
+ fi
+
# Handle setup with armstub file
if [ -n "${ARMSTUB}" ]; then
echo "\n# ARM stub configuration" >> ${DEPLOYDIR}/bootfiles/config.txt
diff --git a/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend b/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend
index ec3fa910b..2fdf96c67 100644
--- a/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend
+++ b/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend
@@ -44,3 +44,5 @@ KERNEL_MODULE_AUTOLOAD += "hid-multitouch"
PACKAGES += "kernel-module-snd-bcm2835"
RDEPENDS:${PN} += "kernel-module-snd-bcm2835"
+
+RPI_KERNEL_DEVICETREE_OVERLAYS:append = " overlays/mcp251xfd.dtbo overlays/seeed-can-fd-hat-v1.dtbo overlays/seeed-can-fd-hat-v2.dtbo overlays/waveshare-can-fd-hat-mode-a.dtbo overlays/waveshare-can-fd-hat-mode-b.dtbo"