summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-01-25 15:20:13 -0600
committerJohn Klug <john.klug@multitech.com>2019-01-25 15:20:13 -0600
commit02f2a88f3b08a1ee661d18ae4ee5355bf78fc8d2 (patch)
tree511aafda65ba173a12f1e33dcdfa45489166c553 /recipes-bsp
parent55b3fdaea0dd514538b2a439caf20dd9880b441a (diff)
downloadmeta-multitech-atmel-02f2a88f3b08a1ee661d18ae4ee5355bf78fc8d2.tar.gz
meta-multitech-atmel-02f2a88f3b08a1ee661d18ae4ee5355bf78fc8d2.tar.bz2
meta-multitech-atmel-02f2a88f3b08a1ee661d18ae4ee5355bf78fc8d2.zip
Add spidev driver for LoRa.
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.init2
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.mtcap.init2
2 files changed, 4 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index 42bf457..b7fda14 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -183,8 +183,10 @@ read_card_info() {
lora_hw=$(${SYSFS} show lora/hw-version 2> /dev/null)
if [ -d $port1 ] && [[ $(cat $port1/hw-version) = $lora_hw ]]; then
+ modprobe spidev
ln -sf /dev/spidev32766.2 /dev/spidev0.0
elif [ -d $port2 ] && [[ $(cat $port2/hw-version) = $lora_hw ]]; then
+ modprobe spidev
ln -sf /dev/spidev32765.2 /dev/spidev0.0
fi
}
diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
index 81807b1..e54dd2f 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
@@ -62,6 +62,8 @@ start_lora_led_updater() {
case $1 in
start)
+ # SPI driver for LoRa
+ modprobe spidev
# Point the firmware API at our i2c EEPROMs
echo -n ${i2c} > /sys/module/firmware_class/parameters/path
echo "Loading mts-io module"