boards: mps2_an385: add NVS support
Add support for NVS on the board by default. Using the simulated flash
driver is required as this board has no flash controller. Support is
desired as this is the ARM board used by coverage testing.
Signed-off-by: Jordan Yates <jordan@embeint.com>
diff --git a/boards/arm/mps2/mps2_an385.dts b/boards/arm/mps2/mps2_an385.dts
index e0046f4..d2db1ce 100644
--- a/boards/arm/mps2/mps2_an385.dts
+++ b/boards/arm/mps2/mps2_an385.dts
@@ -73,6 +73,33 @@
reg = <0 0x400000>;
};
+ sim_flash_controller: sim_flash_controller {
+ compatible = "zephyr,sim-flash";
+
+ #address-cells = <1>;
+ #size-cells = <1>;
+ erase-value = <0x00>;
+
+ flash_sim0: flash_sim@0 {
+ compatible = "soc-nv-flash";
+ reg = <0x00000000 0x8000>;
+
+ erase-block-size = <1024>;
+ write-block-size = <4>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ storage_partition: partition@0 {
+ label = "storage_partition";
+ reg = <0x00000000 0x8000>;
+ };
+ };
+ };
+ };
+
sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <25000000>;