Skip to content

Commit cc4914f

Browse files
committed
boards: st: Add boot mode retention support to Nucleo WB55RG board
Setup a section of retained memory for boot mode retention on the Nucleo WB55RG board. Signed-off-by: Peter Johanson <[email protected]>
1 parent 0e5e47e commit cc4914f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

boards/st/nucleo_wb55rg/nucleo_wb55rg.dts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@
1010
#include "arduino_r3_connector.dtsi"
1111
#include <zephyr/dt-bindings/input/input-event-codes.h>
1212

13+
14+
&sram0 {
15+
reg = <0x20000000 (DT_SIZE_K(192) - 4)>;
16+
};
17+
1318
/ {
1419
model = "STMicroelectronics STM32WB55RG-NUCLEO board";
1520
compatible = "st,stm32wb55rg-nucleo";
1621

1722
chosen {
1823
zephyr,console = &usart1;
24+
zephyr,boot-mode = &boot_mode;
1925
zephyr,shell-uart = &usart1;
2026
zephyr,bt-mon-uart = &lpuart1;
2127
zephyr,bt-c2h-uart = &lpuart1;
@@ -24,6 +30,27 @@
2430
zephyr,code-partition = &slot0_partition;
2531
};
2632

33+
sram_ret@2002fffc {
34+
compatible = "zephyr,memory-region", "mmio-sram";
35+
reg = <0x2002fffc 0x4>;
36+
zephyr,memory-region = "RetainedMem";
37+
status = "okay";
38+
39+
retainedmem {
40+
compatible = "zephyr,retained-ram";
41+
status = "okay";
42+
#address-cells = <1>;
43+
#size-cells = <1>;
44+
45+
boot_mode: retention@0 {
46+
compatible = "zephyr,retention";
47+
status = "okay";
48+
reg = <0x0 0x1>;
49+
};
50+
};
51+
};
52+
53+
2754
leds: leds {
2855
compatible = "gpio-leds";
2956

0 commit comments

Comments
 (0)