forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: usb: mass: add disk description to overlays
Add flash disk description to overlays. Specify custom flashdisk partition for fat fs api test to match the Kconfig values, because native posix storage partition is too small for FatFS filesystem. Co-authored-by: Johann Fischer <[email protected]> Signed-off-by: Tomasz Moń <[email protected]>
- Loading branch information
1 parent
af0837e
commit 51c46e9
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) 2022 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&flashcontroller0 { | ||
reg = <0x00000000 DT_SIZE_K(2048)>; | ||
}; | ||
|
||
&flash0 { | ||
reg = <0x00000000 DT_SIZE_K(2048)>; | ||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
flashdisk_partition: partition@0 { | ||
label = "flashdisk"; | ||
reg = <0x00000000 0x00200000>; | ||
}; | ||
}; | ||
}; | ||
|
||
/ { | ||
storage_disk { | ||
compatible = "zephyr,flash-disk"; | ||
partition = <&flashdisk_partition>; | ||
disk-name = "NAND"; | ||
cache-size = <4096>; | ||
}; | ||
}; |