Skip to content

Commit 73cd48b

Browse files
committed
boards: nordic: Add boot mode chosen nodes
Adds boot mode chosen nodes to the nrf5340dk, nrf52840dk and nrf54l15dk boards Signed-off-by: Jamie McCrae <[email protected]>
1 parent 7e18f80 commit 73cd48b

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts

+11
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
zephyr,bt-mon-uart = &uart0;
2222
zephyr,bt-c2h-uart = &uart0;
2323
zephyr,ieee802154 = &ieee802154;
24+
zephyr,boot-mode = &boot_mode0;
2425
};
2526

2627
leds {
@@ -276,3 +277,13 @@ zephyr_udc0: &usbd {
276277
compatible = "nordic,nrf-usbd";
277278
status = "okay";
278279
};
280+
281+
&gpregret1 {
282+
status = "okay";
283+
284+
boot_mode0: boot_mode@0 {
285+
compatible = "zephyr,retention";
286+
status = "okay";
287+
reg = <0x0 0x1>;
288+
};
289+
};

boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts

+11
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,16 @@
1818
zephyr,code-partition = &slot0_partition;
1919
zephyr,sram-secure-partition = &sram0_s;
2020
zephyr,sram-non-secure-partition = &sram0_ns;
21+
zephyr,boot-mode = &boot_mode0;
22+
};
23+
};
24+
25+
&gpregret1 {
26+
status = "okay";
27+
28+
boot_mode0: boot_mode@0 {
29+
compatible = "zephyr,retention";
30+
status = "okay";
31+
reg = <0x0 0x1>;
2132
};
2233
};

boards/nordic/nrf54l15dk/nrf54l_05_10_15_cpuapp_common.dtsi

+11
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
zephyr,flash-controller = &rram_controller;
1919
zephyr,flash = &cpuapp_rram;
2020
zephyr,ieee802154 = &ieee802154;
21+
zephyr,boot-mode = &boot_mode0;
2122
};
2223
};
2324

@@ -91,6 +92,16 @@
9192
status = "okay";
9293
};
9394

95+
&gpregret1 {
96+
status = "okay";
97+
98+
boot_mode0: boot_mode@0 {
99+
compatible = "zephyr,retention";
100+
status = "okay";
101+
reg = <0x0 0x1>;
102+
};
103+
};
104+
94105
&spi00 {
95106
status = "okay";
96107
cs-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;

0 commit comments

Comments
 (0)