Skip to content

Commit 2773984

Browse files
Glauber Maroto Ferreiracfriedt
authored andcommitted
soc: esp32s2: nvs: add NVS support using fixed partitions
add NVS support to esp32s2 using fixed partitions defined on DT Signed-off-by: Glauber Maroto Ferreira <[email protected]>
1 parent 1af506d commit 2773984

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

boards/xtensa/esp32s2_saola/esp32s2_saola.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,17 @@
7676
sclk-pin = <36>;
7777
csel-pin = <34>;
7878
};
79+
80+
&flash0 {
81+
status = "okay";
82+
partitions {
83+
compatible = "fixed-partitions";
84+
#address-cells = <1>;
85+
#size-cells = <1>;
86+
87+
storage_partition: partition@9000 {
88+
label = "storage";
89+
reg = <0x00009000 0x00006000>;
90+
};
91+
};
92+
};

0 commit comments

Comments
 (0)