1# 2# Copyright (c) 2019 Manivannan Sadhasivam 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7DT_COMPAT_SEMTECH_SX1272 := semtech,sx1272 8DT_COMPAT_SEMTECH_SX1276 := semtech,sx1276 9DT_COMPAT_SEMTECH_SX1261 := semtech,sx1261 10DT_COMPAT_SEMTECH_SX1262 := semtech,sx1262 11DT_COMPAT_ST_STM32WL_SUBGHZ_RADIO := st,stm32wl-subghz-radio 12 13menuconfig LORA_SX12XX 14 bool "Semtech SX-series driver" 15 select HAS_SEMTECH_RADIO_DRIVERS 16 depends on SPI 17 help 18 Enable LoRa driver for Semtech SX12xx. 19 20if LORA_SX12XX 21 22choice 23 prompt "LoRa Radio chipset" 24 default LORA_SX127X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1272)) 25 default LORA_SX127X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1276)) 26 default LORA_SX126X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1261)) 27 default LORA_SX126X if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1262)) 28 default LORA_STM32WL_SUBGHZ_RADIO if $(dt_compat_enabled,$(DT_COMPAT_ST_STM32WL_SUBGHZ_RADIO)) 29 help 30 Select the LoRa modem used on your board. The default value 31 is discovered from the device tree and should be correct for 32 most users. 33 34config LORA_SX127X 35 bool "Semtech SX127x driver" 36 select HAS_SEMTECH_SX1272 if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1272)) 37 select HAS_SEMTECH_SX1276 if $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1276)) 38 help 39 Enable LoRa driver for Semtech SX1272 and SX1276. 40 41config LORA_SX126X 42 bool "Semtech SX126x driver" 43 select HAS_SEMTECH_SX126X 44 help 45 Enable LoRa driver for Semtech SX1261 and SX1262. 46 47config LORA_STM32WL_SUBGHZ_RADIO 48 bool "STM32WL SUBGHZ radio driver" 49 select HAS_SEMTECH_SX126X 50 help 51 Enable LoRa driver for STM32WL SUBGHZ radio. 52 53endchoice 54 55endif 56