Commit bdef48fd authored by Ali Hozhabri's avatar Ali Hozhabri Committed by Benjamin Cabé
Browse files

boards: st: Enable BLE for nucleo_wb09ke & nucleo_wb05kz

Enable BLE feature for Nucleo-WB09KE and Nucleo-WB05KZ.

Dedicate 32KB and 8KB at the end of flash memory to storage partition on
Nucleo-WB09KE and Nucleo-WB05KZ respectively.

Add ble tag to the both devices yaml file.

Signed-off-by: default avatarAli Hozhabri <ali.hozhabri@st.com>
parent b2d4c2e2
Loading
Loading
Loading
Loading
+18 −0
Changes for boards/st/nucleo_wb05kz/nucleo_wb05kz.dts: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
		zephyr,shell-uart = &usart1;
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
		zephyr,bt-c2h-uart = &usart1;
	};

	leds: leds {
@@ -95,6 +96,10 @@
	slow-clock = <&clk_lse>;
};

&bt_hci_wb0 {
	status = "okay";
};

&usart1 {
	pinctrl-0 = <&usart1_tx_pa1 &usart1_rx_pb0>;
	pinctrl-names = "default";
@@ -116,3 +121,16 @@
	clocks = <&rcc STM32_CLOCK_BUS_APB1 (1 << 14)>,
		<&rcc STM32_SRC_SYSCLK SPI3_I2S3_SEL(3)>;
};

&flash0 {
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;
		/* Set 8KB of storage at the end of 192KB flash */
		storage_partition: partition@2e000 {
			label = "storage";
			reg = <0x0002e000 DT_SIZE_K(8)>;
		};
	};
};
+1 −0
Changes for boards/st/nucleo_wb05kz/nucleo_wb05kz.yaml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -16,4 +16,5 @@ supported:
  - gpio
  - i2c
  - spi
  - bluetooth
vendor: st
+18 −0
Changes for boards/st/nucleo_wb09ke/nucleo_wb09ke.dts: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
		zephyr,shell-uart = &usart1;
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
		zephyr,bt-c2h-uart = &usart1;
	};

	leds: leds {
@@ -95,6 +96,10 @@
	slow-clock = <&clk_lse>;
};

&bt_hci_wb0 {
	status = "okay";
};

&usart1 {
	pinctrl-0 = <&usart1_tx_pa1 &usart1_rx_pb0>;
	pinctrl-names = "default";
@@ -116,3 +121,16 @@
	clocks = <&rcc STM32_CLOCK_BUS_APB1 (1 << 14)>,
		<&rcc STM32_SRC_SYSCLK SPI3_I2S3_SEL(3)>;
};

&flash0 {
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;
		/* Set 32KB of storage at the end of 512KB flash */
		storage_partition: partition@78000 {
			label = "storage";
			reg = <0x00078000 DT_SIZE_K(32)>;
		};
	};
};
+1 −0
Changes for boards/st/nucleo_wb09ke/nucleo_wb09ke.yaml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -16,4 +16,5 @@ supported:
  - gpio
  - i2c
  - spi
  - bluetooth
vendor: st