# Copyright (c) 2026 Carlo Caione <ccaione@baylibre.com>
# SPDX-License-Identifier: Apache-2.0

config LORA_SX126X_NATIVE
	bool "Semtech SX126x native driver (experimental)"
	default y
	depends on LORA_MODULE_BACKEND_NATIVE
	depends on DT_HAS_SEMTECH_SX1262_ENABLED || DT_HAS_SEMTECH_SX1261_ENABLED || \
		   DT_HAS_ST_STM32WL_SUBGHZ_RADIO_ENABLED
	select SPI
	select GPIO
	help
	  Enable native driver for Semtech SX1261/SX1262 LoRa transceivers,
	  including the STM32WL integrated sub-GHz radio.
	  This is an experimental driver that does not depend on loramac-node
	  or lora-basics-modem external modules.

config LORA_SX126X_NATIVE_SLEEP
	bool "Sleep mode power management"
	default y
	depends on LORA_SX126X_NATIVE
	help
	  Place the SX126x radio into sleep mode when idle to reduce
	  power consumption (~600 nA vs ~1.6 mA in standby). Disable
	  to keep the radio in standby for faster response times.

config LORA_SX126X_NATIVE_STM32WL
	bool
	default y
	depends on LORA_SX126X_NATIVE
	depends on DT_HAS_ST_STM32WL_SUBGHZ_RADIO_ENABLED
	help
	  STM32WL Sub-GHz radio support for the native SX126x driver.

config LORA_SX126X_NATIVE_STANDALONE
	bool
	default y
	depends on LORA_SX126X_NATIVE
	depends on DT_HAS_SEMTECH_SX1262_ENABLED || DT_HAS_SEMTECH_SX1261_ENABLED
	help
	  Standalone SX1261/SX1262 support for the native SX126x driver.
