From 8faa307d74a2eed6cf6f73637e5524b0e0ce2874 Mon Sep 17 00:00:00 2001 From: Yannis Damigos Date: Sun, 14 Jan 2018 16:25:55 +0200 Subject: [PATCH] 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 --- drivers/bluetooth/hci/Kconfig | 3 ++- dts/Kconfig | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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.