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 config BT_SPI_DEV_NAME
string "Device Name of SPI Device for Bluetooth" string "Device Name of SPI Device for Bluetooth"
default "SPI_0" default "SPI_0"
depends on BT_SPI depends on BT_SPI && !HAS_DTS_SPI_DEVICE
help help
This option specifies the name of SPI device to be used for Bluetooth. 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 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 config BT_SPI_MAX_CLK_FREQ
int "Maximum clock frequency for the HCI SPI interface" int "Maximum clock frequency for the HCI SPI interface"
default 5000000 default 5000000
depends on !HAS_DTS_SPI_DEVICE
help help
This option specifies the maximum clock rate the HCI SPI This option specifies the maximum clock rate the HCI SPI
interface is capable of running at. interface is capable of running at.

View file

@ -34,3 +34,11 @@ config HAS_DTS_SPI
help help
This option specifies that the target platform supports device tree This option specifies that the target platform supports device tree
configuration for SPI. 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.