Skip to content

Commit 33f08a6

Browse files
dssengfabiobaltieri
authored andcommitted
dts: boards: various: remove code-partition for RP2350
Updated linker scripts no longer necessitate that. Users who employ a bootloader in their design should be able to adjust partitioning more easily, removing IMAGE_DEF with a Kconfig if needed. Signed-off-by: Dmitrii Sharshakov <[email protected]>
1 parent cbe6a71 commit 33f08a6

File tree

4 files changed

+0
-108
lines changed

4 files changed

+0
-108
lines changed

boards/kws/pico2_spe/pico2_spe.dtsi

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
zephyr,flash = &flash0;
1717
zephyr,console = &uart0;
1818
zephyr,shell-uart = &uart0;
19-
zephyr,code-partition = &code_partition;
2019
};
2120

2221
aliases {
@@ -59,33 +58,6 @@
5958

6059
&flash0 {
6160
reg = <0x10000000 DT_SIZE_M(4)>;
62-
63-
partitions {
64-
compatible = "fixed-partitions";
65-
#address-cells = <1>;
66-
#size-cells = <1>;
67-
68-
/* Reserved memory for an image definition block. The block is much
69-
* smaller than 256 bytes, but in practice the linker places the vector
70-
* table at a much larger alignment offset.
71-
*/
72-
image_def: partition@0 {
73-
label = "image_def";
74-
reg = <0x00000000 0x100>;
75-
read-only;
76-
};
77-
78-
/*
79-
* Usable flash. Starts at 0x100, after the image definition block.
80-
* The partition size is 4MB minus the 0x100 bytes taken by the
81-
* image definition.
82-
*/
83-
code_partition: partition@100 {
84-
label = "code-partition";
85-
reg = <0x100 (DT_SIZE_M(4) - 0x100)>;
86-
read-only;
87-
};
88-
};
8961
};
9062

9163
&uart0 {

boards/pimoroni/pico_plus2/pico_plus2.dtsi

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
zephyr,flash = &flash0;
1919
zephyr,console = &uart0;
2020
zephyr,shell-uart = &uart0;
21-
zephyr,code-partition = &code_partition;
2221
};
2322

2423
aliases {
@@ -92,33 +91,6 @@
9291

9392
&flash0 {
9493
reg = <0x10000000 DT_SIZE_M(16)>;
95-
96-
partitions {
97-
compatible = "fixed-partitions";
98-
#address-cells = <1>;
99-
#size-cells = <1>;
100-
101-
/* Reserved memory for an image definition block. The block is much
102-
* smaller than 256 bytes, but in practice the linker places the vector
103-
* table at a much larger alignment offset.
104-
*/
105-
image_def: partition@0 {
106-
label = "image_def";
107-
reg = <0x00000000 0x100>;
108-
read-only;
109-
};
110-
111-
/*
112-
* Usable flash. Starts at 0x100, after the image definition block.
113-
* The partition size is 16MB minus the 0x100 bytes taken by the
114-
* image definition.
115-
*/
116-
code_partition: partition@100 {
117-
label = "code-partition";
118-
reg = <0x100 (DT_SIZE_M(16) - 0x100)>;
119-
read-only;
120-
};
121-
};
12294
};
12395

12496
&uart0 {

boards/raspberrypi/rpi_pico2/rpi_pico2.dtsi

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
zephyr,flash-controller = &qmi;
2020
zephyr,console = &uart0;
2121
zephyr,shell-uart = &uart0;
22-
zephyr,code-partition = &code_partition;
2322
};
2423

2524
aliases {
@@ -62,33 +61,6 @@
6261

6362
&flash0 {
6463
reg = <0x10000000 DT_SIZE_M(4)>;
65-
66-
partitions {
67-
compatible = "fixed-partitions";
68-
#address-cells = <1>;
69-
#size-cells = <1>;
70-
71-
/* Reserved memory for an image definition block. The block is much
72-
* smaller than 256 bytes, but in practice the linker places the vector
73-
* table at a much larger alignment offset.
74-
*/
75-
image_def: partition@0 {
76-
label = "image_def";
77-
reg = <0x00000000 0x100>;
78-
read-only;
79-
};
80-
81-
/*
82-
* Usable flash. Starts at 0x100, after the image definition block.
83-
* The partition size is 4MB minus the 0x100 bytes taken by the
84-
* image definition.
85-
*/
86-
code_partition: partition@100 {
87-
label = "code-partition";
88-
reg = <0x100 (DT_SIZE_M(4) - 0x100)>;
89-
read-only;
90-
};
91-
};
9264
};
9365

9466
&uart0 {

boards/wiznet/w5500_evb_pico2/w5500_evb_pico2.dtsi

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
zephyr,flash = &flash0;
1919
zephyr,console = &uart0;
2020
zephyr,shell-uart = &uart0;
21-
zephyr,code-partition = &code_partition;
2221
};
2322

2423
pico_header: connector {
@@ -85,29 +84,6 @@
8584
* the second stage bootloader
8685
*/
8786
reg = <0x10000000 DT_SIZE_M(16)>;
88-
89-
partitions {
90-
compatible = "fixed-partitions";
91-
#address-cells = <1>;
92-
#size-cells = <1>;
93-
94-
/* Reserved memory for the second stage bootloader */
95-
second_stage_bootloader: partition@0 {
96-
label = "second_stage_bootloader";
97-
reg = <0x00000000 0x100>;
98-
read-only;
99-
};
100-
101-
/*
102-
* Usable flash. Starts at 0x100, after the bootloader. The partition
103-
* size is 16MB minus the 0x100 bytes taken by the bootloader.
104-
*/
105-
code_partition: partition@100 {
106-
label = "code-partition";
107-
reg = <0x100 (DT_SIZE_M(16) - 0x100)>;
108-
read-only;
109-
};
110-
};
11187
};
11288

11389
&uart0 {

0 commit comments

Comments
 (0)