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. + */ + }; +};