From f913639d0096a58333cd76ad9020bcc1fe0810d6 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 12 Jul 2017 09:55:00 -0400 Subject: [PATCH] dts: nrf52840_pca10056: add flash partitions Analogously to the frdm_k64f, add flash partitions for the nrf52840_pca10056. Signed-off-by: Marti Bolivar --- dts/arm/nrf52840_pca10056.dts | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/dts/arm/nrf52840_pca10056.dts b/dts/arm/nrf52840_pca10056.dts index 20a9e83161b..bd9599271fb 100644 --- a/dts/arm/nrf52840_pca10056.dts +++ b/dts/arm/nrf52840_pca10056.dts @@ -24,3 +24,43 @@ current-speed = <115200>; status = "ok"; }; + +&flash0 { + /* + * If chosen's zephyr,code-partition + * is unset, the image will be linked + * into the entire flash device. If + * it points to an individual + * partition, the code will be linked + * to, and restricted to that + * partition. + */ + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + boot_partition: partition@0 { + label = "mcuboot"; + reg = <0x000000000 0x00008000>; + }; + slot0_partition: partition@8000 { + label = "image-0"; + reg = <0x00008000 0x00006c000>; + }; + slot1_partition: partition@74000 { + label = "image-1"; + reg = <0x00074000 0x00006c000>; + }; + scratch_partition: partition@e0000 { + label = "image-scratch"; + reg = <0x000e0000 0x0001d000>; + }; + + /* + * The flash starting at 0x000fd000 and ending at 0x000fffff + * (sectors 253 through 255) is reserved for use by the + * application. + */ + }; +};