Skip to content

Commit 578a701

Browse files
jlbwoodskartben
authored andcommitted
dts: vendor: raspberrypi: Add partitions for Raspberry Pi
Add partitions for Raspberry Pi boards with default to use Storage partitions and option to use Sysbuild partitions. Signed-off-by: John Lin <john.lin@beechwoods.com>
1 parent 48854a8 commit 578a701

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Beechwoods Software, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <raspberrypi/partitions_2M_storage.dtsi>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 Beechwoods Software, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
status = "okay";
9+
10+
partitions {
11+
compatible = "fixed-partitions";
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
15+
/*
16+
* Usable flash. Starts at 0x100, after the bootloader. The partition
17+
* size is 1MB minus the 0x100 bytes taken by the bootloader.
18+
*/
19+
code_partition: partition@100 {
20+
label = "code";
21+
reg = <0x100 (DT_SIZE_M(1) - 0x100)>;
22+
read-only;
23+
};
24+
25+
storage_partition: partition@100000 {
26+
label = "storage";
27+
reg = <0x100000 DT_SIZE_M(1)>;
28+
};
29+
};
30+
};
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Beechwoods Software, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
status = "okay";
9+
10+
partitions {
11+
compatible = "fixed-partitions";
12+
#address-cells = < 0x1 >;
13+
#size-cells = < 0x1 >;
14+
15+
second_stage_bootloader: partition@0 {
16+
label = "second_stage_bootloader";
17+
reg = < 0x0 0x100 >;
18+
read-only;
19+
};
20+
21+
boot_partition: partition@100 {
22+
label = "mcuboot";
23+
reg = < 0x100 0xfe00 >;
24+
};
25+
26+
slot0_partition: partition@10000 {
27+
label = "image-0";
28+
reg = < 0x10000 0xd0000 >;
29+
};
30+
31+
slot1_partition: partition@E0000 {
32+
label = "image-1";
33+
reg = < 0xe0000 0xd0000 >;
34+
};
35+
36+
storage_partition: partition@1B0000 {
37+
label = "storage";
38+
reg = < 0x1b0000 0x50000 >;
39+
};
40+
};
41+
};

0 commit comments

Comments
 (0)