esp32: nvs: add NVS support using fixed partitions

Add NVS support to ESP32 using fixed partitions defined on DT

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
diff --git a/boards/xtensa/esp32/esp32.dts b/boards/xtensa/esp32/esp32.dts
index f598f07..cb0f691 100644
--- a/boards/xtensa/esp32/esp32.dts
+++ b/boards/xtensa/esp32/esp32.dts
@@ -114,4 +114,14 @@
 
 &flash0 {
 	status = "okay";
+	partitions {
+		compatible = "fixed-partitions";
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		storage_partition: partition@9000 {
+			label = "storage";
+			reg = <0x00009000 0x00006000>;
+		};
+	};
 };
diff --git a/boards/xtensa/esp32/esp32.yaml b/boards/xtensa/esp32/esp32.yaml
index 7f0c20d..c6b3147 100644
--- a/boards/xtensa/esp32/esp32.yaml
+++ b/boards/xtensa/esp32/esp32.yaml
@@ -10,3 +10,4 @@
   - watchdog
   - uart
   - pinmux
+  - nvs
diff --git a/samples/subsys/nvs/boards/esp32.conf b/samples/subsys/nvs/boards/esp32.conf
new file mode 100644
index 0000000..26d5270
--- /dev/null
+++ b/samples/subsys/nvs/boards/esp32.conf
@@ -0,0 +1 @@
+CONFIG_HEAP_MEM_POOL_SIZE=256
diff --git a/samples/subsys/settings/boards/esp32.conf b/samples/subsys/settings/boards/esp32.conf
new file mode 100644
index 0000000..498fb07
--- /dev/null
+++ b/samples/subsys/settings/boards/esp32.conf
@@ -0,0 +1,4 @@
+CONFIG_HEAP_MEM_POOL_SIZE=256
+CONFIG_NVS=y
+CONFIG_SETTINGS_NVS=y
+CONFIG_MPU_ALLOW_FLASH_WRITE=y