aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch
blob: 4568a41ee1388d61e3e69457e04486749dbeb3f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
commit 6c9945aafa00c09149e2052a9c2bccad16dd1d8a
Author: Stefan Schmidt <stefan.schmidt@huawei.com>
Date:   Fri May 7 11:47:44 2021 +0200

    boards/arduino_nano_33_ble: add storage partition at end of flash
    
    Change default partition table to allow for application which need
    storage. One use case is running the OpenThread integration which has
    a dependency on this.

    Upstream-Status: Backported [https://github.com/zephyrproject-rtos/zephyr/commit/6c9945aafa00c09149e2052a9c2bccad16dd1d8a]
    
    Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
    Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>

diff --git a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
index d09b66ec43..d11d800eb5 100644
--- a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
+++ b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
@@ -44,15 +44,27 @@
 
 		boot_partition: partition@0 {
 			label = "sam-ba";
-			reg = <0x0 0x10000>;
+			reg = <0x00000000 0x00010000>;
 			read-only;
 		};
 
 		code_partition: partition@10000 {
 			label = "code";
-			reg = <0x10000 0xf0000>;
+			reg = <0x00010000 0x000e8000>;
 			read-only;
 		};
+
+		/*
+		 * The flash starting at 0x000f8000 and ending at
+		 * 0x000fffff is reserved for use by the application.
+		 *
+		 * Storage partition will be used by FCB/LittleFS/NVS
+		 * if enabled.
+		 */
+		storage_partition: partition@f8000 {
+			label = "storage";
+			reg = <0x000f8000 0x00008000>;
+		};
 	};
 };