Skip to content

Commit b306b24

Browse files
Marek Matejdkalowsk
authored andcommitted
dts: espressif: Add flash size options to partition tables
Update the partition table list with 16MB and 32MB options. Signed-off-by: Marek Matej <[email protected]> (cherry picked from commit 2dc2cde)
1 parent 2fe01e9 commit b306b24

8 files changed

+392
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* 16MB flash partition table */
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_partition: partition@0 {
15+
label = "mcuboot";
16+
reg = <0x0 DT_SIZE_K(64)>;
17+
};
18+
19+
slot0_partition: partition@20000 {
20+
label = "image-0";
21+
reg = <0x20000 DT_SIZE_K(6080)>;
22+
};
23+
24+
slot0_appcpu_partition: partition@610000 {
25+
label = "image-0-appcpu";
26+
reg = <0x610000 DT_SIZE_K(1920)>;
27+
};
28+
29+
slot1_partition: partition@7F0000 {
30+
label = "image-1";
31+
reg = <0x7F0000 DT_SIZE_K(6080)>;
32+
};
33+
34+
slot1_appcpu_partition: partition@DE0000 {
35+
label = "image-1-appcpu";
36+
reg = <0xDE0000 DT_SIZE_K(1920)>;
37+
};
38+
39+
storage_partition: partition@FC0000 {
40+
label = "storage";
41+
reg = <0xFC0000 DT_SIZE_K(128)>;
42+
};
43+
44+
scratch_partition: partition@FE0000 {
45+
label = "image-scratch";
46+
reg = <0xFE0000 DT_SIZE_K(64)>;
47+
};
48+
49+
coredump_partition: partition@FF0000 {
50+
label = "coredump-partition";
51+
reg = <0xFF0000 DT_SIZE_K(4)>;
52+
};
53+
};
54+
};
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* 32MB flash partition table */
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_partition: partition@0 {
15+
label = "mcuboot";
16+
reg = <0x0 DT_SIZE_K(64)>;
17+
};
18+
19+
slot0_partition: partition@20000 {
20+
label = "image-0";
21+
reg = <0x20000 DT_SIZE_K(12352)>;
22+
};
23+
24+
slot0_appcpu_partition: partition@C30000 {
25+
label = "image-0-appcpu";
26+
reg = <0xC30000 DT_SIZE_K(3840)>;
27+
};
28+
29+
slot1_partition: partition@FF0000 {
30+
label = "image-1";
31+
reg = <0xFF0000 DT_SIZE_K(12352)>;
32+
};
33+
34+
slot1_appcpu_partition: partition@1C00000 {
35+
label = "image-1-appcpu";
36+
reg = <0x1C00000 DT_SIZE_K(3840)>;
37+
};
38+
39+
storage_partition: partition@1FC0000 {
40+
label = "storage";
41+
reg = <0x1FC0000 DT_SIZE_K(128)>;
42+
};
43+
44+
scratch_partition: partition@1FE0000 {
45+
label = "image-scratch";
46+
reg = <0x1FE0000 DT_SIZE_K(64)>;
47+
};
48+
49+
coredump_partition: partition@1FF0000 {
50+
label = "coredump-partition";
51+
reg = <0x1FF0000 DT_SIZE_K(4)>;
52+
};
53+
};
54+
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* 16MB flash partition table */
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_partition: partition@0 {
15+
label = "mcuboot";
16+
reg = <0x0 DT_SIZE_K(64)>;
17+
};
18+
19+
slot0_partition: partition@20000 {
20+
label = "image-0";
21+
reg = <0x20000 DT_SIZE_K(8000)>;
22+
};
23+
24+
slot1_partition: partition@7F0000 {
25+
label = "image-1";
26+
reg = <0x7F0000 DT_SIZE_K(8000)>;
27+
};
28+
29+
storage_partition: partition@FC0000 {
30+
label = "storage";
31+
reg = <0xFC0000 DT_SIZE_K(128)>;
32+
};
33+
34+
scratch_partition: partition@FE0000 {
35+
label = "image-scratch";
36+
reg = <0xFE0000 DT_SIZE_K(64)>;
37+
};
38+
39+
coredump_partition: partition@FF0000 {
40+
label = "coredump-partition";
41+
reg = <0xFF0000 DT_SIZE_K(4)>;
42+
};
43+
};
44+
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* 32MB flash partition table */
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_partition: partition@0 {
15+
label = "mcuboot";
16+
reg = <0x0 DT_SIZE_K(64)>;
17+
};
18+
19+
slot0_partition: partition@20000 {
20+
label = "image-0";
21+
reg = <0x20000 DT_SIZE_K(16192)>;
22+
};
23+
24+
slot1_partition: partition@FF0000 {
25+
label = "image-1";
26+
reg = <0xFF0000 DT_SIZE_K(16192)>;
27+
};
28+
29+
storage_partition: partition@1FC0000 {
30+
label = "storage";
31+
reg = <0x1FC0000 DT_SIZE_K(128)>;
32+
};
33+
34+
scratch_partition: partition@1FE0000 {
35+
label = "image-scratch";
36+
reg = <0x1FE0000 DT_SIZE_K(64)>;
37+
};
38+
39+
coredump_partition: partition@1FF0000 {
40+
label = "coredump-partition";
41+
reg = <0x1FF0000 DT_SIZE_K(4)>;
42+
};
43+
};
44+
};
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* 16MB flash partition table */
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_partition: partition@1000 {
15+
label = "mcuboot";
16+
reg = <0x1000 DT_SIZE_K(60)>;
17+
};
18+
19+
slot0_partition: partition@20000 {
20+
label = "image-0";
21+
reg = <0x20000 DT_SIZE_K(6080)>;
22+
};
23+
24+
slot0_appcpu_partition: partition@610000 {
25+
label = "image-0-appcpu";
26+
reg = <0x610000 DT_SIZE_K(1920)>;
27+
};
28+
29+
slot1_partition: partition@7F0000 {
30+
label = "image-1";
31+
reg = <0x7F0000 DT_SIZE_K(6080)>;
32+
};
33+
34+
slot1_appcpu_partition: partition@DE0000 {
35+
label = "image-1-appcpu";
36+
reg = <0xDE0000 DT_SIZE_K(1920)>;
37+
};
38+
39+
storage_partition: partition@FC0000 {
40+
label = "storage";
41+
reg = <0xFC0000 DT_SIZE_K(128)>;
42+
};
43+
44+
scratch_partition: partition@FE0000 {
45+
label = "image-scratch";
46+
reg = <0xFE0000 DT_SIZE_K(64)>;
47+
};
48+
49+
coredump_partition: partition@FF0000 {
50+
label = "coredump-partition";
51+
reg = <0xFF0000 DT_SIZE_K(4)>;
52+
};
53+
};
54+
};
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* 32MB flash partition table */
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_partition: partition@1000 {
15+
label = "mcuboot";
16+
reg = <0x1000 DT_SIZE_K(60)>;
17+
};
18+
19+
slot0_partition: partition@20000 {
20+
label = "image-0";
21+
reg = <0x20000 DT_SIZE_K(12352)>;
22+
};
23+
24+
slot0_appcpu_partition: partition@C30000 {
25+
label = "image-0-appcpu";
26+
reg = <0xC24000 DT_SIZE_K(3840)>;
27+
};
28+
29+
slot1_partition: partition@FF0000 {
30+
label = "image-1";
31+
reg = <0xFF0000 DT_SIZE_K(12352)>;
32+
};
33+
34+
slot1_appcpu_partition: partition@1C00000 {
35+
label = "image-1-appcpu";
36+
reg = <0x1C00000 DT_SIZE_K(3840)>;
37+
};
38+
39+
storage_partition: partition@1FC0000 {
40+
label = "storage";
41+
reg = <0x1FC0000 DT_SIZE_K(128)>;
42+
};
43+
44+
scratch_partition: partition@1FE0000 {
45+
label = "image-scratch";
46+
reg = <0x1FE0000 DT_SIZE_K(64)>;
47+
};
48+
49+
coredump_partition: partition@1FF0000 {
50+
label = "coredump-partition";
51+
reg = <0x1FF0000 DT_SIZE_K(4)>;
52+
};
53+
};
54+
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* 16MB flash partition table */
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_partition: partition@1000 {
15+
label = "mcuboot";
16+
reg = <0x1000 DT_SIZE_K(60)>;
17+
};
18+
19+
slot0_partition: partition@20000 {
20+
label = "image-0";
21+
reg = <0x20000 DT_SIZE_K(8000)>;
22+
};
23+
24+
slot1_partition: partition@7F0000 {
25+
label = "image-1";
26+
reg = <0x7F0000 DT_SIZE_K(8000)>;
27+
};
28+
29+
storage_partition: partition@FC0000 {
30+
label = "storage";
31+
reg = <0xFC0000 DT_SIZE_K(128)>;
32+
};
33+
34+
scratch_partition: partition@FE0000 {
35+
label = "image-scratch";
36+
reg = <0xFE0000 DT_SIZE_K(64)>;
37+
};
38+
39+
coredump_partition: partition@FF0000 {
40+
label = "coredump-partition";
41+
reg = <0xFF0000 DT_SIZE_K(4)>;
42+
};
43+
};
44+
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* 32MB flash partition table */
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_partition: partition@1000 {
15+
label = "mcuboot";
16+
reg = <0x1000 DT_SIZE_K(60)>;
17+
};
18+
19+
slot0_partition: partition@20000 {
20+
label = "image-0";
21+
reg = <0x20000 DT_SIZE_K(16192)>;
22+
};
23+
24+
slot1_partition: partition@FF0000 {
25+
label = "image-1";
26+
reg = <0xFF0000 DT_SIZE_K(16192)>;
27+
};
28+
29+
storage_partition: partition@1FC0000 {
30+
label = "storage";
31+
reg = <0x1FC0000 DT_SIZE_K(128)>;
32+
};
33+
34+
scratch_partition: partition@1FE0000 {
35+
label = "image-scratch";
36+
reg = <0x1FE0000 DT_SIZE_K(64)>;
37+
};
38+
39+
coredump_partition: partition@1FF0000 {
40+
label = "coredump-partition";
41+
reg = <0x1FF0000 DT_SIZE_K(4)>;
42+
};
43+
};
44+
};

0 commit comments

Comments
 (0)