samples: littlefs: add qspi nodes for rak5010_nrf52840

add qspi nodes with size of 64MB to LFS with automount.

Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
This commit is contained in:
Parthiban Nallathambi 2024-02-12 22:10:01 +05:30 committed by Alberto Escolar
parent 9ae0dbc275
commit f764763f00
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#
# Copyright (c) 2024 Linumiz
# SPDX-License-Identifier: Apache-2.0
#
# Need this when storage is on flash
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

View file

@ -0,0 +1,37 @@
/*
* Copyright (c) 2024 Linumiz
*
* SPDX-License-Identifier: Apache-2.0
*/
/delete-node/ &storage_partition;
/ {
fstab {
compatible = "zephyr,fstab";
lfs1: lfs1 {
compatible = "zephyr,fstab,littlefs";
mount-point = "/lfs1";
partition = <&lfs1_part>;
automount;
read-size = <16>;
prog-size = <16>;
cache-size = <64>;
lookahead-size = <32>;
block-cycles = <512>;
};
};
};
&is25wp064a {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
lfs1_part: partition@0 {
label = "storage";
reg = <0x00000000 DT_SIZE_M(8)>;
};
};
};