Skip to content

Commit e1dece7

Browse files
boards: atmel: sam4e_xpro: add default partition table
Add default partition table used with common apps like test suites and the bootloader. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 7a9dc10 commit e1dece7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

boards/atmel/sam/sam4e_xpro/sam4e_xpro.dts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
zephyr,shell-uart = &uart0;
3030
zephyr,sram = &sram0;
3131
zephyr,flash = &flash0;
32+
zephyr,code-partition = &slot0_partition;
3233
};
3334

3435
leds {
@@ -253,3 +254,31 @@ ext3_i2c: &twi0 {
253254

254255
ext3_serial: &uart1 {
255256
};
257+
258+
&flash0 {
259+
partitions {
260+
compatible = "fixed-partitions";
261+
#address-cells = <1>;
262+
#size-cells = <1>;
263+
264+
boot_partition: partition@0 {
265+
label = "mcuboot";
266+
reg = <0x00000000 0x10000>;
267+
};
268+
269+
slot0_partition: partition@10000 {
270+
label = "image-0";
271+
reg = <0x00010000 0x74000>;
272+
};
273+
274+
slot1_partition: partition@84000 {
275+
label = "image-1";
276+
reg = <0x00084000 0x74000>;
277+
};
278+
279+
storage_partition: partition@f8000 {
280+
label = "storage";
281+
reg = <0x000f8000 0x00008000>;
282+
};
283+
};
284+
};

0 commit comments

Comments
 (0)