dts: add spi device support for SPI bluetooth modules Provides HAS_DTS_SPI_DEVICE flag to enable dts based generation for SPI bluetooth modules Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
diff --git a/drivers/bluetooth/hci/Kconfig b/drivers/bluetooth/hci/Kconfig index bc9c5e9..902d817 100644 --- a/drivers/bluetooth/hci/Kconfig +++ b/drivers/bluetooth/hci/Kconfig
@@ -65,7 +65,7 @@ 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_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 9429dbe..d992e77 100644 --- a/dts/Kconfig +++ b/dts/Kconfig
@@ -34,3 +34,11 @@ 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.