|  | 
| 34 | 34 | 
 | 
| 35 | 35 | 		/* | 
| 36 | 36 | 		 * Following flash partition is compatible with requirements | 
| 37 |  | -		 * given in TFM configuration given for current board. | 
| 38 |  | -		 * It might require adjustment depending on evolutions on TFM. | 
|  | 37 | +		 * given in TF-M configuration given for current board. | 
|  | 38 | +		 * | 
|  | 39 | +		 * It might require adjustment depending on evolutions on TF-M. | 
| 39 | 40 | 		 */ | 
| 40 |  | - | 
| 41 | 41 | 		boot_partition: partition@0 { | 
| 42 | 42 | 			label = "mcuboot"; | 
| 43 |  | -			reg = <0x00000000 DT_SIZE_K(224)>; | 
|  | 43 | +			reg = <0x00000000 DT_SIZE_K(384)>; | 
| 44 | 44 | 			read-only; | 
| 45 | 45 | 		}; | 
| 46 | 46 | 
 | 
| 47 | 47 | 		/* Secure image primary slot */ | 
| 48 |  | -		slot0_partition: partition@38000 { | 
|  | 48 | +		slot0_partition: partition@60000 { | 
| 49 | 49 | 			label = "image-0"; | 
| 50 |  | -			reg = <0x00038000 DT_SIZE_K(384)>; | 
|  | 50 | +			reg = <0x00060000 DT_SIZE_K(512)>; | 
| 51 | 51 | 		}; | 
| 52 | 52 | 
 | 
| 53 | 53 | 		/* Non-secure image primary slot */ | 
| 54 |  | -		slot0_ns_partition: partition@98000 { | 
|  | 54 | +		slot0_ns_partition: partition@e0000 { | 
| 55 | 55 | 			label = "image-0-nonsecure"; | 
| 56 |  | -			reg = <0x00098000 DT_SIZE_K(512)>; | 
|  | 56 | +			reg = <0x000e0000 DT_SIZE_K(1024)>; | 
|  | 57 | +		}; | 
|  | 58 | + | 
|  | 59 | +		/* Internal Non Volatile Storage */ | 
|  | 60 | +		storage_partition: partition@1e0000 { | 
|  | 61 | +			label = "storage"; | 
|  | 62 | +			reg = <0x001e0000 DT_SIZE_K(128)>; | 
| 57 | 63 | 		}; | 
|  | 64 | +	}; | 
|  | 65 | +}; | 
|  | 66 | + | 
|  | 67 | +&mx25lm51245 { | 
|  | 68 | +	partitions { | 
|  | 69 | +		compatible = "fixed-partitions"; | 
|  | 70 | +		#address-cells = <1>; | 
|  | 71 | +		#size-cells = <1>; | 
| 58 | 72 | 
 | 
| 59 |  | -		/* Secure image secondary slot */ | 
| 60 |  | -		slot1_partition: partition@118000 { | 
|  | 73 | +		/* | 
|  | 74 | +		 * The flash partition (0 and 1) are aligned | 
|  | 75 | +		 * with the TF-M flash layout expectation. | 
|  | 76 | +		 */ | 
|  | 77 | +		slot1_partition: partition@0 { | 
| 61 | 78 | 			label = "image-1"; | 
| 62 |  | -			reg = <0x00118000 DT_SIZE_K(384)>; | 
|  | 79 | +			reg = <0x00000000 DT_SIZE_K(512)>; | 
| 63 | 80 | 		}; | 
| 64 | 81 | 
 | 
| 65 |  | -		/* Non-secure image secondary slot */ | 
| 66 |  | -		slot1_ns_partition: partition@178000 { | 
|  | 82 | +		slot1_ns_partition: partition@80000 { | 
| 67 | 83 | 			label = "image-1-nonsecure"; | 
| 68 |  | -			reg = <0x00178000 DT_SIZE_K(512)>; | 
|  | 84 | +			reg = <0x00080000 DT_SIZE_K(1024)>; | 
| 69 | 85 | 		}; | 
| 70 | 86 | 
 | 
| 71 |  | -		/* Applicative Non Volatile Storage */ | 
| 72 |  | -		storage_partition: partition@1f8000 { | 
| 73 |  | -			label = "storage"; | 
| 74 |  | -			reg = <0x001f8000 DT_SIZE_K(16)>; | 
|  | 87 | +		external_partition: partition@180000 { | 
|  | 88 | +			label = "external"; | 
|  | 89 | +			reg = <0x00180000 (DT_SIZE_M(64) - DT_SIZE_K(1024) - DT_SIZE_K(512))>; | 
| 75 | 90 | 		}; | 
| 76 | 91 | 	}; | 
| 77 | 92 | }; | 
0 commit comments