Skip to content

Commit c960096

Browse files
jonathannilsencarlescufi
authored andcommitted
samples: update according to new nrf54h20 RAM memory map
Align with changes to the nrf54h20 RAM memory layout where nodes like cpuapp_ram0x_region, cpurad_ram0x_region, ram21_region, cpuppr_ram3x_region etc. no longer exist, and cpuapp_data now starts at the beginning of RAM0x (2f000000) and has a much larger size (760K). Signed-off-by: Jonathan Nilsen <[email protected]>
1 parent 00cd567 commit c960096

File tree

37 files changed

+113
-648
lines changed

37 files changed

+113
-648
lines changed

applications/machine_learning/configuration/nrf54h20dk_nrf54h20_cpuapp/app.overlay

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@
4040
label = "Green LED 3";
4141
};
4242
};
43+
44+
reserved-memory {
45+
cpuppr_code_data: memory@2fc00000 {
46+
reg = <0x2fc00000 0xf200>;
47+
};
48+
49+
ram3x_agg_area0: memory@2fc0f200 {
50+
reg = <0x2fc0f200 0x600>;
51+
};
52+
};
4353
};
4454

4555
&cpuppr_vevif {
@@ -50,27 +60,17 @@ ipc1: &cpuapp_cpuppr_ipc {
5060
status = "okay";
5161
};
5262

53-
&cpuppr_ram3x_region {
54-
cpuppr_code_data: memory@0 {
55-
reg = <0x0 0xf200>;
56-
};
57-
58-
ram3x_agg_area0: memory@f200{
59-
reg = <0xf200 0x600>;
60-
};
61-
};
62-
6363
/delete-node/ &cpuapp_slot0_partition;
6464
/delete-node/ &cpurad_slot0_partition;
6565

6666
&mram1x {
6767
partitions {
68-
cpuapp_slot0_partition: slot0_partition: partition@30000 {
68+
slot0_partition: cpuapp_slot0_partition: partition@30000 {
6969
reg = <0x30000 0x82000>;
7070
};
7171

72-
cpurad_slot0_partition: partition@82000 {
73-
reg = < 0x82000 0x62000 >;
72+
cpurad_slot0_partition: partition@b2000 {
73+
reg = <0xb2000 0x32000>;
7474
};
7575
};
7676
};

applications/machine_learning/remote/boards/nrf54h20dk_nrf54h20_cpuppr.overlay

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@
1414
memory-region = <&ram3x_agg_area0>;
1515
status = "okay";
1616
};
17-
};
1817

19-
/*
20-
* Place aggregator buffers in PPR memory region.
21-
*/
22-
&cpuppr_ram3x_region {
23-
cpuppr_code_data: memory@0 {
24-
reg = <0x0 0xf200>;
25-
};
2618

27-
ram3x_agg_area0: memory@f200{
28-
reg = <0xf200 0x600>;
19+
reserved-memory {
20+
cpuppr_code_data: memory@2fc00000 {
21+
reg = <0x2fc00000 0xf200>;
22+
};
23+
24+
ram3x_agg_area0: memory@2fc0f200 {
25+
reg = <0x2fc0f200 0x600>;
26+
};
2927
};
3028
};
3129

@@ -39,8 +37,8 @@
3937
reg = <0x30000 0x82000>;
4038
};
4139

42-
cpurad_slot0_partition: partition@82000 {
43-
reg = <0xa2000 0x32000>;
40+
cpurad_slot0_partition: partition@b2000 {
41+
reg = <0xb2000 0x32000>;
4442
};
4543
};
4644
};

doc/nrf/drivers/mspi_sqspi.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ See the following configuration example for the nRF54L15 SoC:
6969
7070
/ {
7171
reserved-memory {
72-
#address-cells = <1>;
73-
#size-cells = <1>;
74-
ranges;
75-
7672
softperiph_ram: memory@2003c000 {
7773
reg = <0x2003c000 0x4000>;
7874
ranges = <0 0x2003c000 0x4000>;
@@ -145,31 +141,35 @@ The following example configuration for the nRF54H20 SoC sets up the necessary p
145141
/delete-node/ &cpuflpr_cpuapp_ipc_shm;
146142
/delete-node/ &cpuapp_cpuflpr_ipc;
147143
148-
&ram21_region {
149-
status = "okay";
150-
151-
softperiph_ram: memory@0 {
152-
reg = <0 0x4000>;
153-
ranges;
144+
/ {
145+
reserved-memory {
154146
#address-cells = <1>;
155147
#size-cells = <1>;
148+
ranges;
156149
157-
sqspi: sqspi@3e00 {
158-
compatible = "nordic,nrf-sqspi";
150+
softperiph_ram: memory@2f890000 {
151+
reg = <0x2f890000 0x4000>;
152+
ranges;
159153
#address-cells = <1>;
160-
#size-cells = <0>;
161-
reg = <0x3e00 0x200>;
162-
zephyr,pm-device-runtime-auto;
163-
memory-regions = <&sqspi_buffers>;
154+
#size-cells = <1>;
155+
156+
dut: sqspi: sqspi@3e00 {
157+
compatible = "nordic,nrf-sqspi";
158+
#address-cells = <1>;
159+
#size-cells = <0>;
160+
reg = <0x3e00 0x200>;
161+
zephyr,pm-device-runtime-auto;
162+
memory-regions = <&sqspi_buffers>;
163+
};
164164
};
165-
};
166165
167-
sqspi_buffers: memory@4000 {
168-
compatible = "zephyr,memory-region";
169-
reg = <0x4000 0x4000>;
170-
#memory-region-cells = <0>;
171-
zephyr,memory-region = "SQSPI_BUFFERS";
172-
zephyr,memory-attr = <DT_MEM_CACHEABLE>;
166+
sqspi_buffers: memory@2f894000 {
167+
compatible = "zephyr,memory-region";
168+
reg = <0x2f894000 0x4000>;
169+
#memory-region-cells = <0>;
170+
zephyr,memory-region = "SQSPI_BUFFERS";
171+
zephyr,memory-attr = <DT_MEM_CACHEABLE>;
172+
};
173173
};
174174
};
175175

samples/benchmarks/coremark/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
status = "okay";
4141
};
4242

43-
&cpuppr_ram3x_region {
44-
status = "okay";
45-
};
46-
4743
/* DTS nodes required for the STM standalone logging, imported from the nordic-log-stm snippet. */
4844
&tbm {
4945
status = "okay";

samples/caf_sensor_manager/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@
2424
buf_data_length = <240>;
2525
sample_size = <3>;
2626
};
27+
28+
reserved-memory {
29+
cpuppr_code_data: memory@2fc00000 {
30+
reg = <0x2fc00000 0xf200>;
31+
};
32+
33+
ram3x_agg_area0: memory@2fc0f200 {
34+
reg = <0x2fc0f200 0x600>;
35+
};
36+
};
2737
};
2838

2939
/* Enabled nodes required by IPC
@@ -42,16 +52,6 @@ ipc0: &cpuapp_cpuppr_ipc {
4252
status = "okay";
4353
};
4454

45-
&cpuppr_ram3x_region {
46-
cpuppr_code_data: memory@0 {
47-
reg = <0x0 0xf200>;
48-
};
49-
50-
ram3x_agg_area0: memory@f200 {
51-
reg = <0xf200 0x600>;
52-
};
53-
};
54-
5555
/* UART and RAM3 instance used by PPR should be enabled at build time
5656
* using nordic-ppr snippet.
5757
*/

samples/caf_sensor_manager/remote/boards/nrf54h20dk_nrf54h20_cpuppr.overlay

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
sample_size = <3>;
1919
memory-region = <&ram3x_agg_area0>;
2020
};
21-
};
2221

23-
/* Place aggregator buffers in PPR memory region. */
24-
&cpuppr_ram3x_region {
25-
cpuppr_code_data: memory@0 {
26-
reg = <0x0 0xf200>;
27-
};
22+
reserved-memory {
23+
/* Place aggregator buffers in PPR memory region. */
24+
cpuppr_code_data: memory@2fc00000 {
25+
reg = <0x2fc00000 0xf200>;
26+
};
2827

29-
ram3x_agg_area0: memory@f200 {
30-
reg = <0xf200 0x600>;
28+
ram3x_agg_area0: memory@2fc0f200 {
29+
reg = <0x2fc0f200 0x600>;
30+
};
3131
};
3232
};
3333

samples/crypto/aes_cbc/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 0 additions & 21 deletions
This file was deleted.

samples/crypto/aes_ccm/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 0 additions & 21 deletions
This file was deleted.

samples/crypto/aes_ctr/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 0 additions & 21 deletions
This file was deleted.

samples/crypto/aes_gcm/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)