diff --git a/boards/nxp/frdm_ke17z/frdm_ke17z.dts b/boards/nxp/frdm_ke17z/frdm_ke17z.dts index fb65ed9670c..04cea9e738e 100644 --- a/boards/nxp/frdm_ke17z/frdm_ke17z.dts +++ b/boards/nxp/frdm_ke17z/frdm_ke17z.dts @@ -74,3 +74,31 @@ &gpioe { status = "okay"; }; + +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + boot_partition: partition@0 { + label = "mcuboot"; + reg = <0x0 DT_SIZE_K(44)>; + }; + /* The MCUBoot swap-move algorithm uses the last 2 sectors + * of the primary slot0 for swap status and move. + */ + slot0_partition: partition@b000 { + label = "image-0"; + reg = <0xb000 (DT_SIZE_K(98) + DT_SIZE_K(4))>; + }; + slot1_partition: partition@24800 { + label = "image-1"; + reg = <0x24800 DT_SIZE_K(98)>; + }; + storage_partition: partition@3d000 { + label = "storage"; + reg = <0x3d000 DT_SIZE_K(12)>; + }; + }; +}; diff --git a/boards/nxp/frdm_ke17z512/frdm_ke17z512.dts b/boards/nxp/frdm_ke17z512/frdm_ke17z512.dts index 704ef4811bc..5040cebe3c9 100644 --- a/boards/nxp/frdm_ke17z512/frdm_ke17z512.dts +++ b/boards/nxp/frdm_ke17z512/frdm_ke17z512.dts @@ -86,3 +86,32 @@ pinctrl-0 = <&lpi2c1_default>; pinctrl-names = "default"; }; + +&flash0 { + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + boot_partition: partition@0 { + label = "mcuboot"; + reg = <0x00000000 DT_SIZE_K(64)>; + read-only; + }; + /* The MCUBoot swap-move algorithm uses the last 2 sectors + * of the primary slot0 for swap status and move. + */ + slot0_partition: partition@10000 { + label = "image-0"; + reg = <0x00010000 (DT_SIZE_K(202) + DT_SIZE_K(4))>; + }; + slot1_partition: partition@43800 { + label = "image-1"; + reg = <0x00043800 DT_SIZE_K(202)>; + }; + storage_partition: partition@76000 { + label = "storage"; + reg = <0x00076000 DT_SIZE_K(40)>; + }; + }; +};