From e9ba5a09e7fb1b98cedcdbfe7945565b0c6a9a62 Mon Sep 17 00:00:00 2001 From: Jamel Arbi Date: Wed, 16 Oct 2024 14:17:49 +0200 Subject: [PATCH] boards: nxp: frdm_rw612: add flash partitions Add flash partirions for NXP FRDM RW612 board Signed-off-by: Jamel Arbi --- boards/nxp/frdm_rw612/frdm_rw612.dts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/boards/nxp/frdm_rw612/frdm_rw612.dts b/boards/nxp/frdm_rw612/frdm_rw612.dts index 47a7bbd10f8..af0aac2372a 100644 --- a/boards/nxp/frdm_rw612/frdm_rw612.dts +++ b/boards/nxp/frdm_rw612/frdm_rw612.dts @@ -73,6 +73,32 @@ erase-block-size = <4096>; write-block-size = <1>; spi-max-frequency = <104000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + boot_partition: partition@0 { + label = "mcuboot"; + reg = <0x00000000 DT_SIZE_K(128)>; + }; + /* The MCUBoot swap-move algorithm uses the last 2 sectors + * of the primary slot0 for swap status and move. + */ + slot0_partition: partition@20000 { + label = "image-0"; + reg = <0x00020000 (DT_SIZE_M(3) + DT_SIZE_K(2 * 4))>; + }; + slot1_partition: partition@323000 { + label = "image-1"; + reg = <0x00323000 DT_SIZE_M(3)>; + }; + storage_partition: partition@623000 { + label = "storage"; + reg = <0x00623000 (DT_SIZE_M(58) - DT_SIZE_K(136))>; + }; + }; }; aps6404l: aps6404l@2 { compatible = "nxp,imx-flexspi-aps6404l";