Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32WBA: Implement BLE support #66181

Merged
merged 7 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions boards/arm/nucleo_wba55cg/nucleo_wba55cg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,20 @@

&clk_hse {
status = "okay";
hse-div2;
};

&pll1 {
div-m = <8>;
mul-n = <48>;
div-q = <2>;
div-r = <2>;
clocks = <&clk_hse>;
&clk_hsi {
status = "okay";
};

&rcc {
clocks = <&pll1>;
clock-frequency = <DT_FREQ_M(96)>;
clocks = <&clk_hse>;
clock-frequency = <DT_FREQ_M(16)>;
ahb-prescaler = <1>;
ahb5-prescaler = <4>;
ahb5-prescaler = <2>;
apb1-prescaler = <1>;
apb2-prescaler = <1>;
apb2-prescaler = <2>;
apb7-prescaler = <1>;
};

Expand All @@ -91,6 +87,8 @@
};

&usart1 {
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00004000>,
<&rcc STM32_SRC_HSI16 USART1_SEL(2)>;
pinctrl-0 = <&usart1_tx_pb12 &usart1_rx_pa8>;
pinctrl-names = "default";
current-speed = <115200>;
Expand Down
1 change: 1 addition & 0 deletions drivers/bluetooth/hci/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ zephyr_library_sources_ifdef(CONFIG_BT_H5 h5.c)
zephyr_library_sources_ifdef(CONFIG_BT_HCI_IPC ipc.c)
zephyr_library_sources_ifdef(CONFIG_BT_SPI spi.c)
zephyr_library_sources_ifdef(CONFIG_BT_STM32_IPM ipm_stm32wb.c)
zephyr_library_sources_ifdef(CONFIG_BT_STM32WBA hci_stm32wba.c)
zephyr_library_sources_ifdef(CONFIG_BT_USERCHAN userchan.c)
zephyr_library_sources_ifdef(CONFIG_BT_SILABS_HCI slz_hci.c)
zephyr_library_sources_ifdef(CONFIG_BT_PSOC6_BLESS hci_psoc6_bless.c)
Expand Down
6 changes: 6 additions & 0 deletions drivers/bluetooth/hci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ config BT_STM32_IPM
help
TODO

config BT_STM32WBA
bool "STM32WBA HCI driver"
select HAS_STM32LIB
help
ST STM32WBA HCI Bluetooth interface

config BT_SILABS_HCI
bool "Silicon Labs Bluetooth interface"
depends on SOC_SERIES_EFR32BG22 || SOC_SERIES_EFR32MG24 || SOC_SERIES_EFR32BG27
Expand Down
Loading
Loading