zephyr/drivers/lora/Kconfig.sx12xx
Andreas Sandberg 6a4ebe5949 drivers: lora: Add SX126x LoRa radio support
Add support for the SX126x series of LoRa radios using the
LoRaMAC-Node HAL.

This driver currently makes the following assumptions:

  * DIO1 is used as an interrupt line.

  * There is an RF switch selecting between the TX and RX ports and
    that switch is controlled by DIO2.

  * There is either no TCXO or the TCXO is controlled by DIO3.

Specifically, the limitations above mean that modules that use GPIOs
to control the RF switch are currently not supported. Support for such
modules would need changes to the LoRaMAC-Node code.

Signed-off-by: Andreas Sandberg <andreas@sandberg.pp.se>
2020-07-02 08:32:37 -04:00

46 lines
1.1 KiB
Plaintext

#
# Copyright (c) 2019 Manivannan Sadhasivam
#
# SPDX-License-Identifier: Apache-2.0
#
DT_COMPAT_SEMTECH_SX1276 := semtech,sx1276
DT_COMPAT_SEMTECH_SX1261 := semtech,sx1261
DT_COMPAT_SEMTECH_SX1262 := semtech,sx1262
menuconfig LORA_SX12XX
bool "Semtech SX-series driver"
select HAS_SEMTECH_RADIO_DRIVERS
select HAS_SEMTECH_LORAMAC
depends on SPI
help
Enable LoRa driver for Semtech SX12xx.
if LORA_SX12XX
choice
prompt "LoRa Radio chipset"
default LORA_SX1276 if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1276))
default LORA_SX126X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1261))
default LORA_SX126X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1262))
help
Select the LoRa modem used on your board. The default value
is discovered from the device tree and should be correct for
most users.
config LORA_SX1276
bool "Semtech SX1276 driver"
select HAS_SEMTECH_SX1276
help
Enable LoRa driver for Semtech SX1276.
config LORA_SX126X
bool "Semtech SX126x driver"
select HAS_SEMTECH_SX126X
help
Enable LoRa driver for Semtech SX1261 and SX1262.
endchoice
endif