boards: microbit: Add flash partition definitions to dts

These are a direct copy from the nrf51_pca10028 board, since it's also
an nRF51 and has the same size flash.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2018-04-27 09:52:16 +03:00 committed by Anas Nashif
parent 63cb2334f0
commit 992070f12d

View file

@ -27,3 +27,39 @@
status = "ok";
clock-frequency = <I2C_BITRATE_FAST>;
};
&flash0 {
/*
* For more information, see:
* http://docs.zephyrproject.org/devices/dts/flash_partitions.html
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x8000>;
};
slot0_partition: partition@8000 {
label = "image-0";
reg = <0x00008000 0x1a000>;
};
slot1_partition: partition@22000 {
label = "image-1";
reg = <0x00022000 0x1a000>;
};
scratch_partition: partition@3c000 {
label = "image-scratch";
reg = <0x0003c000 0x2000>;
};
#if defined(CONFIG_FS_FLASH_MAP_STORAGE)
storage_partition: partition@3e000 {
label = "storage";
reg = <0x0003e000 0x00002000>;
};
#endif
};
};