Skip to content

Commit 55cdc5a

Browse files
gmarullkartben
authored andcommitted
drivers: lora: sx12xx: select SPI and GPIO
Instead of depending on SPI/GPIO. This allows to just enable CONFIG_LORA=y + DT node in the application layer. The same pattern is nowadays followed by most drivers. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent e913a97 commit 55cdc5a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

drivers/lora/Kconfig.sx12xx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ config LORA_SX127X
1010
depends on DT_HAS_SEMTECH_SX1272_ENABLED || DT_HAS_SEMTECH_SX1276_ENABLED
1111
select HAS_SEMTECH_SX1272 if DT_HAS_SEMTECH_SX1272_ENABLED
1212
select HAS_SEMTECH_SX1276 if DT_HAS_SEMTECH_SX1276_ENABLED
13-
depends on SPI
13+
select SPI
14+
select GPIO
1415
help
1516
Enable LoRa driver for Semtech SX1272 and SX1276.
1617

@@ -19,7 +20,8 @@ config LORA_SX126X
1920
default y
2021
depends on DT_HAS_SEMTECH_SX1261_ENABLED || DT_HAS_SEMTECH_SX1262_ENABLED
2122
select HAS_SEMTECH_SX126X
22-
depends on SPI
23+
select SPI
24+
select GPIO
2325
help
2426
Enable LoRa driver for Semtech SX1261 and SX1262.
2527

@@ -28,6 +30,7 @@ config LORA_STM32WL_SUBGHZ_RADIO
2830
default y
2931
depends on DT_HAS_ST_STM32WL_SUBGHZ_RADIO_ENABLED
3032
select HAS_SEMTECH_SX126X
31-
depends on SPI
33+
select SPI
34+
select GPIO
3235
help
3336
Enable LoRa driver for STM32WL SUBGHZ radio.

0 commit comments

Comments
 (0)