diff --git a/drivers/bluetooth/hci/Kconfig b/drivers/bluetooth/hci/Kconfig index 902d81796a9..b00ac8f8e72 100644 --- a/drivers/bluetooth/hci/Kconfig +++ b/drivers/bluetooth/hci/Kconfig @@ -82,6 +82,8 @@ config BT_SPI_BLUENRG Enable support for devices compatible with the BlueNRG Bluetooth Stack. Current driver supports: ST X-NUCLEO BLE series. +if !HAS_DTS_SPI_PINS + config BT_SPI_CHIP_SELECT_DEV_NAME string "Chip Select (CS) line driver name" depends on BT_SPI_BLUENRG @@ -118,6 +120,8 @@ config BT_SPI_RESET_PIN help This option specifies the Reset line number on the SPI device +endif # !HAS_DTS_SPI_PINS + config BT_SPI_MAX_CLK_FREQ int "Maximum clock frequency for the HCI SPI interface" default 5000000 diff --git a/dts/Kconfig b/dts/Kconfig index 9fb4e2d3276..0203a883116 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -43,6 +43,14 @@ config HAS_DTS_SPI_DEVICE This option specifies that the target platform supports device tree configuration for spi devices, like sensors or RF modules. +config HAS_DTS_SPI_PINS + bool + default n + help + This option specifies that the target platform supports device tree + configuration for pin definition of spi devices, like sensors or + RF modules. + config HAS_DTS_USB bool default n diff --git a/dts/bindings/bluetooth/st,spbtle-rf.yaml b/dts/bindings/bluetooth/st,spbtle-rf.yaml index 137747adb89..22f07a80648 100644 --- a/dts/bindings/bluetooth/st,spbtle-rf.yaml +++ b/dts/bindings/bluetooth/st,spbtle-rf.yaml @@ -18,4 +18,13 @@ properties: compatible: constraint: "st,spbtle-rf" + irq-gpios: + type: compound + category: required + generation: define, use-prop-name + + reset-gpios: + type: compound + category: required + generation: define, use-prop-name ...