drivers: bluetooth: hci_spi: Use DT instead of Kconfig to get HW params
Convert the HCI SPI driver to get the SPI and GPIO settings from Device Tree instead of Kconfig. The "zephyr,bt-hci-spi" binding is used as a common one for this purpose ("st,spbtle-rf" is removed), to take advantage of the new DT_<COMPAT>_<INSTANCE> generated macros and get rid of related fixups and aliases. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
bf9c6d72e8
commit
c047e8e469
8 changed files with 44 additions and 140 deletions
|
@ -72,17 +72,6 @@ config BT_UART_ON_DEV_NAME
|
|||
for Bluetooth.
|
||||
endif
|
||||
|
||||
config BT_SPI_DEV_NAME
|
||||
string "Device Name of SPI Device for Bluetooth"
|
||||
default "SPI_0"
|
||||
depends on BT_SPI && !HAS_DTS_SPI
|
||||
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
|
||||
RAW HCI frames to send further up the stack. On the BLE stack side,
|
||||
this device is used to reply back with HCI frames that are sent over
|
||||
the air.
|
||||
|
||||
if BT_SPI
|
||||
|
||||
config BT_BLUENRG_ACI
|
||||
|
@ -97,52 +86,4 @@ config BT_SPI_BLUENRG
|
|||
Enable support for devices compatible with the BlueNRG Bluetooth
|
||||
Stack. Current driver supports: ST BLUENRG-MS.
|
||||
|
||||
if !HAS_DTS_SPI
|
||||
|
||||
config BT_SPI_CHIP_SELECT_DEV_NAME
|
||||
string "Chip Select (CS) line driver name"
|
||||
depends on BT_SPI_BLUENRG
|
||||
help
|
||||
This option specifies the name of GPIO driver controlling
|
||||
the Chip Select (CS) line.
|
||||
|
||||
config BT_SPI_IRQ_DEV_NAME
|
||||
string "IRQ line driver name"
|
||||
help
|
||||
This option specifies the name of GPIO driver controlling
|
||||
the chip's IRQ line.
|
||||
|
||||
config BT_SPI_RESET_DEV_NAME
|
||||
string "Reset line driver name"
|
||||
help
|
||||
This option specifies the name of GPIO driver controlling
|
||||
the chip's Reset line.
|
||||
|
||||
config BT_SPI_CHIP_SELECT_PIN
|
||||
int "SPI Chip Select (CS) line number"
|
||||
depends on BT_SPI_BLUENRG
|
||||
help
|
||||
This option specifies the Chip Select (CS) line number on the SPI
|
||||
device
|
||||
|
||||
config BT_SPI_IRQ_PIN
|
||||
int "SPI IRQ line number"
|
||||
help
|
||||
This option specifies the IRQ line number on the SPI device
|
||||
|
||||
config BT_SPI_RESET_PIN
|
||||
int "SPI Reset line number"
|
||||
help
|
||||
This option specifies the Reset line number on the SPI device
|
||||
|
||||
endif # !HAS_DTS_SPI
|
||||
|
||||
config BT_SPI_MAX_CLK_FREQ
|
||||
int "Maximum clock frequency for the HCI SPI interface"
|
||||
default 5000000
|
||||
depends on !HAS_DTS_SPI
|
||||
help
|
||||
This option specifies the maximum clock rate the HCI SPI
|
||||
interface is capable of running at.
|
||||
|
||||
endif # BT_SPI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue