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>
This commit is contained in:
Yannis Damigos 2018-01-14 16:25:55 +02:00 committed by Kumar Gala
commit 8faa307d74
2 changed files with 10 additions and 1 deletions

View file

@ -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.

View file

@ -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.