2020-05-06 04:50:44 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2019 Manivannan Sadhasivam
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2021-01-25 10:04:22 +08:00
|
|
|
DT_COMPAT_SEMTECH_SX1272 := semtech,sx1272
|
2020-05-06 04:50:44 +08:00
|
|
|
DT_COMPAT_SEMTECH_SX1276 := semtech,sx1276
|
2020-04-17 20:36:36 +08:00
|
|
|
DT_COMPAT_SEMTECH_SX1261 := semtech,sx1261
|
|
|
|
DT_COMPAT_SEMTECH_SX1262 := semtech,sx1262
|
2020-05-06 04:50:44 +08:00
|
|
|
|
|
|
|
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"
|
2021-01-25 10:04:22 +08:00
|
|
|
default LORA_SX127X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1272))
|
|
|
|
default LORA_SX127X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1276))
|
2020-04-17 20:36:36 +08:00
|
|
|
default LORA_SX126X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1261))
|
|
|
|
default LORA_SX126X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1262))
|
2020-05-06 04:50:44 +08:00
|
|
|
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.
|
|
|
|
|
2021-01-25 10:04:22 +08:00
|
|
|
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))
|
2020-05-06 04:50:44 +08:00
|
|
|
help
|
2021-01-25 10:04:22 +08:00
|
|
|
Enable LoRa driver for Semtech SX1272 and SX1276.
|
2020-05-06 04:50:44 +08:00
|
|
|
|
2020-04-17 20:36:36 +08:00
|
|
|
config LORA_SX126X
|
|
|
|
bool "Semtech SX126x driver"
|
|
|
|
select HAS_SEMTECH_SX126X
|
|
|
|
help
|
|
|
|
Enable LoRa driver for Semtech SX1261 and SX1262.
|
|
|
|
|
2020-05-06 04:50:44 +08:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
endif
|