Skip to content

Commit 0210b39

Browse files
nordicjmlemrey
authored andcommitted
boards: nordic: Add retention using GPREGRET1 for boot mode
Enables GPREGRET1 and assigns it as a retention device for use with boot mode selection Signed-off-by: Jamie McCrae <[email protected]>
1 parent 406d564 commit 0210b39

File tree

6 files changed

+66
-0
lines changed

6 files changed

+66
-0
lines changed

boards/nordic/bm_nrf54l05_template/cpuapp_common.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
chosen {
1212
zephyr,flash-controller = &rram_controller;
13+
zephyr,boot-mode = &boot_mode0;
1314
};
1415
};
1516

@@ -24,6 +25,16 @@
2425
reg = <0x0 DT_SIZE_K(500)>;
2526
};
2627

28+
&gpregret1 {
29+
status = "okay";
30+
31+
boot_mode0: boot_mode@0 {
32+
compatible = "zephyr,retention";
33+
status = "okay";
34+
reg = <0x0 0x1>;
35+
};
36+
};
37+
2738
&grtc {
2839
owned-channels = <0 1 2 3 4 5 6 7 8 9 10 11>;
2940
/* Channels 7-11 reserved for Zero Latency IRQs, 3-4 for FLPR */

boards/nordic/bm_nrf54l10_template/cpuapp_common.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
chosen {
1212
zephyr,flash-controller = &rram_controller;
13+
zephyr,boot-mode = &boot_mode0;
1314
};
1415
};
1516

@@ -24,6 +25,16 @@
2425
reg = <0x0 DT_SIZE_K(1022)>;
2526
};
2627

28+
&gpregret1 {
29+
status = "okay";
30+
31+
boot_mode0: boot_mode@0 {
32+
compatible = "zephyr,retention";
33+
status = "okay";
34+
reg = <0x0 0x1>;
35+
};
36+
};
37+
2738
&grtc {
2839
owned-channels = <0 1 2 3 4 5 6 7 8 9 10 11>;
2940
/* Channels 7-11 reserved for Zero Latency IRQs, 3-4 for FLPR */

boards/nordic/bm_nrf54l15_template/cpuapp_common.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
chosen {
1212
zephyr,flash-controller = &rram_controller;
13+
zephyr,boot-mode = &boot_mode0;
1314
};
1415
};
1516

@@ -24,6 +25,16 @@
2425
reg = <0x0 DT_SIZE_K(1524)>;
2526
};
2627

28+
&gpregret1 {
29+
status = "okay";
30+
31+
boot_mode0: boot_mode@0 {
32+
compatible = "zephyr,retention";
33+
status = "okay";
34+
reg = <0x0 0x1>;
35+
};
36+
};
37+
2738
&grtc {
2839
owned-channels = <0 1 2 3 4 5 6 7 8 9 10 11>;
2940
/* Channels 7-11 reserved for Zero Latency IRQs, 3-4 for FLPR */

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l05_cpuapp_common.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
chosen {
1212
zephyr,flash-controller = &rram_controller;
13+
zephyr,boot-mode = &boot_mode0;
1314
};
1415
};
1516

@@ -24,6 +25,16 @@
2425
reg = <0x0 DT_SIZE_K(500)>;
2526
};
2627

28+
&gpregret1 {
29+
status = "okay";
30+
31+
boot_mode0: boot_mode@0 {
32+
compatible = "zephyr,retention";
33+
status = "okay";
34+
reg = <0x0 0x1>;
35+
};
36+
};
37+
2738
&grtc {
2839
owned-channels = <0 1 2 3 4 5 6 7 8 9 10 11>;
2940
/* Channels 7-11 reserved for Zero Latency IRQs, 3-4 for FLPR */

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l10_cpuapp_common.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
chosen {
1212
zephyr,flash-controller = &rram_controller;
13+
zephyr,boot-mode = &boot_mode0;
1314
};
1415
};
1516

@@ -24,6 +25,16 @@
2425
reg = <0x0 DT_SIZE_K(1022)>;
2526
};
2627

28+
&gpregret1 {
29+
status = "okay";
30+
31+
boot_mode0: boot_mode@0 {
32+
compatible = "zephyr,retention";
33+
status = "okay";
34+
reg = <0x0 0x1>;
35+
};
36+
};
37+
2738
&grtc {
2839
owned-channels = <0 1 2 3 4 5 6 7 8 9 10 11>;
2940
/* Channels 7-11 reserved for Zero Latency IRQs, 3-4 for FLPR */

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l15_cpuapp_common.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
chosen {
1212
zephyr,flash-controller = &rram_controller;
13+
zephyr,boot-mode = &boot_mode0;
1314
};
1415
};
1516

@@ -24,6 +25,16 @@
2425
reg = <0x0 DT_SIZE_K(1524)>;
2526
};
2627

28+
&gpregret1 {
29+
status = "okay";
30+
31+
boot_mode0: boot_mode@0 {
32+
compatible = "zephyr,retention";
33+
status = "okay";
34+
reg = <0x0 0x1>;
35+
};
36+
};
37+
2738
&grtc {
2839
owned-channels = <0 1 2 3 4 5 6 7 8 9 10 11>;
2940
/* Channels 7-11 reserved for Zero Latency IRQs, 3-4 for FLPR */

0 commit comments

Comments
 (0)