Skip to content

Commit 7ad79a8

Browse files
marekmatejnashif
authored andcommitted
dts: espressif: Partition tables
Add general purpose partition tables to prevent putting copied version of the same table into the every ESP32 board dts. Signed-off-by: Marek Matej <[email protected]>
1 parent 01354c0 commit 7ad79a8

16 files changed

+616
-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) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <espressif/partitions_0x0_amp_4M.dtsi>
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+
/* 2MB 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(576)>;
22+
};
23+
24+
slot0_appcpu_partition: partition@B0000 {
25+
label = "image-0-appcpu";
26+
reg = <0xB0000 DT_SIZE_K(256)>;
27+
};
28+
29+
slot1_partition: partition@F0000 {
30+
label = "image-1";
31+
reg = <0xF0000 DT_SIZE_K(576)>;
32+
};
33+
34+
slot1_appcpu_partition: partition@180000 {
35+
label = "image-1-appcpu";
36+
reg = <0x1a0000 DT_SIZE_K(256)>;
37+
};
38+
39+
storage_partition: partition@1C0000 {
40+
label = "storage";
41+
reg = <0x1C0000 DT_SIZE_K(128)>;
42+
};
43+
44+
scratch_partition: partition@1E0000 {
45+
label = "image-scratch";
46+
reg = <0x1E0000 DT_SIZE_K(64)>;
47+
};
48+
49+
coredump_partition: partition@1F0000 {
50+
label = "coredump-partition";
51+
reg = <0x1F0000 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+
/* 4MB 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(1344)>;
22+
};
23+
24+
slot0_appcpu_partition: partition@170000 {
25+
label = "image-0-appcpu";
26+
reg = <0x170000 DT_SIZE_K(512)>;
27+
};
28+
29+
slot1_partition: partition@1F0000 {
30+
label = "image-1";
31+
reg = <0x1F0000 DT_SIZE_K(1344)>;
32+
};
33+
34+
slot1_appcpu_partition: partition@340000 {
35+
label = "image-1-appcpu";
36+
reg = <0x340000 DT_SIZE_K(512)>;
37+
};
38+
39+
storage_partition: partition@3C0000 {
40+
label = "storage";
41+
reg = <0x3C0000 DT_SIZE_K(128)>;
42+
};
43+
44+
scratch_partition: partition@3E0000 {
45+
label = "image-scratch";
46+
reg = <0x3E0000 DT_SIZE_K(64)>;
47+
};
48+
49+
coredump_partition: partition@3F0000 {
50+
label = "coredump-partition";
51+
reg = <0x3F0000 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+
/* 8MB 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(3136)>;
22+
};
23+
24+
slot0_appcpu_partition: partition@330000 {
25+
label = "image-0-appcpu";
26+
reg = <0x330000 DT_SIZE_K(768)>;
27+
};
28+
29+
slot1_partition: partition@3F0000 {
30+
label = "image-1";
31+
reg = <0x3F0000 DT_SIZE_K(3136)>;
32+
};
33+
34+
slot1_appcpu_partition: partition@700000 {
35+
label = "image-1-appcpu";
36+
reg = <0x700000 DT_SIZE_K(768)>;
37+
};
38+
39+
storage_partition: partition@7C0000 {
40+
label = "storage";
41+
reg = <0x7C0000 DT_SIZE_K(128)>;
42+
};
43+
44+
scratch_partition: partition@7E0000 {
45+
label = "image-scratch";
46+
reg = <0x7E0000 DT_SIZE_K(64)>;
47+
};
48+
49+
coredump_partition: partition@7F0000 {
50+
label = "coredump-partition";
51+
reg = <0x7F0000 DT_SIZE_K(4)>;
52+
};
53+
};
54+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <espressif/partitions_0x0_default_4M.dtsi>
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+
/* 2MB 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(832)>;
22+
};
23+
24+
slot1_partition: partition@F0000 {
25+
label = "image-1";
26+
reg = <0xF0000 DT_SIZE_K(832)>;
27+
};
28+
29+
storage_partition: partition@1C0000 {
30+
label = "storage";
31+
reg = <0x1C0000 DT_SIZE_K(128)>;
32+
};
33+
34+
scratch_partition: partition@1E0000 {
35+
label = "image-scratch";
36+
reg = <0x1E0000 DT_SIZE_K(64)>;
37+
};
38+
39+
coredump_partition: partition@1F0000 {
40+
label = "coredump-partition";
41+
reg = <0x1F0000 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+
/* 4MB 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(1856)>;
22+
};
23+
24+
slot1_partition: partition@1F0000 {
25+
label = "image-1";
26+
reg = <0x1F0000 DT_SIZE_K(1856)>;
27+
};
28+
29+
storage_partition: partition@3C0000 {
30+
label = "storage";
31+
reg = <0x3C0000 DT_SIZE_K(128)>;
32+
};
33+
34+
scratch_partition: partition@3E0000 {
35+
label = "image-scratch";
36+
reg = <0x3E0000 DT_SIZE_K(64)>;
37+
};
38+
39+
coredump_partition: partition@3F0000 {
40+
label = "coredump-partition";
41+
reg = <0x3F0000 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+
/* 8MB 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(3904)>;
22+
};
23+
24+
slot1_partition: partition@3F0000 {
25+
label = "image-1";
26+
reg = <0x3F0000 DT_SIZE_K(3904)>;
27+
};
28+
29+
storage_partition: partition@7C0000 {
30+
label = "storage";
31+
reg = <0x7C0000 DT_SIZE_K(128)>;
32+
};
33+
34+
scratch_partition: partition@7E0000 {
35+
label = "image-scratch";
36+
reg = <0x7E0000 DT_SIZE_K(64)>;
37+
};
38+
39+
coredump_partition: partition@7F0000 {
40+
label = "coredump-partition";
41+
reg = <0x7F0000 DT_SIZE_K(4)>;
42+
};
43+
};
44+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <espressif/partitions_0x1000_amp_4M.dtsi>
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+
/* 2MB 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(576)>;
22+
};
23+
24+
slot0_appcpu_partition: partition@B0000 {
25+
label = "image-0-appcpu";
26+
reg = <0xB0000 DT_SIZE_K(256)>;
27+
};
28+
29+
slot1_partition: partition@F0000 {
30+
label = "image-1";
31+
reg = <0xF0000 DT_SIZE_K(576)>;
32+
};
33+
34+
slot1_appcpu_partition: partition@180000 {
35+
label = "image-1-appcpu";
36+
reg = <0x180000 DT_SIZE_K(256)>;
37+
};
38+
39+
storage_partition: partition@1C0000 {
40+
label = "storage";
41+
reg = <0x1C0000 DT_SIZE_K(128)>;
42+
};
43+
44+
scratch_partition: partition@1E0000 {
45+
label = "image-scratch";
46+
reg = <0x1E0000 DT_SIZE_K(64)>;
47+
};
48+
49+
coredump_partition: partition@1F0000 {
50+
label = "coredump-partition";
51+
reg = <0x1F0000 DT_SIZE_K(4)>;
52+
};
53+
};
54+
};

0 commit comments

Comments
 (0)