diff --git a/drivers/bluetooth/hci/Kconfig b/drivers/bluetooth/hci/Kconfig index bc9c5e944dd..902d81796a9 100644 --- a/drivers/bluetooth/hci/Kconfig +++ b/drivers/bluetooth/hci/Kconfig @@ -65,7 +65,7 @@ endif config BT_SPI_DEV_NAME string "Device Name of SPI Device for Bluetooth" default "SPI_0" - depends on BT_SPI + depends on BT_SPI && !HAS_DTS_SPI_DEVICE help This option specifies the name of SPI device to be used for Bluetooth. On the controller side, this SPI device is used to encapsulate the @@ -121,6 +121,7 @@ config BT_SPI_RESET_PIN config BT_SPI_MAX_CLK_FREQ int "Maximum clock frequency for the HCI SPI interface" default 5000000 + depends on !HAS_DTS_SPI_DEVICE help This option specifies the maximum clock rate the HCI SPI interface is capable of running at. diff --git a/dts/Kconfig b/dts/Kconfig index 9429dbe28a5..d992e775820 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -34,3 +34,11 @@ config HAS_DTS_SPI help This option specifies that the target platform supports device tree configuration for SPI. + +config HAS_DTS_SPI_DEVICE + bool + default n + depends on HAS_DTS_SPI + help + This option specifies that the target platform supports device tree + configuration for spi devices, like sensors or RF modules.