Skip to content

Commit

Permalink
dts: bindings: add bindings zephyr,flash-disk
Browse files Browse the repository at this point in the history
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
2 people authored and carlescufi committed Oct 28, 2022
1 parent 43ae4a7 commit af0837e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions dts/bindings/misc/zephyr,flash-disk.yaml
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.

0 comments on commit af0837e

Please sign in to comment.