Skip to content

Commit 9090ce3

Browse files
committed
Add spi0-1cs.dtbo overlay to "free" GPIO7.
Some boards (like the RisingHF RHF0M301) use GPIO7 as reset-pin.
1 parent b7da548 commit 9090ce3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

meta/conf/distro/chirpstack-gateway-os.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ DISTRO_VERSION = "3.5.0"
44

55
DISTRO_FEATURES_append = " wifi"
66
EXTRA_IMAGE_FEATURES_append = " ssh-server-dropbear"
7+
8+
# Used by rpi-config bbappend.
9+
RPI_KERNEL_DEVICETREE_OVERLAYS_append = " overlays/spi0-1cs.dtbo"

meta/recipes-bsp/bootfiles/rpi-config_%.bbappend

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ do_deploy_append() {
33
echo "enable_uart=1" >>${DEPLOYDIR}/bootfiles/config.txt
44
echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bootfiles/config.txt
55
echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bootfiles/config.txt
6+
7+
# Needed as some boards (e.g. RisingHF) use GPIO 7 for reset.
8+
echo "dtoverlay=spi0-1cs" >>${DEPLOYDIR}/bootfiles/config.txt
69
}
710

811
do_deploy_append_raspberrypi3() {

0 commit comments

Comments
 (0)