boards: st: steval_stwinbx1: Add BLE support for STEVAL-STWINBX1 board
Provide BLE support for STEVAL-STWINBX1 board. Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
This commit is contained in:
parent
d830446c91
commit
ced9fba95c
3 changed files with 36 additions and 0 deletions
|
@ -5,6 +5,24 @@
|
|||
|
||||
if BOARD_STEVAL_STWINBX1
|
||||
|
||||
if BT
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
choice BT_HCI_BUS_TYPE
|
||||
default BT_SPI
|
||||
endchoice
|
||||
|
||||
config BT_BLUENRG_ACI
|
||||
default y
|
||||
|
||||
# Disable Flow control
|
||||
config BT_HCI_ACL_FLOW_CONTROL
|
||||
default n
|
||||
|
||||
endif # BT
|
||||
|
||||
config SPI_STM32_INTERRUPT
|
||||
default y
|
||||
depends on SPI
|
||||
|
|
|
@ -159,6 +159,23 @@ stm32_lp_tick_source: &lptim1 {
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&spi3 {
|
||||
pinctrl-0 = <&spi3_sck_pg9 &spi3_miso_pb4 &spi3_mosi_pb5>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
cs-gpios = <&gpioe 1 GPIO_ACTIVE_LOW>;
|
||||
bluenrg-2@0 {
|
||||
compatible = "st,hci-spi-v2";
|
||||
reg = <0>;
|
||||
reset-gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
|
||||
irq-gpios = <&gpiof 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
|
||||
spi-cpha; /* CPHA=1 */
|
||||
spi-hold-cs;
|
||||
spi-max-frequency = <DT_FREQ_M(1)>;
|
||||
reset-assert-duration-ms = <6>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
pinctrl-0 = <&i2c2_scl_ph4 &i2c2_sda_pf0>;
|
||||
pinctrl-names = "default";
|
||||
|
|
|
@ -12,4 +12,5 @@ supported:
|
|||
- gpio
|
||||
- pwm
|
||||
- watchdog
|
||||
- ble
|
||||
vendor: st
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue