diff --git a/boards/nxp/frdm_mcxa153/frdm_mcxa153.dts b/boards/nxp/frdm_mcxa153/frdm_mcxa153.dts index aea4a730a8d..3ab90983c24 100644 --- a/boards/nxp/frdm_mcxa153/frdm_mcxa153.dts +++ b/boards/nxp/frdm_mcxa153/frdm_mcxa153.dts @@ -26,6 +26,7 @@ zephyr,sram = &sram0; zephyr,flash = &flash; zephyr,flash-controller = &fmu; + zephyr,code-partition = &slot0_partition; zephyr,console = &lpuart0; zephyr,shell-uart = &lpuart0; }; @@ -66,6 +67,32 @@ }; }; +&flash { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + boot_partition: partition@0 { + label = "mcuboot"; + reg = <0x00000000 DT_SIZE_K(32)>; + read-only; + }; + slot0_partition: partition@8000 { + label = "image-0"; + reg = <0x00008000 DT_SIZE_K(40)>; + }; + slot1_partition: partition@12000 { + label = "image-1"; + reg = <0x00012000 DT_SIZE_K(40)>; + }; + storage_partition: partition@1C000 { + label = "storage"; + reg = <0x0001C000 DT_SIZE_K(16)>; + }; + }; +}; + &gpio0 { status = "okay"; }; diff --git a/boards/nxp/frdm_mcxa153/frdm_mcxa153.yaml b/boards/nxp/frdm_mcxa153/frdm_mcxa153.yaml index 9272b451bf0..f607a093f63 100644 --- a/boards/nxp/frdm_mcxa153/frdm_mcxa153.yaml +++ b/boards/nxp/frdm_mcxa153/frdm_mcxa153.yaml @@ -15,6 +15,7 @@ toolchain: - gnuarmemb supported: - dma + - flash - gpio - uart vendor: nxp