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.
dts: bindings: add bindings zephyr,flash-disk
Add bindings to describe a block storage device based on flash map partition. Co-authored-by: Johann Fischer <[email protected]> Signed-off-by: Tomasz Moń <[email protected]>
- Loading branch information
1 parent
43ae4a7
commit af0837e
Showing
1 changed file
with
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright (c) 2022 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Block storage device on flash partition | ||
|
||
compatible: "zephyr,flash-disk" | ||
|
||
include: base.yaml | ||
|
||
properties: | ||
partition: | ||
type: phandle | ||
required: true | ||
description: | | ||
Backing storage flash map partition. | ||
disk-name: | ||
type: string | ||
required: true | ||
description: | | ||
Disk name. | ||
sector-size: | ||
type: int | ||
required: false | ||
default: 512 | ||
description: | | ||
Emulated block device sector size in bytes. | ||
cache-size: | ||
type: int | ||
required: true | ||
description: | | ||
Size of statically allocated buffer size in bytes. The size should be | ||
adequately chosen. On storage backends with uniform erase-blocks it | ||
should be at least the erase-block-size, on storage backends with | ||
non-uniform erase-blocks it should be at least the largest | ||
erase-block-size. |