Skip to content
Permalink
Browse files

tests/subsys/settings/functional: test external flash

Use the external flash on the Particle Xenon to confirm basic
functionality on a spi-nor device.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  • Loading branch information...
pabigot authored and galak committed Jul 20, 2019
1 parent 33b10aa commit c59bac35db90fadcb13cdfc0cb96c20060572807
@@ -0,0 +1,8 @@
#
# Copyright (c) 2019 Peter Bigot Consulting, LLC
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2019 Peter Bigot Consulting, LLC
*
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&mx25l32 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

littlefs_partition: partition@0 {
label = "littlefs";
reg = <0x00000000 0x00200000>;
};
storage_partition: partition@200000 {
label = "storage";
reg = <0x00200000 0x00004000>;
};
partition@220000 {
label = "scratch2";
reg = <0x00204000 0x001fc000>;
};
};
};

0 comments on commit c59bac3

Please sign in to comment.
You can’t perform that action at this time.