49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
#
|
|
# Copyright (c) 2019 Manivannan Sadhasivam
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
DT_COMPAT_SEMTECH_SX1272 := semtech,sx1272
|
|
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_SX127X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1272))
|
|
default LORA_SX127X 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_SX127X
|
|
bool "Semtech SX127x driver"
|
|
select HAS_SEMTECH_SX1272 if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1272))
|
|
select HAS_SEMTECH_SX1276 if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1276))
|
|
help
|
|
Enable LoRa driver for Semtech SX1272 and SX1276.
|
|
|
|
config LORA_SX126X
|
|
bool "Semtech SX126x driver"
|
|
select HAS_SEMTECH_SX126X
|
|
help
|
|
Enable LoRa driver for Semtech SX1261 and SX1262.
|
|
|
|
endchoice
|
|
|
|
endif
|